• Home
  • Raw
  • Download

Lines Matching refs:port_dev

61 static int __set_port_dev_addr(struct net_device *port_dev,  in __set_port_dev_addr()  argument
66 memcpy(addr.sa_data, dev_addr, port_dev->addr_len); in __set_port_dev_addr()
67 addr.sa_family = port_dev->type; in __set_port_dev_addr()
68 return dev_set_mac_address(port_dev, &addr); in __set_port_dev_addr()
986 struct net_device *port_dev);
988 static int team_port_add(struct team *team, struct net_device *port_dev) in team_port_add() argument
992 char *portname = port_dev->name; in team_port_add()
995 if (port_dev->flags & IFF_LOOPBACK) { in team_port_add()
1001 if (team_port_exists(port_dev)) { in team_port_add()
1007 if (port_dev->features & NETIF_F_VLAN_CHALLENGED && in team_port_add()
1014 err = team_dev_type_check_change(dev, port_dev); in team_port_add()
1018 if (port_dev->flags & IFF_UP) { in team_port_add()
1029 port->dev = port_dev; in team_port_add()
1033 port->orig.mtu = port_dev->mtu; in team_port_add()
1034 err = dev_set_mtu(port_dev, dev->mtu); in team_port_add()
1040 memcpy(port->orig.dev_addr, port_dev->dev_addr, port_dev->addr_len); in team_port_add()
1049 err = dev_open(port_dev); in team_port_add()
1056 err = vlan_vids_add_by_dev(port_dev, dev); in team_port_add()
1072 err = netdev_master_upper_dev_link(port_dev, dev); in team_port_add()
1079 err = netdev_rx_handler_register(port_dev, team_handle_frame, in team_port_add()
1098 __team_port_change_port_added(port, !!netif_carrier_ok(port_dev)); in team_port_add()
1106 netdev_rx_handler_unregister(port_dev); in team_port_add()
1109 netdev_upper_dev_unlink(port_dev, dev); in team_port_add()
1115 vlan_vids_del_by_dev(port_dev, dev); in team_port_add()
1118 dev_close(port_dev); in team_port_add()
1125 dev_set_mtu(port_dev, port->orig.mtu); in team_port_add()
1135 static int team_port_del(struct team *team, struct net_device *port_dev) in team_port_del() argument
1139 char *portname = port_dev->name; in team_port_del()
1141 port = team_port_get_rtnl(port_dev); in team_port_del()
1150 netdev_rx_handler_unregister(port_dev); in team_port_del()
1151 netdev_upper_dev_unlink(port_dev, dev); in team_port_del()
1153 vlan_vids_del_by_dev(port_dev, dev); in team_port_del()
1154 dev_uc_unsync(port_dev, dev); in team_port_del()
1155 dev_mc_unsync(port_dev, dev); in team_port_del()
1156 dev_close(port_dev); in team_port_del()
1165 dev_set_mtu(port_dev, port->orig.mtu); in team_port_del()
1684 static int team_add_slave(struct net_device *dev, struct net_device *port_dev) in team_add_slave() argument
1690 err = team_port_add(team, port_dev); in team_add_slave()
1695 static int team_del_slave(struct net_device *dev, struct net_device *port_dev) in team_del_slave() argument
1701 err = team_port_del(team, port_dev); in team_del_slave()
1786 struct net_device *port_dev) in team_setup_by_port() argument
1788 dev->header_ops = port_dev->header_ops; in team_setup_by_port()
1789 dev->type = port_dev->type; in team_setup_by_port()
1790 dev->hard_header_len = port_dev->hard_header_len; in team_setup_by_port()
1791 dev->addr_len = port_dev->addr_len; in team_setup_by_port()
1792 dev->mtu = port_dev->mtu; in team_setup_by_port()
1793 memcpy(dev->broadcast, port_dev->broadcast, port_dev->addr_len); in team_setup_by_port()
1794 memcpy(dev->dev_addr, port_dev->dev_addr, port_dev->addr_len); in team_setup_by_port()
1798 struct net_device *port_dev) in team_dev_type_check_change() argument
1801 char *portname = port_dev->name; in team_dev_type_check_change()
1804 if (dev->type == port_dev->type) in team_dev_type_check_change()
1818 team_setup_by_port(dev, port_dev); in team_dev_type_check_change()