Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/infiniband/hw/mlx5/
Dib_rep.c17 ibdev = mlx5_eswitch_uplink_get_proto_dev(dev->priv.eswitch, REP_IB); in mlx5_ib_set_vport_rep()
80 mlx5_ib_get_rep_netdev(dev->priv.eswitch, rep->vport); in mlx5_ib_vport_rep_load()
143 esw = peer_mdev->priv.eswitch; in mlx5_ib_vport_rep_unload()
164 esw = peer_mdev->priv.eswitch; in mlx5_ib_register_peer_vport_reps()
178 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in create_flow_rule_vport_sq()
199 esw = mdev->priv.eswitch; in mlx5r_rep_probe()
210 esw = mdev->priv.eswitch; in mlx5r_rep_remove()
/Linux-v6.1/Documentation/networking/devlink/
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 …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_encap.c146 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_add()
216 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del()
403 esw = priv->mdev->priv.eswitch; in mlx5e_tc_update_neigh_used_value()
477 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_put()
490 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_put()
510 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_encap()
540 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_decap()
598 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_get()
618 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_get()
684 data = mlx5_eswitch_get_vport_metadata_for_set(esw_attr->in_mdev->priv.eswitch, in mlx5e_set_vf_tunnel()
[all …]
Dtc_tun.c59 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_route_and_out_devs()
121 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_route_lookup_ipv4_get()
716 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_tun_route_lookup()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
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()
Dtc.c96 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows()
199 esw = priv->mdev->priv.eswitch; in mlx5e_rep_setup_ft_cb()
379 esw = mpriv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_ft_cb()
439 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_block()
521 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_replace_act()
559 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_destroy_act()
581 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_stats_act()
672 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_tunnel()
781 esw = priv->mdev->priv.eswitch; in mlx5e_restore_skb_chain()
819 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_skb_int_port()
[all …]
Dbridge.c26 return esw == priv->mdev->priv.eswitch; in mlx5_esw_bridge_dev_same_esw()
499 mdev->priv.eswitch; in mlx5e_rep_bridge_init()
559 mdev->priv.eswitch; in mlx5e_rep_bridge_cleanup()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/sf/
Ddevlink.c288 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_sf_add()
386 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_devlink_sf_port_del()
467 struct mlx5_eswitch *esw = table->dev->priv.eswitch; in mlx5_sf_deactivate_all()
516 return dev->priv.eswitch && MLX5_ESWITCH_MANAGER(dev) && in mlx5_sf_table_supported()
538 err = mlx5_esw_event_notifier_register(dev->priv.eswitch, &table->esw_nb); in mlx5_sf_table_init()
550 mlx5_esw_event_notifier_unregister(dev->priv.eswitch, &table->esw_nb); in mlx5_sf_table_init()
566 mlx5_esw_event_notifier_unregister(dev->priv.eswitch, &table->esw_nb); in mlx5_sf_table_cleanup()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lag/
Dlag.c376 mlx5_esw_acl_ingress_vport_drop_rule_destroy(ldev->pf[i].dev->priv.eswitch, in mlx5_lag_drop_rule_cleanup()
405 err = mlx5_esw_acl_ingress_vport_drop_rule_create(dev->priv.eswitch, in mlx5_lag_drop_rule_setup()
579 err = mlx5_eswitch_offloads_config_single_fdb(dev0->priv.eswitch, in mlx5_create_lag()
580 dev1->priv.eswitch); in mlx5_create_lag()
662 mlx5_eswitch_offloads_destroy_single_fdb(dev0->priv.eswitch, in mlx5_deactivate_lag()
663 dev1->priv.eswitch); in mlx5_deactivate_lag()
705 if (mlx5_eswitch_num_vfs(dev->priv.eswitch) && !is_mdev_switchdev_mode(dev)) in mlx5_lag_check_prereq()
790 mlx5_eswitch_reload_reps(dev0->priv.eswitch); in mlx5_disable_lag()
792 mlx5_eswitch_reload_reps(dev1->priv.eswitch); in mlx5_disable_lag()
803 mlx5_eswitch_vport_match_metadata_enabled(dev0->priv.eswitch) && in mlx5_shared_fdb_supported()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
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()
360 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_init_rep_rx()
380 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_int_port_cleanup_rep_rx()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c171 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
405 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules()
459 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules()
469 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_add_meta_tunnel_rule()
616 return mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_rep_get_devlink_port()
865 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_create_rep_vport_rx_rule()
1266 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_load()
1284 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_unload()
1337 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_vf_rep_load()
1394 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_rep_unload()
[all …]
Deswitch.c88 return dev->priv.eswitch; in mlx5_devlink_eswitch_get()
704 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_vport_change_handle_locked()
738 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in esw_vport_change_handler()
1620 dev->priv.eswitch = esw; in mlx5_eswitch_init()
1648 esw->dev->priv.eswitch = NULL; in mlx5_eswitch_cleanup()
1911 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_eswitch_mode()
1922 esw = dev->priv.eswitch; in mlx5_eswitch_get_encap_mode()
1931 return (dev0->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS && in mlx5_esw_multipath_prereq()
1932 dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS); in mlx5_esw_multipath_prereq()
1955 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_hold()
[all …]
Den_tc.c273 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_get_int_port_priv()
290 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5e_get_flow_meters()
315 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv()
332 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_sample_priv()
350 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_post_action()
369 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_insert()
382 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_delete()
446 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_rule_offload()
478 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_rule_unoffload()
613 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_mod_hdr_table()
[all …]
Dsriov.c80 err = mlx5_eswitch_enable(dev->priv.eswitch, num_vfs); in mlx5_device_enable_sriov()
148 mlx5_eswitch_disable_sriov(dev->priv.eswitch, clear_vf); in mlx5_device_disable_sriov()
Drdma.c84 dev->priv.eswitch->manager_vport); in mlx5_rdma_enable_roce_steering()
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/mellanox/
Dmlx5.rst72 | 2) `Switchdev mode (eswitch offloads) <https://www.mellanox.com/related-docs/prod_softw…
205 - Show eswitch port metadata::
213 - Disable eswitch port metadata::
217 - Change eswitch mode to switchdev mode where after choosing the metadata value::
219 $ devlink dev eswitch set pci/0000:06:00.0 mode switchdev
229 $ devlink dev eswitch set pci/0000:06:00.0 mode switchdev
268 A Subfunction supports eswitch representation through which it supports tc
269 offloads. The user configures eswitch to send/receive packets from/to
321 $ devlink dev eswitch set pci/0000:06:00.0 mode switchdev
346 This is supported only when the eswitch mode is set to switchdev. Port function
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dqos.c793 esw = vport->dev->priv.eswitch; in mlx5_esw_devlink_rate_leaf_tx_share_set()
819 esw = vport->dev->priv.eswitch; in mlx5_esw_devlink_rate_leaf_tx_max_set()
842 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_share_set()
860 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_max_set()
950 return mlx5_esw_qos_vport_update_group(vport->dev->priv.eswitch, in mlx5_esw_devlink_rate_parent_set()
954 return mlx5_esw_qos_vport_update_group(vport->dev->priv.eswitch, vport, group, extack); in mlx5_esw_devlink_rate_parent_set()
Ddebugfs.c29 if (!mlx5_esw_is_manager_vport(dev->priv.eswitch, vport_num)) in mlx5_esw_query_vnic_diag()
Ddevlink_port.c42 controller_num = dev->priv.eswitch->offloads.host_number + 1; in mlx5_esw_dl_port_alloc()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dmirred.c28 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in verify_uplink_forwarding()
224 esw = priv->mdev->priv.eswitch; in parse_mirred()
Dgoto.c24 esw = priv->mdev->priv.eswitch; in validate_goto_chain()
Dvlan.c206 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in tc_act_post_parse_vlan()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
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()
214 struct mlx5_eswitch *esw = chain->chains->dev->priv.eswitch; in create_chain_restore()
/Linux-v6.1/drivers/net/ethernet/broadcom/
DKconfig236 offload for eswitch. This option enables SR-IOV switchdev eswitch
/Linux-v6.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_vnic.c281 adapter->eswitch[*port_id].flags |= QLCNIC_SWITCH_ENABLE; in qlcnic_83xx_set_port_eswitch_status()

12