Home
last modified time | relevance | path

Searched refs:bond_dev (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/net/bonding/
Dbond_main.c205 static int bond_init(struct net_device *bond_dev);
206 static void bond_uninit(struct net_device *bond_dev);
207 static void bond_get_stats(struct net_device *bond_dev,
279 static int bond_vlan_rx_add_vid(struct net_device *bond_dev, in bond_vlan_rx_add_vid() argument
282 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_add_vid()
312 static int bond_vlan_rx_kill_vid(struct net_device *bond_dev, in bond_vlan_rx_kill_vid() argument
315 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_kill_vid()
553 static void bond_hw_addr_flush(struct net_device *bond_dev, in bond_hw_addr_flush() argument
556 struct bonding *bond = netdev_priv(bond_dev); in bond_hw_addr_flush()
558 dev_uc_unsync(slave_dev, bond_dev); in bond_hw_addr_flush()
[all …]
Dbond_procfs.c264 struct net_device *bond_dev = bond->dev; in bond_create_proc_entry() local
265 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry()
268 bond->proc_entry = proc_create_seq_data(bond_dev->name, 0444, in bond_create_proc_entry()
271 netdev_warn(bond_dev, "Cannot create /proc/net/%s/%s\n", in bond_create_proc_entry()
272 DRV_NAME, bond_dev->name); in bond_create_proc_entry()
274 memcpy(bond->proc_file_name, bond_dev->name, IFNAMSIZ); in bond_create_proc_entry()
280 struct net_device *bond_dev = bond->dev; in bond_remove_proc_entry() local
281 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry()
Dbond_netlink.c18 static size_t bond_get_slave_size(const struct net_device *bond_dev, in bond_get_slave_size() argument
33 const struct net_device *bond_dev, in bond_fill_slave_info() argument
130 static int bond_slave_changelink(struct net_device *bond_dev, in bond_slave_changelink() argument
135 struct bonding *bond = netdev_priv(bond_dev); in bond_slave_changelink()
158 static int bond_changelink(struct net_device *bond_dev, struct nlattr *tb[], in bond_changelink() argument
162 struct bonding *bond = netdev_priv(bond_dev); in bond_changelink()
184 slave_dev = __dev_get_by_index(dev_net(bond_dev), in bond_changelink()
300 dev = __dev_get_by_index(dev_net(bond_dev), ifindex); in bond_changelink()
448 static int bond_newlink(struct net *src_net, struct net_device *bond_dev, in bond_newlink() argument
454 err = bond_changelink(bond_dev, tb, data, extack); in bond_newlink()
[all …]
Dbond_alb.c1337 netdev_tx_t bond_tlb_xmit(struct sk_buff *skb, struct net_device *bond_dev) in bond_tlb_xmit() argument
1339 struct bonding *bond = netdev_priv(bond_dev); in bond_tlb_xmit()
1375 netdev_tx_t bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev) in bond_alb_xmit() argument
1377 struct bonding *bond = netdev_priv(bond_dev); in bond_alb_xmit()
1741 int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr) in bond_alb_set_mac_address() argument
1743 struct bonding *bond = netdev_priv(bond_dev); in bond_alb_set_mac_address()
1756 bond_hw_addr_copy(bond_dev->dev_addr, ss->__data, bond_dev->addr_len); in bond_alb_set_mac_address()
1766 swap_slave = bond_slave_has_mac(bond, bond_dev->dev_addr); in bond_alb_set_mac_address()
1772 alb_set_slave_mac_addr(curr_active, bond_dev->dev_addr, in bond_alb_set_mac_address()
1773 bond_dev->addr_len); in bond_alb_set_mac_address()
[all …]
Dbond_sysfs.c105 struct net_device *bond_dev; in bonding_store_bonds() local
108 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
109 if (bond_dev) { in bonding_store_bonds()
111 unregister_netdevice(bond_dev); in bonding_store_bonds()
/Linux-v5.4/include/net/
Dbonding.h41 #define slave_info(bond_dev, slave_dev, fmt, ...) \ argument
42 netdev_info(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
43 #define slave_warn(bond_dev, slave_dev, fmt, ...) \ argument
44 netdev_warn(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
45 #define slave_dbg(bond_dev, slave_dev, fmt, ...) \ argument
46 netdev_dbg(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
47 #define slave_err(bond_dev, slave_dev, fmt, ...) \ argument
48 netdev_err(bond_dev, "(slave %s): " fmt, (slave_dev)->name, ##__VA_ARGS__)
620 int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev,
622 int bond_release(struct net_device *bond_dev, struct net_device *slave_dev);
[all …]
Dbond_alb.h159 int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev);
160 int bond_tlb_xmit(struct sk_buff *skb, struct net_device *bond_dev);
162 int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr);
/Linux-v5.4/drivers/net/
Dvrf.c1377 static size_t vrf_get_slave_size(const struct net_device *bond_dev, in vrf_get_slave_size() argument