Home
last modified time | relevance | path

Searched refs:eswitch (Results 1 – 25 of 49) sorted by relevance

12

/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch.c22 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_env()
111 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_setup_repr()
183 repr = xa_load(&pf->eswitch.reprs, *repr_id); in ice_eswitch_update_repr()
200 xa_erase(&pf->eswitch.reprs, repr->id); in ice_eswitch_update_repr()
202 if (xa_insert(&pf->eswitch.reprs, repr->id, repr, GFP_KERNEL)) in ice_eswitch_update_repr()
270 struct ice_vsi *uplink_vsi = pf->eswitch.uplink_vsi; in ice_eswitch_release_env()
305 pf->eswitch.uplink_vsi = uplink_vsi; in ice_eswitch_enable_switchdev()
315 pf->eswitch.is_running = true; in ice_eswitch_enable_switchdev()
333 pf->eswitch.is_running = false; in ice_eswitch_disable_switchdev()
361 xa_destroy(&pf->eswitch.reprs); in ice_eswitch_mode_set()
[all …]
H A Dice_eswitch_br.c959 struct ice_vsi *vsi = pf->eswitch.uplink_vsi; in ice_eswitch_br_uplink_port_init()
1197 struct ice_esw_br_offloads *br_offloads = pf->eswitch.br_offloads; in ice_eswitch_br_offloads_dealloc()
1206 pf->eswitch.br_offloads = NULL; in ice_eswitch_br_offloads_dealloc()
1217 if (pf->eswitch.br_offloads) in ice_eswitch_br_offloads_alloc()
1224 pf->eswitch.br_offloads = br_offloads; in ice_eswitch_br_offloads_alloc()
1235 br_offloads = pf->eswitch.br_offloads; in ice_eswitch_br_offloads_deinit()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dshared_fdb.c28 mlx5_eswitch_vport_match_metadata_enabled(dev->priv.eswitch) && in mlx5_lag_shared_fdb_supported_filter()
31 mlx5_eswitch_is_peer(dev0->priv.eswitch, dev->priv.eswitch)) in mlx5_lag_shared_fdb_supported_filter()
37 mlx5_eswitch_vport_match_metadata_enabled(dev0->priv.eswitch) && in mlx5_lag_shared_fdb_supported_filter()
38 mlx5_esw_offloads_devcom_is_ready(dev0->priv.eswitch) && in mlx5_lag_shared_fdb_supported_filter()
64 master_esw = dev0->priv.eswitch; in mlx5_lag_create_single_fdb_filter()
71 slave_esw = mlx5_lag_pf(ldev, i)->dev->priv.eswitch; in mlx5_lag_create_single_fdb_filter()
86 slave_esw = mlx5_lag_pf(ldev, j)->dev->priv.eswitch; in mlx5_lag_create_single_fdb_filter()
106 master_esw = dev0->priv.eswitch; in mlx5_lag_create_vport_lag()
114 slave_esw = mlx5_lag_pf(ldev, i)->dev->priv.eswitch; in mlx5_lag_create_vport_lag()
129 slave_esw = mlx5_lag_pf(ldev, j)->dev->priv.eswitch; in mlx5_lag_create_vport_lag()
[all …]
H A Dmpesw.c20 esw = dev->priv.eswitch; in mlx5_mpesw_metadata_cleanup()
41 esw = dev->priv.eswitch; in mlx5_mpesw_metadata_set()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbond.c229 err = mlx5_esw_acl_egress_vport_bond(priv->mdev->priv.eswitch, in mlx5e_rep_changelowerstate_event()
263 mlx5e_rep_bond_enslave(priv->mdev->priv.eswitch, netdev, lag_dev); in mlx5e_rep_changeupper_event()
265 mlx5e_rep_bond_unslave(priv->mdev->priv.eswitch, netdev, lag_dev); in mlx5e_rep_changeupper_event()
288 rpriv = mlx5_eswitch_get_uplink_priv(priv->mdev->priv.eswitch, REP_ETH); in mlx5e_rep_esw_bond_netevent()
315 if (!mlx5_esw_acl_egress_fwd2vport_supported(priv->mdev->priv.eswitch)) in mlx5e_rep_bond_init()
343 if (!mlx5_esw_acl_egress_fwd2vport_supported(priv->mdev->priv.eswitch) || in mlx5e_rep_bond_cleanup()
H A Dtc.c95 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows()
212 esw = priv->mdev->priv.eswitch; in mlx5e_rep_setup_ft_cb()
392 esw = mpriv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_ft_cb()
449 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_check_indr_block_supported()
553 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_replace_act()
591 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_destroy_act()
613 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_stats_act()
722 esw = priv->mdev->priv.eswitch; in mlx5e_rep_tc_receive()
H A Dbridge.c26 return esw == priv->mdev->priv.eswitch; in mlx5_esw_bridge_dev_same_esw()
72 if (!priv->mdev->priv.eswitch->br_offloads) in mlx5_esw_bridge_rep_vport_num_vhca_id_get()
519 mdev->priv.eswitch; in mlx5e_rep_bridge_init()
580 mdev->priv.eswitch; in mlx5e_rep_bridge_cleanup()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dint_port.c154 struct mlx5_eswitch *esw = priv->dev->priv.eswitch; in mlx5e_int_port_add()
230 struct mlx5_eswitch *esw = priv->dev->priv.eswitch; in mlx5e_int_port_remove()
308 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init()
362 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init_rep_rx()
382 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_cleanup_rep_rx()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c92 return dev->priv.eswitch; in __mlx5_devlink_eswitch_get()
721 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_vport_change_handle_locked()
758 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in esw_vport_change_handler()
866 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_vhca_id_to_func_type()
1502 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_pf_enable_hca()
1528 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_pf_disable_hca()
2111 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_sf_max_spf_functions()
2129 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_get_num_spfs()
2140 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_spf_get_host_number()
2154 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_get_hpf_host_number()
[all …]
H A Den_tc.c295 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_act_stats_handle()
312 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_get_int_port_priv()
329 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5e_get_flow_meters()
354 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv()
371 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_sample_priv()
389 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_post_action()
408 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_insert()
421 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_delete()
493 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_rule_offload()
516 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_rule_unoffload()
[all …]
H A Den_rep.c204 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
575 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules()
630 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules()
640 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_add_meta_tunnel_rule()
1043 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_create_rep_vport_rx_rule()
1598 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, in mlx5e_vport_vf_rep_load()
1793 esw = mdev->priv.eswitch; in mlx5e_rep_probe()
1804 esw = mdev->priv.eswitch; in mlx5e_rep_remove()
H A Deswitch_offloads.c760 esw_attr->in_mdev->priv.eswitch, in mlx5_eswitch_add_offloaded_rule()
853 esw_attr->in_mdev->priv.eswitch, in mlx5_eswitch_add_fwd_rule()
1160 dest->vport.num = peer_dev->priv.eswitch->manager_vport; in peer_miss_rules_setup()
1188 struct mlx5_eswitch *peer_esw = peer_dev->priv.eswitch; in esw_add_fdb_peer_miss_rules()
1338 struct mlx5_eswitch *peer_esw = peer_dev->priv.eswitch; in esw_del_fdb_peer_miss_rules()
2720 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_port_metadata_set()
2747 ctx->val.vbool = mlx5_eswitch_vport_match_metadata_enabled(dev->priv.eswitch); in esw_port_metadata_get()
3029 dest.vport.num = slave->priv.eswitch->manager_vport; in __esw_set_master_egress_rule()
3120 struct mlx5_eswitch *slave_esw = slave->priv.eswitch; in esw_set_slave_egress_rule()
3139 dest.vport.num = master->priv.eswitch->manager_vport; in esw_set_slave_egress_rule()
[all …]
H A Drdma.c65 esw = dev->priv.eswitch; in mlx5_rdma_enable_roce_steering()
/linux/Documentation/networking/devlink/
H A Ddevlink-port.rst25 - Any kind of physical port. This can be an eswitch physical port or any
32 - This indicates an eswitch port representing a port of PCI
35 - This indicates an eswitch port representing a port of PCI
38 - This indicates an eswitch port representing a port of PCI
64 consists of one or more ports. This port is represented by the devlink eswitch
70 An eswitch is on the PCI device which supports ports of multiple controllers.
81 ----------- | | controller_num=1 (no eswitch) |
86 | devlink eswitch ports and reps |
102 | local controller_num=0 (eswitch) |
106 doesn't have the eswitch. Local controller (identified by controller number = 0)
[all …]
H A Dindex.rst59 devlink-eswitch-attr
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A Dswitchdev.rst21 $ devlink dev eswitch set pci/0000:06:00.0 mode switchdev
84 A subfunction supports eswitch representation through which it supports tc
85 offloads. The user configures eswitch to send/receive packets from/to
137 $ devlink dev eswitch set pci/0000:06:00.0 mode switchdev
163 This is supported only when the eswitch mode is set to switchdev. Port function
164 configuration of the PCI VF/SF is supported through devlink eswitch port.
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c240 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_sf_add()
300 return dev->priv.eswitch && MLX5_ESWITCH_MANAGER(dev) && in mlx5_sf_table_supported()
362 struct mlx5_eswitch *esw = table->dev->priv.eswitch; in mlx5_sf_del()
376 mlx5_esw_reps_block(dev->priv.eswitch); in mlx5_devlink_sf_port_del()
378 mlx5_esw_reps_unblock(dev->priv.eswitch); in mlx5_devlink_sf_port_del()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dtrap.c15 attr->dest_ft = mlx5_eswitch_get_slow_fdb(priv->mdev->priv.eswitch); in tc_act_parse_trap()
H A Dmirred.c28 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in verify_uplink_forwarding()
223 esw = priv->mdev->priv.eswitch; in parse_mirred()
H A Dgoto.c24 esw = priv->mdev->priv.eswitch; in validate_goto_chain()
H A Dvlan.c182 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in tc_act_post_parse_vlan()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dipsec_fs.c38 dest->ft = mlx5_chains_get_table(esw_chains(ipsec->mdev->priv.eswitch), 0, 1, 0); in mlx5_esw_ipsec_rx_status_pass_dest_get()
159 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_ipsec_restore_dest_uplink()
H A Dqos.c78 lockdep_assert_held(&dev->priv.eswitch->state_lock); in esw_assert_qos_lock_held()
86 mutex_lock(&dev->priv.eswitch->state_lock); in esw_qos_lock()
94 mutex_unlock(&dev->priv.eswitch->state_lock); in esw_qos_unlock()
112 mutex_lock(&dev->priv.eswitch->state_lock); in esw_qos_devlink_lock()
118 mutex_unlock(&dev->priv.eswitch->state_lock); in esw_qos_devlink_unlock()
1093 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in mlx5_esw_qos_vport_enable()
1132 esw_qos_put(vport->dev->priv.eswitch); in mlx5_esw_qos_vport_disable_locked()
1137 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in mlx5_esw_qos_vport_disable()
1240 node->parent->esw : vport->dev->priv.eswitch; in esw_qos_vport_validate_unsupported_tc_bw()
1636 if (!mlx5_esw_allowed(vport->dev->priv.eswitch)) in mlx5_esw_devlink_rate_leaf_tx_share_set()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_chains.c127 if (!chains->dev->priv.eswitch || in mlx5_chains_get_prio_range()
128 chains->dev->priv.eswitch->mode != MLX5_ESWITCH_OFFLOADS) in mlx5_chains_get_prio_range()
220 struct mlx5_eswitch *esw = chain->chains->dev->priv.eswitch; in create_chain_restore()
H A Dsd.c976 struct mlx5_eswitch *primary_esw = primary->priv.eswitch; in mlx5_sd_all_paired()
981 if (!mlx5_eswitch_is_peer(primary_esw, pos->priv.eswitch)) in mlx5_sd_all_paired()
1028 struct mlx5_eswitch *esw = pos->priv.eswitch; in mlx5_sd_activate_shared_fdb()

12