/linux-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_lag.c | 29 if (lag->role != ICE_LAG_UNSET && lag->role != ICE_LAG_BACKUP) { in ice_lag_set_primary() 67 name = lag->netdev ? netdev_name(lag->netdev) : "unset"; in ice_display_lag_info() 113 if (event_netdev != lag->netdev || !lag->bonded || !lag->upper_netdev) in ice_lag_info_event() 226 if (netdev != lag->netdev || !lag->bonded) in ice_lag_unregister() 394 pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL); in ice_init_lag() 397 lag = pf->lag; in ice_init_lag() 426 kfree(lag); in ice_init_lag() 442 lag = pf->lag; in ice_deinit_lag() 444 if (!lag) in ice_deinit_lag() 447 if (lag->pf) in ice_deinit_lag() [all …]
|
A D | ice_lag.h | 44 static inline void ice_disable_lag(struct ice_lag *lag) in ice_disable_lag() argument 48 if (!netdev_is_rx_handler_busy(lag->netdev)) { in ice_disable_lag() 49 if (!netdev_rx_handler_register(lag->netdev, in ice_disable_lag() 52 lag->handler = true; in ice_disable_lag() 55 lag->dis_lag++; in ice_disable_lag() 67 if (lag->dis_lag) in ice_enable_lag() 68 lag->dis_lag--; in ice_enable_lag() 69 if (!lag->dis_lag && lag->handler) { in ice_enable_lag() 71 netdev_rx_handler_unregister(lag->netdev); in ice_enable_lag() 73 lag->handler = false; in ice_enable_lag() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/flower/ |
A D | lag_conf.c | 88 lag->pkt_num++; in nfp_fl_get_next_pkt_number() 91 return lag->pkt_num; in nfp_fl_get_next_pkt_number() 97 lag->batch_ver += 2; in nfp_fl_increment_version() 101 if (!lag->batch_ver) in nfp_fl_increment_version() 102 lag->batch_ver += 2; in nfp_fl_increment_version() 212 lag->lag_version, &lag->lag_instance); in nfp_flower_lag_get_info_from_netdev() 261 if (lag->rst_cfg) { in nfp_fl_lag_config_group() 271 lag->rst_cfg = false; in nfp_fl_lag_config_group() 300 struct nfp_fl_lag *lag; in nfp_fl_lag_do_work() local 307 mutex_lock(&lag->lock); in nfp_fl_lag_do_work() [all …]
|
A D | main.h | 155 struct nfp_tun_neigh_lag lag; member 171 struct nfp_tun_neigh_lag lag; member 653 void nfp_flower_lag_init(struct nfp_fl_lag *lag); 654 void nfp_flower_lag_cleanup(struct nfp_fl_lag *lag); 655 int nfp_flower_lag_reset(struct nfp_fl_lag *lag); 668 struct nfp_tun_neigh_lag *lag);
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_main.c | 623 port->lag = NULL; in prestera_port_create() 888 return lag; in prestera_lag_by_dev() 926 if (!lag->dev) in prestera_lag_create() 929 if (lag) { in prestera_lag_create() 934 return lag; in prestera_lag_create() 942 lag->dev = NULL; in prestera_lag_destroy() 953 if (!lag) { in prestera_lag_port_add() 955 if (!lag) in prestera_lag_port_add() 971 port->lag = lag; in prestera_lag_port_add() 979 struct prestera_lag *lag = port->lag; in prestera_lag_port_del() local [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/ |
A D | lan966x_lag.c | 10 int p, lag, i; in lan966x_lag_set_aggr_pgids() local 39 for (lag = 0; lag < lan966x->num_phys_ports; ++lag) { in lan966x_lag_set_aggr_pgids() 40 struct net_device *bond = lan966x->ports[lag]->bond; in lan966x_lag_set_aggr_pgids() 45 if (!bond || (visited & BIT(lag))) in lan966x_lag_set_aggr_pgids() 76 for (p = lag; p < lan966x->num_phys_ports; p++) { in lan966x_lag_set_aggr_pgids() 262 struct netdev_lag_lower_state_info *lag = info->lower_state_info; in lan966x_lag_port_changelowerstate() local 270 is_active = lag->link_up && lag->tx_enabled; in lan966x_lag_port_changelowerstate() 328 bool lan966x_lag_first_port(struct net_device *lag, struct net_device *dev) in lan966x_lag_first_port() argument 334 if (port->bond != lag) in lan966x_lag_first_port() 337 bond_mask = lan966x_lag_get_mask(lan966x, lag); in lan966x_lag_first_port()
|
A D | lan966x_mac.c | 25 bool lag; member 217 mac_entry->lag = port->bond ? true : false; in lan966x_mac_alloc_entry() 346 mac_entry->lag) { in lan966x_mac_lag_replace_port_entry() 369 mac_entry->lag) { in lan966x_mac_lag_remove_port_entry()
|
/linux-6.3-rc2/net/dsa/ |
A D | switch.c | 330 mutex_lock(&lag->fdb_lock); in dsa_switch_do_lag_fdb_add() 354 list_add_tail(&a->list, &lag->fdbs); in dsa_switch_do_lag_fdb_add() 357 mutex_unlock(&lag->fdb_lock); in dsa_switch_do_lag_fdb_add() 369 mutex_lock(&lag->fdb_lock); in dsa_switch_do_lag_fdb_del() 390 mutex_unlock(&lag->fdb_lock); in dsa_switch_do_lag_fdb_del() 407 err = dsa_switch_do_lag_fdb_add(ds, dp->lag, in dsa_switch_host_fdb_add() 435 err = dsa_switch_do_lag_fdb_del(ds, dp->lag, in dsa_switch_host_fdb_del() 485 if (dsa_port_offloads_lag(dp, info->lag)) in dsa_switch_lag_fdb_add() 503 if (dsa_port_offloads_lag(dp, info->lag)) in dsa_switch_lag_fdb_del() 533 info->dp->index, info->lag, in dsa_switch_lag_join() [all …]
|
A D | port.c | 616 if (lag) { in dsa_port_lag_create() 618 dp->lag = lag; in dsa_port_lag_create() 622 lag = kzalloc(sizeof(*lag), GFP_KERNEL); in dsa_port_lag_create() 623 if (!lag) in dsa_port_lag_create() 631 dp->lag = lag; in dsa_port_lag_create() 638 struct dsa_lag *lag = dp->lag; in dsa_port_lag_destroy() local 648 kfree(lag); in dsa_port_lag_destroy() 667 info.lag = *dp->lag; in dsa_port_lag_join() 715 info.lag = *dp->lag; in dsa_port_lag_leave() 1122 .lag = dp->lag, in dsa_port_lag_fdb_add() [all …]
|
A D | tag_dsa.c | 261 struct dsa_lag *lag; in dsa_rcv_ll() local 267 lag = dsa_lag_by_id(cpu_dp->dst, source_port + 1); in dsa_rcv_ll() 268 skb->dev = lag ? lag->dev : NULL; in dsa_rcv_ll()
|
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);
|
A D | switch.h | 63 struct dsa_lag *lag; member 79 struct dsa_lag lag; member
|
A D | dsa.c | 63 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_map() argument 69 dst->lags[id - 1] = lag; in dsa_lag_map() 70 lag->id = id; in dsa_lag_map() 91 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_unmap() argument 96 if (dsa_lag_by_id(dst, id) == lag) { in dsa_lag_unmap() 98 lag->id = 0; in dsa_lag_unmap() 111 return dp->lag; in dsa_tree_lag_find() 1654 return a->lag.dev == b->lag.dev; in dsa_db_equal()
|
/linux-6.3-rc2/include/net/ |
A D | dsa.h | 205 if (lag->dev == lag_dev) in dsa_lag_id() 206 return lag->id; in dsa_lag_id() 310 struct dsa_lag *lag; member 359 struct dsa_lag lag; member 709 return dp->lag ? dp->lag->id : 0; in dsa_port_lag_id_get() 714 return dp->lag ? dp->lag->dev : NULL; in dsa_port_lag_dev_get() 718 const struct dsa_lag *lag) in dsa_port_offloads_lag() argument 737 if (dp->lag) in dsa_port_to_bridge_port() 738 return dp->lag->dev; in dsa_port_to_bridge_port() 1187 struct dsa_lag lag, [all …]
|
/linux-6.3-rc2/drivers/net/dsa/qca/ |
A D | qca8k-common.c | 982 struct dsa_lag lag, in qca8k_lag_can_offload() argument 989 if (!lag.id) in qca8k_lag_can_offload() 992 dsa_lag_foreach_port(dp, ds->dst, &lag) in qca8k_lag_can_offload() 1019 struct dsa_lag lag, in qca8k_lag_setup_hash() argument 1022 struct net_device *lag_dev = lag.dev; in qca8k_lag_setup_hash() 1043 if (i != lag.id && dsa_lag_by_id(ds->dst, i)) { in qca8k_lag_setup_hash() 1067 struct dsa_lag lag, bool delete) in qca8k_lag_refresh_portmap() argument 1074 id = lag.id - 1; in qca8k_lag_refresh_portmap() 1141 if (!qca8k_lag_can_offload(ds, lag, info, extack)) in qca8k_port_lag_join() 1144 ret = qca8k_lag_setup_hash(ds, lag, info); in qca8k_port_lag_join() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
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-6.3-rc2/tools/testing/selftests/net/forwarding/ |
A D | mirror_gre_bridge_1q_lag.sh | 145 team_create lag loadbalance $swp3 $swp4 146 ip link set dev lag master br1 155 ip link set dev lag nomaster 156 team_destroy lag
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
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);
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
A D | mpesw.h | 22 struct mlx5_lag *lag; member
|
A D | mpesw.c | 128 struct mlx5_lag *ldev = mpesww->lag; in mlx5_mpesw_work() 164 work->lag = ldev; in mlx5_lag_mpesw_queue_work()
|
A D | lag.h | 90 return dev->priv.lag; in mlx5_lag_dev()
|
/linux-6.3-rc2/drivers/net/dsa/ocelot/ |
A D | felix.c | 50 int lag; in felix_cpu_port_for_master() local 54 lag = ocelot_bond_get_id(ocelot, master); in felix_cpu_port_for_master() 57 return lag; in felix_cpu_port_for_master() 835 return ocelot_lag_fdb_add(ocelot, lag.dev, addr, vid, bridge_dev); in felix_lag_fdb_add() 848 return ocelot_lag_fdb_del(ocelot, lag.dev, addr, vid, bridge_dev); in felix_lag_fdb_del() 941 struct dsa_lag lag, in felix_lag_join() argument 948 err = ocelot_port_lag_join(ocelot, port, lag.dev, info, extack); in felix_lag_join() 956 return felix_port_change_master(ds, port, lag.dev, extack); in felix_lag_join() 960 struct dsa_lag lag) in felix_lag_leave() argument 964 ocelot_port_lag_leave(ocelot, port, lag.dev); in felix_lag_leave() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mscc/ |
A D | ocelot.c | 1931 int i, port, lag; in ocelot_set_aggr_pgids() local 1959 for (lag = 0; lag < ocelot->num_phys_ports; lag++) { in ocelot_set_aggr_pgids() 1960 struct net_device *bond = ocelot->ports[lag]->bond; in ocelot_set_aggr_pgids() 1965 if (!bond || (visited & BIT(lag))) in ocelot_set_aggr_pgids() 1997 for (port = lag; port < ocelot->num_phys_ports; port++) { in ocelot_set_aggr_pgids() 2027 int lag = ocelot_bond_get_id(ocelot, bond); in ocelot_setup_logical_port_ids() local 2030 ANA_PORT_PORT_CFG_PORTID_VAL(lag), in ocelot_setup_logical_port_ids() 2115 int lag) in ocelot_migrate_lag_fdbs() argument 2133 err = ocelot_mact_learn(ocelot, lag, fdb->addr, fdb->vid, in ocelot_migrate_lag_fdbs() 2212 int lag, err; in ocelot_lag_fdb_add() local [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/spi/ |
A D | samsung,spi-peripheral-props.yaml | 24 for any lag in the miso line). Valid values:
|
/linux-6.3-rc2/drivers/infiniband/core/ |
A D | Makefile | 15 trace.o lag.o
|