Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2024 19:05:17 GMT
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 811912c46b58 - main - e1000: fix link power down
Message-ID:  <202409191905.48JJ5HMc014388@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=811912c46b5886f1aa3bb7a51a6ec1270bc947a8

commit 811912c46b5886f1aa3bb7a51a6ec1270bc947a8
Author:     Anatoly Burakov <anatoly.burakov@intel.com>
AuthorDate: 2024-09-19 05:38:32 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-19 19:04:47 +0000

    e1000: fix link power down
    
    DPDK commit message
    
    net/e1000/base: fix link power down
    Current code is a result of work to reduce duplication between various
    device models. However, the logic that was replaced did not exactly
    match the new logic, and as a result the link power down was not
    working correctly for some NICs, and the link remained up even when
    the interface is down.
    
    Fix it to correctly power down the link under all circumstances that
    were supported by old logic.
    
    Fixes: 44dddd1 ("net/e1000/base: remove duplicated codes")
    Cc: stable@dpdk.org
    
    Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
    Acked-by: Bruce Richardson <bruce.richardson@intel.com>
    
    Obtained from:  DPDK (a8218d0)
    MFC after:      1 week
---
 sys/dev/e1000/e1000_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/e1000/e1000_base.c b/sys/dev/e1000/e1000_base.c
index ff810821d9e9..d83dc48c4d4d 100644
--- a/sys/dev/e1000/e1000_base.c
+++ b/sys/dev/e1000/e1000_base.c
@@ -137,7 +137,7 @@ void e1000_power_down_phy_copper_base(struct e1000_hw *hw)
 		return;
 
 	/* If the management interface is not enabled, then power down */
-	if (phy->ops.check_reset_block(hw))
+	if (!(e1000_enable_mng_pass_thru(hw) || phy->ops.check_reset_block(hw)))
 		e1000_power_down_phy_copper(hw);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409191905.48JJ5HMc014388>