]> git.baikalelectronics.ru Git - kernel.git/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)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 25 Oct 2021 20:44:37 +0000 (13:44 -0700)
commite4ee53917d886fa98d5f251383305fc2d52f753e
tree8aca0ec3e7d6f99e12e0b2ef8cbb0287727325d3
parent9bab4d580adb9558576278848b655615cb76d433
ice: Respond to a NETDEV_UNREGISTER event for LAG

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: f378dfb83875 ("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>
drivers/net/ethernet/intel/ice/ice_lag.c