]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:32:18 +0000 (11:32 +0200)
commitd8d9a69958585cc7ef01e2043e56d27c6fa46f28
tree845232b05fc882e2e21a2091cbbd89f4901aa2d0
parentc14cdf15cde31425466c50c3e985fec79f2ea622
ice: Fix interface being down after reset with link-down-on-close flag on

[ Upstream commit 8ac7132704f3fbd2095abb9459e5303ce8c9e559 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_main.c