From nobody Mon Sep 19 07:27:04 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MWGTP2WsPz4cvRY; Mon, 19 Sep 2022 07:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MWGTP17LKz3pNB; Mon, 19 Sep 2022 07:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663572425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q1xoQtwTadGhZXuWCGYy/dLlJ4yX5th3W5IkeUG1c5w=; b=nmQTWNqFNNPXlndX4gx3YkXJaUj2kVEMG7mXra6gSnxzogJzyYo+mPIhLRkAXOOkQsVb+L Acxyr6krYPaAMmKSRCtCyYNvoZUdwsxkLuU40Ajc5BQdGZK09xCZg4kia7zq2eU0o5KDdk yPrZlL3rh3mbSX6Kstw58sNYHkPvDMcyzS94lHpU3qcIiVrMM7Ve20vliOcj/PR37q22pk 6qfQPPOyRz+FdtFfadzYcaw3M8DsiifO9Me9rydKcCV2bmiNXQnKoXJBHFnX0xCTZKDken ts8YNM0t7VPkR8BmnW1bmU+NT3L6BFvqSnNF65NAmL5jBa9Wp7z9qJ6YcEob0Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MWGTN6pnDzJdM; Mon, 19 Sep 2022 07:27:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28J7R4Nl031048; Mon, 19 Sep 2022 07:27:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28J7R4b2031047; Mon, 19 Sep 2022 07:27:04 GMT (envelope-from git) Date: Mon, 19 Sep 2022 07:27:04 GMT Message-Id: <202209190727.28J7R4b2031047@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Kornel=20Dul=C4=99ba?= Subject: git: 55760984d56b - main - igc: Don't start in promiscious mode by default List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kd X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 55760984d56bb1a4c6bc8040ae022353667258e2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663572425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q1xoQtwTadGhZXuWCGYy/dLlJ4yX5th3W5IkeUG1c5w=; b=svZMpXqwvr9ySLElPz6ioNKE5asE89mKeHTiRdM2WRqWUPssSMrGCxuHWUgzrrgd6ve1dz /i+PxYdoaRr+/P2l3UNlPcYkon3v8y1hFQp0kOfbZmYUUKwYBMIRJkmQMchprkbzcQ9yoG soRYnYTRASKpZMfEDB9fjir99VhYfOArTKIzZPAFTxfrLR0el+prCUOFM6byHIDvDEB09b ntWERcOXjINAa2/OOw4eTd9s2Cv7vxtDBY7vSPxOkZVMgudQnvHIxURlmU02xaA4kSPK/A G3jTd01VufcZXy1TaOBATG5O4ysynT9RbPreV0CNjhE2+ddkika3nr9dvogAlg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663572425; a=rsa-sha256; cv=none; b=V7iNfFT8u1bygquKly4jkI8HSNhVPiGwRe6iHMSVlQ79HOL8EMIKdOUxonX+jX9A7ng7Uq Z2rcROQYVXwmXCnPweqoubc3im6QRInPJoDy2wFfaN+wV5pDOMTdXg6D4n0vUuWVX8USmF 57FfRV8FlTqEo6kJEHlMlKgsgQqsdHnMLuxmrmasgX6BWam4lWYjZVgG9RAgWXjyESOoyn Epyk/XuM9D3Lz7w3pMUAqvrPIT6dN7P9+EztWvRxlCCPGpD+ahr/IJfVMlTe8ps1b+PtWC uhuiiSkkP7e09jF4l2Ss6FrD5/UOw7ezWLQnydsOPxpfsPR80KelQaNAJlxf/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kd: URL: https://cgit.FreeBSD.org/src/commit/?id=55760984d56bb1a4c6bc8040ae022353667258e2 commit 55760984d56bb1a4c6bc8040ae022353667258e2 Author: Hubert Mazur AuthorDate: 2022-09-16 11:37:12 +0000 Commit: Kornel Dulęba CommitDate: 2022-09-19 07:18:19 +0000 igc: Don't start in promiscious mode by default The igc driver always sets the promiscious mode during initialization, ignoring what is set in ifp. Fix this by checking the interface flags and setting mode appropriately. Reviewed by: grehan Obtained from: Semihalf Sponsored by: Stormshield MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36591 --- sys/dev/igc/if_igc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c index b3de0f123c5c..de12f81cf073 100644 --- a/sys/dev/igc/if_igc.c +++ b/sys/dev/igc/if_igc.c @@ -858,7 +858,7 @@ igc_if_init(if_ctx_t ctx) } /* Don't lose promiscuous settings */ - igc_if_set_promisc(ctx, IFF_PROMISC); + igc_if_set_promisc(ctx, if_getflags(ifp)); igc_clear_hw_cntrs_base_generic(&adapter->hw); if (adapter->intr_type == IFLIB_INTR_MSIX) /* Set up queue routing */