Lines Matching refs:port_dev
1114 static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in do_vrf_add_slave() argument
1122 if (port_dev == dev_net(dev)->loopback_dev) { in do_vrf_add_slave()
1128 port_dev->priv_flags |= IFF_L3MDEV_SLAVE; in do_vrf_add_slave()
1129 ret = netdev_master_upper_dev_link(port_dev, dev, NULL, NULL, extack); in do_vrf_add_slave()
1133 cycle_netdev(port_dev, extack); in do_vrf_add_slave()
1138 port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; in do_vrf_add_slave()
1142 static int vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in vrf_add_slave() argument
1145 if (netif_is_l3_master(port_dev)) { in vrf_add_slave()
1151 if (netif_is_l3_slave(port_dev)) in vrf_add_slave()
1154 return do_vrf_add_slave(dev, port_dev, extack); in vrf_add_slave()
1158 static int do_vrf_del_slave(struct net_device *dev, struct net_device *port_dev) in do_vrf_del_slave() argument
1160 netdev_upper_dev_unlink(port_dev, dev); in do_vrf_del_slave()
1161 port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; in do_vrf_del_slave()
1163 cycle_netdev(port_dev, NULL); in do_vrf_del_slave()
1168 static int vrf_del_slave(struct net_device *dev, struct net_device *port_dev) in vrf_del_slave() argument
1170 return do_vrf_del_slave(dev, port_dev); in vrf_del_slave()
1729 struct net_device *port_dev; in vrf_dellink() local
1732 netdev_for_each_lower_dev(dev, port_dev, iter) in vrf_dellink()
1733 vrf_del_slave(dev, port_dev); in vrf_dellink()