Skip to contentSkip to conversation

ice: Respond to a NETDEV_UNREGISTER event for LAG

PATCH Superseded Dave Ertman 1 participant 1 message Oct 5, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Fixes df006dd4b1dca ("Add initial support framework for LAG")
---
 drivers/net/ethernet/intel/ice/ice_lag.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/intel/ice/ice_lag.c +3 -0
index 37c18c66b5c7..1631f8995d3d 100644
@@ -319,6 +319,9 @@ ice_lag_event_handler(struct notifier_block *notif_blk, unsigned long event,
 	case NETDEV_BONDING_INFO:
 		ice_lag_info_event(lag, ptr);
 		break;
+	case NETDEV_UNREGISTER:
+		ice_lag_unlink(lag, ptr);
+		break;
 	default:
 		break;
 	}
Signature · 1 line
2.31.1