/linux/drivers/net/bonding/ |
A D | bond_options.c | 613 params = &bond->params; in bond_opt_dep_print() 793 if (bond_sk_check(bond)) in bond_set_tls_features() 910 if (bond->params.updelay) in bond_option_miimon_set() 912 bond->params.updelay * bond->params.miimon); in bond_option_miimon_set() 915 bond->params.downdelay * bond->params.miimon); in bond_option_miimon_set() 918 bond->params.peer_notif_delay * bond->params.miimon); in bond_option_miimon_set() 935 queue_delayed_work(bond->wq, &bond->mii_work, 0); in bond_option_miimon_set() 959 netdev_warn(bond->dev, in _bond_option_delay_set() 1039 queue_delayed_work(bond->wq, &bond->arp_work, 0); in bond_option_arp_interval_set() 1205 memset(bond->params.primary, 0, sizeof(bond->params.primary)); in bond_option_primary_set() [all …]
|
A D | bond_alb.c | 553 struct bonding *bond, in rlb_choose_channel() argument 942 struct bonding *bond; member 954 struct bonding *bond = data->bond; in alb_upper_dev_walk() local 995 .bond = bond, in alb_send_learning_packets() 1255 memcpy(ss.__data, bond->dev->dev_addr, bond->dev->addr_len); in alb_set_mac_address() 1286 tlb_deinitialize(bond); in bond_alb_initialize() 1300 tlb_deinitialize(bond); in bond_alb_deinitialize() 1303 rlb_deinitialize(bond); in bond_alb_deinitialize() 1573 rlb_rebalance(bond); in bond_alb_monitor() 1591 queue_delayed_work(bond->wq, &bond->alb_work, alb_delta_in_ticks); in bond_alb_monitor() [all …]
|
A D | bond_main.c | 844 queue_delayed_work(bond->wq, &bond->mcast_work, 1); in bond_resend_igmp_join_requests_delayed() 1225 bond->igmp_retrans = bond->params.resend_igmp; in bond_change_active_slave() 1226 queue_delayed_work(bond->wq, &bond->mcast_work, 1); in bond_change_active_slave() 1521 bond = slave->bond; in bond_handle_frame() 1668 slave->bond = bond; in bond_alloc_slave() 2314 bond_get_stats(bond->dev, &bond->bond_stats); in __bond_release_one() 3185 queue_delayed_work(bond->wq, &bond->arp_work, in bond_loadbalance_arp_mon() 3557 bond = slave->bond; in bond_slave_netdev_event() 3954 queue_delayed_work(bond->wq, &bond->mii_work, 0); in bond_open() 3957 queue_delayed_work(bond->wq, &bond->arp_work, 0); in bond_open() [all …]
|
A D | bond_sysfs.c | 41 struct bonding *bond; in bonding_show_bonds() local 64 struct bonding *bond; in bond_get_by_name() local 68 return bond->dev; in bond_get_by_name() 145 struct bonding *bond = to_bond(d); in bonding_sysfs_store_option() local 168 struct bonding *bond = to_bond(d); in bonding_show_slaves() local 201 struct bonding *bond = to_bond(d); in bonding_show_mode() local 215 struct bonding *bond = to_bond(d); in bonding_show_xmit_hash() local 294 if (bond->params.arp_targets[i]) in bonding_show_arp_targets() 313 return sprintf(buf, "%d\n", bond->params.downdelay * bond->params.miimon); in bonding_show_downdelay() 324 return sprintf(buf, "%d\n", bond->params.updelay * bond->params.miimon); in bonding_show_updelay() [all …]
|
A D | bond_procfs.c | 71 bond->params.fail_over_mac) { in bond_info_show_master() 81 bond->params.xmit_policy); in bond_info_show_master() 86 if (bond_uses_primary(bond)) { in bond_info_show_master() 105 bond->params.updelay * bond->params.miimon); in bond_info_show_master() 107 bond->params.downdelay * bond->params.miimon); in bond_info_show_master() 109 bond->params.peer_notif_delay * bond->params.miimon); in bond_info_show_master() 117 bond->params.arp_interval); in bond_info_show_master() 142 bond->params.ad_select); in bond_info_show_master() 154 bond->dev->name); in bond_info_show_master() 274 if (bond->proc_entry == NULL) in bond_create_proc_entry() [all …]
|
A D | bond_netlink.c | 474 bond_work_init_all(bond); in bond_newlink() 553 bond->params.updelay * bond->params.miimon)) in bond_fill_info() 557 bond->params.downdelay * bond->params.miimon)) in bond_fill_info() 561 bond->params.peer_notif_delay * bond->params.miimon)) in bond_fill_info() 592 bond->params.arp_all_targets)) in bond_fill_info() 613 bond->params.resend_igmp)) in bond_fill_info() 625 bond->params.min_links)) in bond_fill_info() 629 bond->params.lp_interval)) in bond_fill_info() 723 struct bonding *bond; in bond_fill_linkxstats() local 727 bond = netdev_priv(dev); in bond_fill_linkxstats() [all …]
|
A D | bond_debugfs.c | 20 struct bonding *bond = m->private; in bond_debug_rlb_hash_show() local 25 if (BOND_MODE(bond) != BOND_MODE_ALB) in bond_debug_rlb_hash_show() 31 spin_lock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show() 44 spin_unlock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show() 50 void bond_debug_register(struct bonding *bond) in bond_debug_register() argument 55 bond->debug_dir = in bond_debug_register() 59 bond, &bond_debug_rlb_hash_fops); in bond_debug_register() 67 debugfs_remove_recursive(bond->debug_dir); in bond_debug_unregister() 78 bonding_debug_root, bond->dev->name); in bond_debug_reregister() 80 bond->debug_dir = d; in bond_debug_reregister() [all …]
|
A D | bond_3ad.c | 148 if (bond == NULL) in __get_first_agg() 211 if (bond == NULL) in __get_agg_selection_mode() 225 if (bond == NULL) in __check_agg_selection_timer() 769 struct bonding *bond = aggregator->slave->bond; in __get_active_agg() local 1398 struct bonding *bond; in ad_port_selection_logic() local 1676 struct bonding *bond = agg->slave->bond; in ad_agg_selection_logic() local 2098 struct bonding *bond = slave->bond; in bond_3ad_unbind_slave() local 2262 BOND_AD_INFO(bond).system.sys_priority = bond->params.ad_actor_sys_prio; in bond_3ad_update_ad_actor_settings() 2340 bond->dev->name); in bond_3ad_state_machine_handler() 2373 queue_delayed_work(bond->wq, &bond->ad_work, ad_delta_in_ticks); in bond_3ad_state_machine_handler() [all …]
|
A D | bond_sysfs_slave.c | 70 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_aggregator_id_show() 85 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_actor_oper_port_state_show() 100 if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { in ad_partner_oper_port_state_show()
|
/linux/include/net/ |
A D | bonding.h | 50 #define BOND_MODE(bond) ((bond)->params.mode) argument 53 #define bond_slave_list(bond) (&(bond)->dev->adj_list.lower) argument 55 #define bond_has_slaves(bond) !list_empty(bond_slave_list(bond)) argument 59 (bond_has_slaves(bond) ? \ 62 #define bond_last_slave(bond) \ argument 63 (bond_has_slaves(bond) ? \ 71 #define bond_is_first_slave(bond, pos) (pos == bond_first_slave(bond)) argument 72 #define bond_is_last_slave(bond, pos) (pos == bond_last_slave(bond)) argument 289 return slave->bond; in bond_get_bond_by_slave() 306 return BOND_MODE(bond) == BOND_MODE_8023AD || bond_is_lb(bond); in bond_needs_speed_duplex() [all …]
|
A D | bond_alb.h | 14 #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); 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, 163 struct slave *bond_xmit_tlb_slave_get(struct bonding *bond, [all …]
|
A D | bond_3ad.h | 259 #define BOND_AD_INFO(bond) ((bond)->ad_info) argument 293 void bond_3ad_initialize(struct bonding *bond, u16 tick_resolution); 297 void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout); 300 int bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info); 301 int __bond_3ad_get_active_agg_info(struct bonding *bond, 303 int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond, 305 int bond_3ad_set_carrier(struct bonding *bond); 306 void bond_3ad_update_lacp_active(struct bonding *bond); 307 void bond_3ad_update_lacp_rate(struct bonding *bond); 308 void bond_3ad_update_ad_actor_settings(struct bonding *bond);
|
A D | bond_options.h | 100 int (*set)(struct bonding *bond, const struct bond_opt_value *val); 103 int __bond_opt_set(struct bonding *bond, unsigned int option, 105 int __bond_opt_set_notify(struct bonding *bond, unsigned int option, 107 int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf); 132 void bond_option_arp_ip_targets_clear(struct bonding *bond);
|
/linux/drivers/iommu/arm/arm-smmu-v3/ |
A D | arm-smmu-v3-sva.c | 321 if (bond->mm == mm) { in __arm_smmu_sva_bind() 323 return &bond->sva; in __arm_smmu_sva_bind() 327 bond = kzalloc(sizeof(*bond), GFP_KERNEL); in __arm_smmu_sva_bind() 328 if (!bond) in __arm_smmu_sva_bind() 336 bond->mm = mm; in __arm_smmu_sva_bind() 337 bond->sva.dev = dev; in __arm_smmu_sva_bind() 347 return &bond->sva; in __arm_smmu_sva_bind() 352 kfree(bond); in __arm_smmu_sva_bind() 378 list_del(&bond->list); in arm_smmu_sva_unbind() 381 kfree(bond); in arm_smmu_sva_unbind() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
A D | bond.c | 322 uplink_priv->bond = kvzalloc(sizeof(*uplink_priv->bond), GFP_KERNEL); in mlx5e_rep_bond_init() 323 if (!uplink_priv->bond) { in mlx5e_rep_bond_init() 328 INIT_LIST_HEAD(&uplink_priv->bond->metadata_list); in mlx5e_rep_bond_init() 331 &uplink_priv->bond->nb, in mlx5e_rep_bond_init() 332 &uplink_priv->bond->nn); in mlx5e_rep_bond_init() 335 kvfree(uplink_priv->bond); in mlx5e_rep_bond_init() 336 uplink_priv->bond = NULL; in mlx5e_rep_bond_init() 348 !rpriv->uplink_priv.bond) in mlx5e_rep_bond_cleanup() 352 &rpriv->uplink_priv.bond->nb, in mlx5e_rep_bond_cleanup() 353 &rpriv->uplink_priv.bond->nn); in mlx5e_rep_bond_cleanup() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | xdp_bonding.c | 387 int veth, bond, err; in test_xdp_bonding_attach() local 397 bond = if_nametoindex("bond"); in test_xdp_bonding_attach() 398 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_attach() 419 link2 = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach() 427 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach() 449 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_attach() 466 int bond, err; in test_xdp_bonding_nested() local 471 bond = if_nametoindex("bond"); in test_xdp_bonding_nested() 472 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_nested() 489 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, bond); in test_xdp_bonding_nested()
|
/linux/Documentation/devicetree/bindings/media/ |
A D | renesas,drif.yaml | 40 property called "renesas,primary-bond". 44 the zeroth channel is selected as primary-bond. This channels accepts 45 properties common to all the members of the bond. 47 "renesas,bonding" or "renesas,primary-bond" will have no effect. That 93 renesas,primary-bond: 134 - renesas,primary-bond 188 renesas,primary-bond;
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot.c | 1703 if (ocelot_port->bond == bond) { in ocelot_get_bond_mask() 1790 struct net_device *bond = ocelot_port->bond; in ocelot_apply_bridge_fwd_mask() local 1795 if (bond) { in ocelot_apply_bridge_fwd_mask() 2107 struct net_device *bond = ocelot->ports[lag]->bond; in ocelot_set_aggr_pgids() local 2146 if (ocelot_port->bond == bond) in ocelot_set_aggr_pgids() 2163 struct net_device *bond; in ocelot_setup_logical_port_ids() local 2168 bond = ocelot_port->bond; in ocelot_setup_logical_port_ids() 2169 if (bond) { in ocelot_setup_logical_port_ids() 2187 struct net_device *bond, in ocelot_port_lag_join() argument 2193 ocelot->ports[port]->bond = bond; in ocelot_port_lag_join() [all …]
|
A D | ocelot_net.c | 1222 struct net_device *bond, in ocelot_netdevice_lag_join() argument 1239 bridge_dev = netdev_master_upper_dev_get(bond); in ocelot_netdevice_lag_join() 1250 ocelot_port_lag_leave(ocelot, port, bond); in ocelot_netdevice_lag_join() 1255 struct net_device *bond) in ocelot_netdevice_pre_lag_leave() argument 1259 bridge_dev = netdev_master_upper_dev_get(bond); in ocelot_netdevice_pre_lag_leave() 1263 ocelot_netdevice_pre_bridge_leave(dev, bond); in ocelot_netdevice_pre_lag_leave() 1267 struct net_device *bond) in ocelot_netdevice_lag_leave() argument 1275 ocelot_port_lag_leave(ocelot, port, bond); in ocelot_netdevice_lag_leave() 1331 if (ocelot_port->bond != dev) in ocelot_netdevice_lag_changeupper() 1368 if (ocelot_port->bond != dev) in ocelot_netdevice_lag_prechangeupper() [all …]
|
/linux/Documentation/networking/ |
A D | bonding.rst | 500 present in the bond. 1467 To add a new bond foo:: 1622 bond-slaves eth0 eth1 1624 bond-miimon 100 1634 bond-slaves none 1636 bond-miimon 100 1640 bond-master bond0 1645 bond-master bond0 1908 is attached to the bond, the bond device itself will pick up the 1920 bond interface: [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | q_in_q_veto.sh | 113 ip link add name bond1 type bond mode 802.3ad 182 ip link add name bond1 type bond mode 802.3ad 230 ip link add name bond1 type bond mode 802.3ad
|
A D | tc_sample.sh | 90 ip link add name ${h3}_bond type bond mode 802.3ad 111 ip link add name ${h4}_bond type bond mode 802.3ad 139 ip link add name ${rp3}_bond type bond mode 802.3ad 145 ip link add name ${rp4}_bond type bond mode 802.3ad
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_netdev.c | 2913 if (bond->is_bonded) { in mlx4_en_bond_work() 2923 bond->port_map.port1, in mlx4_en_bond_work() 2924 bond->port_map.port2, in mlx4_en_bond_work() 2932 dev_put(bond->priv->dev); in mlx4_en_bond_work() 2933 kfree(bond); in mlx4_en_bond_work() 2941 bond = kzalloc(sizeof(*bond), GFP_ATOMIC); in mlx4_en_queue_bond_work() 2942 if (!bond) in mlx4_en_queue_bond_work() 2946 bond->priv = priv; in mlx4_en_queue_bond_work() 2947 bond->is_bonded = is_bonded; in mlx4_en_queue_bond_work() 2948 bond->port_map.port1 = v2p_p1; in mlx4_en_queue_bond_work() [all …]
|
/linux/Documentation/driver-api/iio/ |
A D | hw-consumer.rst | 6 The Industrial I/O HW consumer offers a way to bond these IIO devices without
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_rep.h | 98 struct mlx5e_rep_bond *bond; member
|