Lines Matching refs:lag_dev

2825 static int dsa_lag_master_validate(struct net_device *lag_dev,  in dsa_lag_master_validate()  argument
2831 netdev_for_each_lower_dev(lag_dev, lower1, iter1) { in dsa_lag_master_validate()
2832 netdev_for_each_lower_dev(lag_dev, lower2, iter2) { in dsa_lag_master_validate()
2893 struct net_device *lag_dev = info->upper_dev; in dsa_lag_master_prechangelower_sanity_check() local
2897 if (!netdev_uses_dsa(lag_dev) || !netif_is_lag_master(lag_dev)) in dsa_lag_master_prechangelower_sanity_check()
2909 netdev_for_each_lower_dev(lag_dev, lower, iter) { in dsa_lag_master_prechangelower_sanity_check()
2963 struct net_device *lag_dev) in dsa_tree_migrate_ports_from_lag_master() argument
2970 if (dsa_port_to_master(dp) != lag_dev) in dsa_tree_migrate_ports_from_lag_master()
2983 struct net_device *lag_dev, in dsa_master_lag_join() argument
2992 err = dsa_master_lag_setup(lag_dev, cpu_dp, uinfo, extack); in dsa_master_lag_join()
3000 err = dsa_slave_change_master(dp->slave, lag_dev, extack); in dsa_master_lag_join()
3009 if (dsa_port_to_master(dp) != lag_dev) in dsa_master_lag_join()
3020 dsa_master_lag_teardown(lag_dev, master->dsa_ptr); in dsa_master_lag_join()
3026 struct net_device *lag_dev) in dsa_master_lag_leave() argument
3028 struct dsa_port *dp, *cpu_dp = lag_dev->dsa_ptr; in dsa_master_lag_leave()
3034 netdev_for_each_lower_dev(lag_dev, lower, iter) { in dsa_master_lag_leave()
3046 if (dsa_port_to_master(dp) == lag_dev) in dsa_master_lag_leave()
3052 lag_dev->dsa_ptr = new_cpu_dp; in dsa_master_lag_leave()
3058 dsa_tree_migrate_ports_from_lag_master(dst, lag_dev); in dsa_master_lag_leave()
3064 dsa_master_lag_teardown(lag_dev, master->dsa_ptr); in dsa_master_lag_leave()