]> git.itanic.dy.fi Git - linux-stable/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)
commit8ac7132704f3fbd2095abb9459e5303ce8c9e559
treec34b9c5723915a21a05561b9781df94bcbfcad33
parent122045ca770492660005c22379995506f13efea8
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: ab4ab73fc1ec ("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