]> git.itanic.dy.fi Git - linux-stable/commit
ice: Respond to a NETDEV_UNREGISTER event for LAG
authorDave Ertman <david.m.ertman@intel.com>
Thu, 7 Oct 2021 15:40:31 +0000 (08:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:50:57 +0000 (19:50 +0100)
commite83b3cce4722b880c277d44b13eebf2548cb2ebb
tree5f74a2b9485ae0afece61b2a4f6e501ce7d5637f
parentf1e3cd1cc80204fd02b9e9843450925a2af90dc0
ice: Respond to a NETDEV_UNREGISTER event for LAG

commit 6a8b357278f5f8b9817147277ab8f12879dce8a8 upstream.

When the PF is a member of a link aggregate, and the driver
is removed, the process will hang unless we respond to the
NETDEV_UNREGISTER event that is sent to the event_handler
for LAG.

Add a case statement for the ice_lag_event_handler to unlink
the PF from the link aggregate.

Also remove code that was incorrectly applying a dev_hold to
peer_netdevs that were associated with the ice driver.

Fixes: df006dd4b1dc ("ice: Add initial support framework for LAG")
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/ice/ice_lag.c