/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_lag.c | 30 * @lag: LAG info struct 32 static void ice_lag_set_primary(struct ice_lag *lag) argument 34 struct ice_pf *pf = lag->pf; 39 if (lag->role != ICE_LAG_UNSET && lag->role != ICE_LAG_BACKUP) { 41 netdev_name(lag->netdev)); 45 lag->role = ICE_LAG_PRIMARY; 50 * @lag: LAG info struct 52 static void ice_lag_set_backup(struct ice_lag *lag) argument 54 struct ice_pf *pf = lag 130 ice_lag_find_hw_by_lport(struct ice_lag *lag, u8 lport) argument 179 ice_lag_find_primary(struct ice_lag *lag) argument 208 ice_lag_cfg_fltr(struct ice_lag *lag, u32 act, u16 recipe_id, u16 *rule_idx, bool add) argument 265 ice_lag_cfg_dflt_fltr(struct ice_lag *lag, bool add) argument 280 ice_lag_cfg_drop_fltr(struct ice_lag *lag, bool add) argument 296 ice_lag_cfg_pf_fltrs(struct ice_lag *lag, void *ptr) argument 334 ice_display_lag_info(struct ice_lag *lag) argument 491 ice_lag_move_vf_node_tc(struct ice_lag *lag, u8 oldport, u8 newport, u16 vsi_num, u8 tc) argument 597 ice_lag_build_netdev_list(struct ice_lag *lag, struct ice_lag_netdev_list *ndlist) argument 622 ice_lag_destroy_netdev_list(struct ice_lag *lag, struct ice_lag_netdev_list *ndlist) argument 644 ice_lag_move_single_vf_nodes(struct ice_lag *lag, u8 oldport, u8 newport, u16 vsi_num) argument 665 struct ice_lag *lag; local 707 ice_lag_move_vf_nodes(struct ice_lag *lag, u8 oldport, u8 newport) argument 736 ice_lag_move_vf_nodes_cfg(struct ice_lag *lag, u8 src_prt, u8 dst_prt) argument 754 ice_lag_cfg_cp_fltr(struct ice_lag *lag, bool add) argument 807 ice_lag_info_event(struct ice_lag *lag, void *ptr) argument 849 ice_lag_reclaim_vf_tc(struct ice_lag *lag, struct ice_hw *src_hw, u16 vsi_num, u8 tc) argument 946 ice_lag_reclaim_vf_nodes(struct ice_lag *lag, struct ice_hw *src_hw) argument 966 ice_lag_link(struct ice_lag *lag) argument 983 ice_lag_unlink(struct ice_lag *lag) argument 1027 ice_lag_link_unlink(struct ice_lag *lag, void *ptr) argument 1134 ice_lag_primary_swid(struct ice_lag *lag, bool link) argument 1151 ice_lag_add_prune_list(struct ice_lag *lag, struct ice_pf *event_pf) argument 1192 ice_lag_del_prune_list(struct ice_lag *lag, struct ice_pf *event_pf) argument 1254 ice_lag_changeupper_event(struct ice_lag *lag, void *ptr) argument 1312 ice_lag_monitor_link(struct ice_lag *lag, void *ptr) argument 1358 ice_lag_monitor_active(struct ice_lag *lag, void *ptr) argument 1429 ice_lag_chk_comp(struct ice_lag *lag, void *ptr) argument 1524 ice_lag_unregister(struct ice_lag *lag, struct net_device *event_netdev) argument 1566 ice_lag_monitor_rdma(struct ice_lag *lag, void *ptr) argument 1592 ice_lag_chk_disabled_bond(struct ice_lag *lag, void *ptr) argument 1617 ice_lag_disable_sriov_bond(struct ice_lag *lag) argument 1713 struct ice_lag *lag; local 1791 ice_register_lag_handler(struct ice_lag *lag) argument 1814 ice_unregister_lag_handler(struct ice_lag *lag) argument 1873 ice_lag_move_vf_nodes_tc_sync(struct ice_lag *lag, struct ice_hw *dest_hw, u16 vsi_num, u8 tc) argument 1969 ice_lag_move_vf_nodes_sync(struct ice_lag *lag, struct ice_hw *dest_hw) argument 1996 struct ice_lag *lag; local 2079 struct ice_lag *lag; local 2116 struct ice_lag *lag, *prim_lag; local 2170 struct ice_lag *lag = pf->lag; local [all...] |
H A D | ice_lag.h | 56 struct ice_lag *lag; member in struct:ice_lag_work 71 void ice_lag_move_vf_nodes_cfg(struct ice_lag *lag, u8 src_prt, u8 dst_prt);
|
H A D | ice_dcb_nl.c | 73 if (pf->lag && pf->lag->bonded) { 178 if (pf->lag && pf->lag->bonded) { 274 if (pf->lag && pf->lag->bonded) { 341 if (pf->lag && pf->lag->bonded) { 402 if (pf->lag && pf->lag [all...] |
H A D | ice_vf_lib.c | 839 struct ice_lag *lag; local 864 lag = pf->lag; 866 if (lag && lag->bonded && lag->primary) { 867 act_prt = lag->active_port; 869 lag->upper_netdev) 870 ice_lag_move_vf_nodes_cfg(lag, act_prt, pri_prt); 959 if (lag [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | lag_conf.c | 86 static unsigned int nfp_fl_get_next_pkt_number(struct nfp_fl_lag *lag) argument 88 lag->pkt_num++; 89 lag->pkt_num &= NFP_FL_LAG_PKT_NUMBER_MASK; 91 return lag->pkt_num; 94 static void nfp_fl_increment_version(struct nfp_fl_lag *lag) argument 97 lag->batch_ver += 2; 98 lag->batch_ver &= NFP_FL_LAG_VERSION_MASK; 101 if (!lag->batch_ver) 102 lag->batch_ver += 2; 106 nfp_fl_lag_group_create(struct nfp_fl_lag *lag, struc argument 142 nfp_fl_lag_find_group_for_master_with_lag(struct nfp_fl_lag *lag, struct net_device *master) argument 207 nfp_flower_lag_get_info_from_netdev(struct nfp_app *app, struct net_device *netdev, struct nfp_tun_neigh_lag *lag) argument 232 nfp_fl_lag_config_group(struct nfp_fl_lag *lag, struct nfp_fl_lag_group *group, struct net_device **active_members, unsigned int member_cnt, enum nfp_fl_lag_batch *batch) argument 300 struct nfp_fl_lag *lag; local 417 nfp_fl_lag_put_unprocessed(struct nfp_fl_lag *lag, struct sk_buff *skb) argument 437 nfp_fl_send_unprocessed(struct nfp_fl_lag *lag) argument 503 nfp_fl_lag_schedule_group_remove(struct nfp_fl_lag *lag, struct nfp_fl_lag_group *group) argument 512 nfp_fl_lag_schedule_group_delete(struct nfp_fl_lag *lag, struct net_device *master) argument 540 nfp_fl_lag_changeupper_event(struct nfp_fl_lag *lag, struct netdev_notifier_changeupper_info *info) argument 622 nfp_fl_lag_changels_event(struct nfp_fl_lag *lag, struct net_device *netdev, struct netdev_notifier_changelowerstate_info *info) argument 669 struct nfp_fl_lag *lag = &priv->nfp_lag; local 689 nfp_flower_lag_reset(struct nfp_fl_lag *lag) argument 697 nfp_flower_lag_init(struct nfp_fl_lag *lag) argument 710 nfp_flower_lag_cleanup(struct nfp_fl_lag *lag) argument [all...] |
H A D | main.h | 109 * struct nfp_tun_neigh_lag - lag info 110 * @lag_version: lag version 111 * @lag_instance: lag instance 148 * @lag: lag port info 155 struct nfp_tun_neigh_lag lag; member in struct:nfp_tun_neigh_v4 164 * @lag: lag port info 171 struct nfp_tun_neigh_lag lag; member in struct:nfp_tun_neigh_v6 363 * @lag_port_flags: Extended port flags to record lag stat [all...] |
/linux-master/include/rdma/ |
H A D | lag.h | 9 #include <net/lag.h>
|
/linux-master/net/dsa/ |
H A D | trace.c | 15 sprintf(buf, "lag %s id %d", db->lag.dev->name, db->lag.id);
|
H A D | dsa.h | 20 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag); 21 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag);
|
H A D | switch.h | 63 struct dsa_lag *lag; member in struct:dsa_notifier_lag_fdb_info 79 struct dsa_lag lag; member in struct:dsa_notifier_lag_info
|
H A D | switch.c | 354 static int dsa_switch_do_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag *lag, argument 361 mutex_lock(&lag->fdb_lock); 363 a = dsa_mac_addr_find(&lag->fdbs, addr, vid, db); 366 trace_dsa_lag_fdb_add_bump(lag->dev, addr, vid, &db, 377 err = ds->ops->lag_fdb_add(ds, *lag, addr, vid, db); 378 trace_dsa_lag_fdb_add_hw(lag->dev, addr, vid, &db, err); 388 list_add_tail(&a->list, &lag->fdbs); 391 mutex_unlock(&lag->fdb_lock); 396 static int dsa_switch_do_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag *lag, argument 403 mutex_lock(&lag [all...] |
H A D | port.c | 593 if (!dp->lag) 615 struct dsa_lag *lag; local 617 lag = dsa_tree_lag_find(ds->dst, lag_dev); 618 if (lag) { 619 refcount_inc(&lag->refcount); 620 dp->lag = lag; 624 lag = kzalloc(sizeof(*lag), GFP_KERNEL); 625 if (!lag) 640 struct dsa_lag *lag = dp->lag; local [all...] |
H A D | tag_dsa.c | 261 struct dsa_lag *lag; local 267 lag = dsa_lag_by_id(cpu_dp->dst, source_port + 1); 268 skb->dev = lag ? lag->dev : NULL;
|
H A D | dsa.c | 55 * @lag: LAG structure that is to be mapped to the tree's array. 63 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag) argument 69 dst->lags[id - 1] = lag; 70 lag->id = id; 86 * @lag: LAG structure that was mapped. 91 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag) argument 96 if (dsa_lag_by_id(dst, id) == lag) { 98 lag->id = 0; 111 return dp->lag; 1672 return a->lag [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | mpesw.h | 7 #include "lag.h" 22 struct mlx5_lag *lag; member in struct:mlx5_mpesw_work_st
|
H A D | lag.h | 72 /* Protect lag fields/state changes */ 80 return dev->priv.lag;
|
H A D | mpesw.c | 6 #include "lag/lag.h" 133 struct mlx5_lag *ldev = mpesww->lag; 173 work->lag = ldev;
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_lag.c | 10 int p, lag, i; local 39 for (lag = 0; lag < lan966x->num_phys_ports; ++lag) { 40 struct lan966x_port *port = lan966x->ports[lag]; 46 if (!port || !port->bond || (visited & BIT(lag))) 81 for (p = lag; p < lan966x->num_phys_ports; p++) { 267 struct netdev_lag_lower_state_info *lag = info->lower_state_info; local 275 is_active = lag->link_up && lag 333 lan966x_lag_first_port(struct net_device *lag, struct net_device *dev) argument [all...] |
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_main.c | 618 port->lag = NULL; 877 struct prestera_lag *lag; local 881 lag = &sw->lags[id]; 882 if (lag->dev == dev) 883 return lag; 892 struct prestera_lag *lag; local 897 lag = prestera_lag_by_id(sw, id); 898 if (lag->member_count) { 899 if (lag->dev == lag_dev) { 916 struct prestera_lag *lag local 932 prestera_lag_destroy(struct prestera_switch *sw, struct prestera_lag *lag) argument 944 struct prestera_lag *lag; local 974 struct prestera_lag *lag = port->lag; local [all...] |
/linux-master/include/net/ |
H A D | dsa.h | 193 struct dsa_lag *lag = dsa_lag_by_id(dst, id); local 195 if (lag->dev == lag_dev) 196 return lag->id; 300 struct dsa_lag *lag; member in struct:dsa_port 352 struct dsa_lag lag; member in union:dsa_db::__anon2445 702 return dp->lag ? dp->lag->id : 0; 707 return dp->lag ? dp->lag->dev : NULL; 711 const struct dsa_lag *lag) 710 dsa_port_offloads_lag(struct dsa_port *dp, const struct dsa_lag *lag) argument [all...] |
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | mirror_gre_bridge_1q_lag.sh | 26 # | | + lag (team) 192.0.2.129/28 | | 146 team_create lag loadbalance $swp3 $swp4 147 ip link set dev lag master br1 156 ip link set dev lag nomaster 157 team_destroy lag
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | Makefile | 17 fs_counters.o fs_ft_pool.o rl.o lag/debugfs.o lag/lag.o dev.o events.o wq.o lib/gid.o \ 41 mlx5_core-$(CONFIG_MLX5_ESWITCH) += lag/mp.o lag/port_sel.o lib/geneve.o lib/port_tun.o \ 43 en/mapping.o lag/mpesw.o
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | pci_hw.h | 143 MLXSW_ITEM32(pci, cqe0, lag, 0x00, 23, 1); 144 MLXSW_ITEM32(pci, cqe12, lag, 0x00, 24, 1); 145 mlxsw_pci_cqe_item_helpers(lag, 0, 12, 12); 148 * When lag=0: System port on which the packet was received 149 * When lag=1:
|
/linux-master/drivers/net/dsa/qca/ |
H A D | qca8k-common.c | 1042 struct dsa_lag lag, 1049 if (!lag.id) 1052 dsa_lag_foreach_port(dp, ds->dst, &lag) 1079 struct dsa_lag lag, 1082 struct net_device *lag_dev = lag.dev; 1103 if (i != lag.id && dsa_lag_by_id(ds->dst, i)) { 1109 * is set to all the 4 possible lag. 1118 netdev_err(lag_dev, "Error: Mismatched Hash Mode across different lag is not supported\n"); 1127 struct dsa_lag lag, bool delete) 1134 id = lag 1041 qca8k_lag_can_offload(struct dsa_switch *ds, struct dsa_lag lag, struct netdev_lag_upper_info *info, struct netlink_ext_ack *extack) argument 1078 qca8k_lag_setup_hash(struct dsa_switch *ds, struct dsa_lag lag, struct netdev_lag_upper_info *info) argument 1126 qca8k_lag_refresh_portmap(struct dsa_switch *ds, int port, struct dsa_lag lag, bool delete) argument 1195 qca8k_port_lag_join(struct dsa_switch *ds, int port, struct dsa_lag lag, struct netdev_lag_upper_info *info, struct netlink_ext_ack *extack) argument 1211 qca8k_port_lag_leave(struct dsa_switch *ds, int port, struct dsa_lag lag) argument [all...] |
/linux-master/drivers/infiniband/core/ |
H A D | Makefile | 15 trace.o lag.o
|