]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix interface being down after reset with link-down-on-close flag on
authorMateusz Palczewski <mateusz.palczewski@intel.com>
Fri, 26 Aug 2022 08:31:23 +0000 (10:31 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 20 Sep 2022 20:30:51 +0000 (13:30 -0700)
commit6ff289d131545d4ce4ffd9f2d0609bc950623425
treec34b9c5723915a21a05561b9781df94bcbfcad33
parent920b90b707fd33fced70b46dd06a8d2a7a423084
ice: Fix interface being down after reset with link-down-on-close flag on

When performing a reset on ice driver with link-down-on-close flag on
interface would always stay down. Fix this by moving a check of this
flag to ice_stop() that is called only when user wants to bring
interface down.

Fixes: ca06c59b1706 ("ice: Add ethtool private flag to make forcing link down optional")
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Petr Oros <poros@redhat.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c