Lines Matching full:netdev

31 			 netdev_name(lag->netdev));  in ice_lag_set_primary()
51 netdev_name(lag->netdev)); in ice_lag_set_backup()
67 name = lag->netdev ? netdev_name(lag->netdev) : "unset"; in ice_display_lag_info()
110 lag_netdev_name = netdev_name(lag->netdev); in ice_lag_info_event()
113 if (event_netdev != lag->netdev || !lag->bonded || !lag->upper_netdev) in ice_lag_info_event()
117 netdev_dbg(lag->netdev, "Bonding event recv, but mode not active/backup\n"); in ice_lag_info_event()
122 netdev_dbg(lag->netdev, "Bonding event recv, but secondary info not for us\n"); in ice_lag_info_event()
138 * @info: info from the netdev notifier
149 netdev_name(lag->netdev)); in ice_lag_link()
174 * @info: info from netdev notification
185 netdev_dbg(lag->netdev, "bonding unlink event on non-LAG netdev\n"); in ice_lag_unlink()
192 if (netdev_tmp == lag->netdev) { in ice_lag_unlink()
215 * ice_lag_unregister - handle netdev unregister events
217 * @netdev: netdev reporting the event
219 static void ice_lag_unregister(struct ice_lag *lag, struct net_device *netdev) in ice_lag_unregister() argument
223 /* check to see if this event is for this netdev in ice_lag_unregister()
226 if (netdev != lag->netdev || !lag->bonded) in ice_lag_unregister()
250 struct net_device *netdev; in ice_lag_changeupper_event() local
253 netdev = netdev_notifier_info_to_dev(ptr); in ice_lag_changeupper_event()
255 /* not for this netdev */ in ice_lag_changeupper_event()
256 if (netdev != lag->netdev) in ice_lag_changeupper_event()
260 netdev_dbg(netdev, "changeupper rcvd, but no upper defined\n"); in ice_lag_changeupper_event()
264 netdev_dbg(netdev, "bonding %s\n", info->linking ? "LINK" : "UNLINK"); in ice_lag_changeupper_event()
267 netdev_dbg(netdev, "changeupper rcvd, but not primary. bail\n"); in ice_lag_changeupper_event()
288 struct net_device *netdev = netdev_notifier_info_to_dev(ptr); in ice_lag_changelower_event() local
290 if (netdev != lag->netdev) in ice_lag_changelower_event()
293 netdev_dbg(netdev, "bonding info\n"); in ice_lag_changelower_event()
295 if (!netif_is_lag_port(netdev)) in ice_lag_changelower_event()
296 netdev_dbg(netdev, "CHANGELOWER rcvd, but netdev not in LAG. Bail\n"); in ice_lag_changelower_event()
300 * ice_lag_event_handler - handle LAG events from netdev
301 * @notif_blk: notifier block registered by this netdev
309 struct net_device *netdev = netdev_notifier_info_to_dev(ptr); in ice_lag_event_handler() local
314 if (!lag->netdev) in ice_lag_event_handler()
317 /* Check that the netdev is in the working namespace */ in ice_lag_event_handler()
318 if (!net_eq(dev_net(netdev), &init_net)) in ice_lag_event_handler()
332 ice_lag_unregister(lag, netdev); in ice_lag_event_handler()
342 * ice_register_lag_handler - register LAG handler on netdev
365 * ice_unregister_lag_handler - unregister LAG handler on netdev
407 lag->netdev = vsi->netdev; in ice_init_lag()