Home
last modified time | relevance | path

Searched refs:bond (Results 1 – 25 of 42) sorted by relevance

12

/linux/drivers/net/bonding/
H A Dbond_options.c21 static int bond_option_active_slave_set(struct bonding *bond,
23 static int bond_option_miimon_set(struct bonding *bond,
25 static int bond_option_updelay_set(struct bonding *bond,
27 static int bond_option_downdelay_set(struct bonding *bond,
29 static int bond_option_peer_notif_delay_set(struct bonding *bond,
31 static int bond_option_use_carrier_set(struct bonding *bond,
33 static int bond_option_arp_interval_set(struct bonding *bond,
35 static int bond_option_arp_ip_target_add(struct bonding *bond, __be32 target);
36 static int bond_option_arp_ip_target_rem(struct bonding *bond, __be32 target);
37 static int bond_option_arp_ip_targets_set(struct bonding *bond,
[all …]
H A Dbond_main.c268 static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
299 netdev_tx_t bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, in bond_dev_queue_xmit() argument
308 if (unlikely(netpoll_tx_running(bond->dev))) in bond_dev_queue_xmit()
309 return bond_netpoll_send_skb(bond_get_slave_by_dev(bond, slave_dev), skb); in bond_dev_queue_xmit()
314 static bool bond_sk_check(struct bonding *bond) in bond_sk_check() argument
316 switch (BOND_MODE(bond)) { in bond_sk_check()
319 if (bond->params.xmit_policy == BOND_XMIT_POLICY_LAYER34) in bond_sk_check()
346 bool bond_xdp_check(struct bonding *bond, int mode) in bond_xdp_check() argument
348 return __bond_xdp_check(mode, bond->params.xmit_policy); in bond_xdp_check()
378 struct bonding *bond = netdev_priv(bond_dev); in bond_vlan_rx_add_vid() local
[all …]
H A Dbond_procfs.c14 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_seq_start() local
24 bond_for_each_slave_rcu(bond, slave, iter) in bond_info_seq_start()
33 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_seq_next() local
40 return bond_first_slave_rcu(bond); in bond_info_seq_next()
42 bond_for_each_slave_rcu(bond, slave, iter) { in bond_info_seq_next()
60 struct bonding *bond = pde_data(file_inode(seq->file)); in bond_info_show_master() local
65 curr = rcu_dereference(bond->curr_active_slave); in bond_info_show_master()
68 bond_mode_name(BOND_MODE(bond))); in bond_info_show_master()
70 if (BOND_MODE(bond) == BOND_MODE_ACTIVEBACKUP && in bond_info_show_master()
71 bond->params.fail_over_mac) { in bond_info_show_master()
[all …]
H A Dbond_sysfs_slave.c64 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_aggregator_id_show()
79 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_actor_oper_port_state_show()
94 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_partner_oper_port_state_show()
/linux/include/net/
H A Dbonding.h51 #define BOND_MODE(bond) ((bond)->params.mode) argument
54 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) argument
56 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond)) argument
59 #define bond_first_slave(bond) \ argument
60 (bond_has_slaves(bond) ? \
61 netdev_adjacent_get_private(bond_slave_list(bond)->next) : \
63 #define bond_last_slave(bond) \ argument
64 (bond_has_slaves(bond) ? \
65 netdev_adjacent_get_private(bond_slave_list(bond)->prev) : \
69 #define bond_first_slave_rcu(bond) \ argument
[all …]
H A Dbond_alb.h14 #define BOND_ALB_INFO(bond) ((bond)->alb_info) argument
23 #define BOND_ALB_LP_INTERVAL(bond) (bond->params.lp_interval) /* In seconds, periodic send of argument
30 #define BOND_ALB_LP_TICKS(bond) (BOND_ALB_LP_INTERVAL(bond) \ argument
153 int bond_alb_initialize(struct bonding *bond, int rlb_enabled);
154 void bond_alb_deinitialize(struct bonding *bond);
155 int bond_alb_init_slave(struct bonding *bond, struct slave *slave);
156 void bond_alb_deinit_slave(struct bonding *bond, struct slave *slave);
157 void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link);
158 void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slave);
161 struct slave *bond_xmit_alb_slave_get(struct bonding *bond,
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_lag.c32 if (!port || !port->bond) in lan966x_lag_set_aggr_pgids()
42 struct net_device *bond; in lan966x_lag_set_aggr_pgids() local
46 if (!port || !port->bond || (visited & BIT(lag))) in lan966x_lag_set_aggr_pgids()
49 bond = port->bond; in lan966x_lag_set_aggr_pgids()
50 bond_mask = lan966x_lag_get_mask(lan966x, bond); in lan966x_lag_set_aggr_pgids()
87 if (port->bond == bond) in lan966x_lag_set_aggr_pgids()
107 bond_mask = lan966x_lag_get_mask(lan966x, port->bond); in lan966x_lag_set_port_ids()
126 struct net_device *bond, in lan966x_lag_port_join() argument
135 bond_mask = lan966x_lag_get_mask(lan966x, bond); in lan966x_lag_port_join()
139 port->bond = bond; in lan966x_lag_port_join()
[all …]
H A Dlan966x_mac.c217 mac_entry->lag = port->bond ? true : false; in lan966x_mac_alloc_entry()
306 port->bond ?: port->dev); in lan966x_mac_add_entry()
482 port->bond ?: port->dev); in lan966x_mac_irq_process()
526 mac, vid, port->bond ?: port->dev); in lan966x_mac_irq_process()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbond.c42 list_for_each_entry(cur, &uplink_priv->bond->metadata_list, list) { in mlx5e_lookup_rep_bond_metadata()
107 list_add(&mdata->list, &rpriv->uplink_priv.bond->metadata_list); in mlx5e_rep_bond_enslave()
280 struct mlx5e_rep_bond *bond; in mlx5e_rep_esw_bond_netevent() local
286 bond = container_of(nb, struct mlx5e_rep_bond, nb); in mlx5e_rep_esw_bond_netevent()
290 if (rpriv->uplink_priv.bond != bond) in mlx5e_rep_esw_bond_netevent()
318 uplink_priv->bond = kvzalloc_obj(*uplink_priv->bond); in mlx5e_rep_bond_init()
319 if (!uplink_priv->bond) { in mlx5e_rep_bond_init()
324 INIT_LIST_HEAD(&uplink_priv->bond->metadata_list); in mlx5e_rep_bond_init()
325 uplink_priv->bond->nb.notifier_call = mlx5e_rep_esw_bond_netevent; in mlx5e_rep_bond_init()
327 &uplink_priv->bond->nb, in mlx5e_rep_bond_init()
[all …]
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond-break-lacpdu-tx.sh32 ip link del veth1-bond >/dev/null 2>&1 || :
33 ip link del veth2-bond >/dev/null 2>&1 || :
44 ip link add fbond type bond mode 4 miimon 200 xmit_hash_policy 1 \
52 ip link set fbond type bond ad_actor_sys_prio 65535
55 ip link add name veth1-bond type veth peer name veth1-end
56 ip link add name veth2-bond type veth peer name veth2-end
60 ip link set veth1-bond master fbond
61 ip link set veth2-bond master fbond
H A DMakefile5 bond-arp-interval-causes-panic.sh \
6 bond-break-lacpdu-tx.sh \
7 bond-eth-type-change.sh \
8 bond-lladdr-target.sh \
H A Dbond-eth-type-change.sh40 ip link add name "$devbond0" type bond
43 ip link set dev "$devbond0" type bond mode active-backup
46 ip link add name "$devbond1" type bond
47 ip link add name "$devbond2" type bond
H A Dnetcons_over_bonding.sh64 if ! ip -n "${TXNS}" link add "${BOND_TX_MAIN_IF}" type bond mode balance-rr
89 link add "${BOND_RX_MAIN_IF}" type bond mode balance-rr
190 link delete "${BOND_TX_MAIN_IF}" type bond
237 link add "${BOND_TX_MAIN_IF}" type bond mode balance-rr
H A Dbond-arp-interval-causes-panic.sh31 ip netns exec client ip link add dev bond0 down type bond mode 1 \
40 ip netns exec client ip link set dev bond0 type bond mode 0 \
H A Dbond_passive_lacp.sh48 ip -n "${s_ns}" link add bond0 type bond mode 802.3ad lacp_active on lacp_rate fast
52 ip -n "${c_ns}" link add bond0 type bond mode 802.3ad lacp_active off lacp_rate fast
H A Dbond_topo_2d1c.sh63 ip -n ${s_ns} link add bond0 type bond mode active-backup miimon 100
93 ip -n ${s_ns} link add bond0 type bond $param
H A Dlag_lib.sh21 ip link add "$name" up type bond mode "$mode"
147 ip netns exec ${CLIENT} ip link add bond0 type bond $@
/linux/drivers/net/ethernet/mscc/
H A Docelot.c1721 static u32 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond) in ocelot_get_bond_mask() argument
1734 if (ocelot_port->bond == bond) in ocelot_get_bond_mask()
1744 int ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond) in ocelot_bond_get_id() argument
1746 int bond_mask = ocelot_get_bond_mask(ocelot, bond); in ocelot_bond_get_id()
1781 if (cpu->bond) in ocelot_dsa_8021q_cpu_assigned_ports()
1782 mask &= ~ocelot_get_bond_mask(ocelot, cpu->bond); in ocelot_dsa_8021q_cpu_assigned_ports()
1798 if (cpu_port->bond) in ocelot_port_assigned_dsa_8021q_cpu_mask()
1799 return ocelot_get_bond_mask(ocelot, cpu_port->bond); in ocelot_port_assigned_dsa_8021q_cpu_mask()
1864 struct net_device *bond = ocelot_port->bond; in ocelot_apply_bridge_fwd_mask() local
1872 if (bond) in ocelot_apply_bridge_fwd_mask()
[all …]
H A Docelot_net.c1452 struct net_device *bond, in ocelot_netdevice_lag_join() argument
1463 err = ocelot_port_lag_join(ocelot, port, bond, info, extack); in ocelot_netdevice_lag_join()
1468 bridge_dev = netdev_master_upper_dev_get(bond); in ocelot_netdevice_lag_join()
1472 err = ocelot_netdevice_bridge_join(dev, bond, bridge_dev, extack); in ocelot_netdevice_lag_join()
1479 ocelot_port_lag_leave(ocelot, port, bond); in ocelot_netdevice_lag_join()
1484 struct net_device *bond) in ocelot_netdevice_pre_lag_leave() argument
1488 bridge_dev = netdev_master_upper_dev_get(bond); in ocelot_netdevice_pre_lag_leave()
1492 ocelot_netdevice_pre_bridge_leave(dev, bond); in ocelot_netdevice_pre_lag_leave()
1496 struct net_device *bond) in ocelot_netdevice_lag_leave() argument
1504 ocelot_port_lag_leave(ocelot, port, bond); in ocelot_netdevice_lag_leave()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_bonding.c384 int veth, bond, err; in test_xdp_bonding_attach() local
394 bond = if_nametoindex("bond"); in test_xdp_bonding_attach()
395 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_attach()
416 link2 = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach()
424 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach()
446 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach()
463 int bond, err; in test_xdp_bonding_nested() local
468 bond = if_nametoindex("bond"); in test_xdp_bonding_nested()
469 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_nested()
486 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_nested()
/linux/tools/testing/selftests/net/
H A Dvlan_hw_filter.sh41 ip netns exec ${NETNS} ip link add bond0 type bond mode 0
55 ip netns exec ${NETNS} ip link add bond0 type bond mode 0
69 ip netns exec ${NETNS} ip link add bond0 type bond mode 0
84 ip netns exec ${NETNS} ip link add bond0 type bond mode 0
96 ip netns exec ${NETNS} ip link add bond0 up type bond mode 0
/linux/drivers/iommu/riscv/
H A Diommu.c853 struct riscv_iommu_bond *bond; in riscv_iommu_bond_link() local
856 bond = kzalloc_obj(*bond); in riscv_iommu_bond_link()
857 if (!bond) in riscv_iommu_bond_link()
859 bond->dev = dev; in riscv_iommu_bond_link()
870 list_add_rcu(&bond->list, bonds); in riscv_iommu_bond_link()
883 struct riscv_iommu_bond *bond, *found = NULL; in riscv_iommu_bond_unlink() local
891 list_for_each_entry(bond, &domain->bonds, list) { in riscv_iommu_bond_unlink()
894 else if (bond->dev == dev) in riscv_iommu_bond_unlink()
895 found = bond; in riscv_iommu_bond_unlink()
896 else if (dev_to_iommu(bond->dev) == iommu) in riscv_iommu_bond_unlink()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dq_in_q_veto.sh115 ip link add name bond1 type bond mode 802.3ad
186 ip link add name bond1 type bond mode 802.3ad
236 ip link add name bond1 type bond mode 802.3ad
/linux/include/soc/mscc/
H A Docelot.h745 struct net_device *bond; member
777 struct net_device *bond; member
1065 int ocelot_lag_fdb_add(struct ocelot *ocelot, struct net_device *bond,
1068 int ocelot_lag_fdb_del(struct ocelot *ocelot, struct net_device *bond,
1106 struct net_device *bond,
1110 struct net_device *bond);
1112 int ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond);
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c1520 struct mlx4_bond *bond = container_of(work, struct mlx4_bond, work); in mlx4_bond_work() local
1523 if (bond->is_bonded) { in mlx4_bond_work()
1524 if (!mlx4_is_bonded(bond->dev)) { in mlx4_bond_work()
1525 err = mlx4_bond(bond->dev); in mlx4_bond_work()
1527 mlx4_err(bond->dev, "Fail to bond device\n"); in mlx4_bond_work()
1530 err = mlx4_port_map_set(bond->dev, &bond->port_map); in mlx4_bond_work()
1532 mlx4_err(bond->dev, in mlx4_bond_work()
1534 bond->port_map.port1, in mlx4_bond_work()
1535 bond->port_map.port2, err); in mlx4_bond_work()
1537 } else if (mlx4_is_bonded(bond->dev)) { in mlx4_bond_work()
[all …]

12