Home
last modified time | relevance | path

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

12

/Linux-v5.15/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-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Dlag.c255 err = mlx5_eswitch_offloads_config_single_fdb(dev0->priv.eswitch, in mlx5_create_lag()
256 dev1->priv.eswitch); in mlx5_create_lag()
311 mlx5_eswitch_offloads_destroy_single_fdb(ldev->pf[MLX5_LAG_P1].dev->priv.eswitch, in mlx5_deactivate_lag()
312 ldev->pf[MLX5_LAG_P2].dev->priv.eswitch); in mlx5_deactivate_lag()
409 mlx5_eswitch_reload_reps(dev0->priv.eswitch); in mlx5_disable_lag()
411 mlx5_eswitch_reload_reps(dev1->priv.eswitch); in mlx5_disable_lag()
422 mlx5_eswitch_vport_match_metadata_enabled(dev0->priv.eswitch) && in mlx5_shared_fdb_supported()
423 mlx5_eswitch_vport_match_metadata_enabled(dev1->priv.eswitch) && in mlx5_shared_fdb_supported()
462 dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE && in mlx5_do_bond()
463 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE; in mlx5_do_bond()
[all …]
Deswitch.c87 return dev->priv.eswitch; in mlx5_devlink_eswitch_get()
703 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_vport_change_handle_locked()
737 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in esw_vport_change_handler()
1576 dev->priv.eswitch = esw; in mlx5_eswitch_init()
1602 esw->dev->priv.eswitch = NULL; in mlx5_eswitch_cleanup()
1939 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_eswitch_mode()
1950 esw = dev->priv.eswitch; in mlx5_eswitch_get_encap_mode()
1958 if ((dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE && in mlx5_esw_lag_prereq()
1959 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE) || in mlx5_esw_lag_prereq()
1960 (dev0->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS && in mlx5_esw_lag_prereq()
[all …]
Den_rep.c167 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
393 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules()
423 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules()
537 return mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_rep_get_devlink_port()
759 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_create_rep_vport_rx_rule()
1136 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_load()
1154 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_unload()
1211 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_vf_rep_load()
1268 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_rep_unload()
1355 esw = mdev->priv.eswitch; in mlx5e_rep_probe()
[all …]
Dsriov.c80 err = mlx5_eswitch_enable(dev->priv.eswitch, num_vfs); in mlx5_device_enable_sriov()
139 mlx5_eswitch_disable(dev->priv.eswitch, clear_vf); in mlx5_device_disable_sriov()
Ddevlink.c488 return mlx5_esw_offloads_vport_metadata_set(dev->priv.eswitch, ctx->val.vbool); in mlx5_devlink_esw_port_metadata_set()
499 ctx->val.vbool = mlx5_eswitch_vport_match_metadata_enabled(dev->priv.eswitch); in mlx5_devlink_esw_port_metadata_get()
594 if (mlx5_esw_vport_match_metadata_supported(dev->priv.eswitch)) { in mlx5_devlink_set_params_init_values()
595 dev->priv.eswitch->flags |= MLX5_ESWITCH_VPORT_MATCH_METADATA; in mlx5_devlink_set_params_init_values()
Den_tc.c237 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv()
255 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_sample_priv()
275 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_insert()
288 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_delete()
410 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_mod_hdr_table()
1276 esw = flow->priv->mdev->priv.eswitch; in add_unready_flow()
1291 esw = flow->priv->mdev->priv.eswitch; in remove_unready_flow()
1329 esw = out_priv->mdev->priv.eswitch; in mlx5e_tc_query_route_vport()
1380 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_add_fdb_flow()
1529 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_del_fdb_flow()
[all …]
Drdma.c84 dev->priv.eswitch->manager_vport); in mlx5_rdma_enable_roce_steering()
Deswitch_offloads.c559 esw_attr->in_mdev->priv.eswitch, in mlx5_eswitch_add_offloaded_rule()
641 esw_attr->in_mdev->priv.eswitch, in mlx5_eswitch_add_fwd_rule()
1145 dest->vport.num = peer_dev->priv.eswitch->manager_vport; in peer_miss_rules_setup()
1203 esw_set_peer_miss_rule_source_port(esw, peer_dev->priv.eswitch, in esw_add_fdb_peer_miss_rules()
1229 peer_dev->priv.eswitch, in esw_add_fdb_peer_miss_rules()
2345 esw = master->priv.eswitch; in esw_set_uplink_slave_ingress_root()
2365 esw = slave->priv.eswitch; in esw_set_uplink_slave_ingress_root()
2452 dest.vport.num = slave->priv.eswitch->manager_vport; in __esw_set_master_egress_rule()
2471 struct mlx5_eswitch *esw = master->priv.eswitch; in esw_set_master_egress_rule()
2550 vport = mlx5_eswitch_get_vport(dev->priv.eswitch, in esw_unset_master_egress_rule()
[all …]
DMakefile55 mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \
Den_main.c2580 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_modify_admin_state()
3790 return mlx5_eswitch_set_vport_mac(mdev->priv.eswitch, vf + 1, mac); in mlx5e_set_vf_mac()
3802 return mlx5_eswitch_set_vport_vlan(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_vlan()
3811 return mlx5_eswitch_set_vport_spoofchk(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_spoofchk()
3819 return mlx5_eswitch_set_vport_trust(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_trust()
3828 return mlx5_eswitch_set_vport_rate(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_rate()
3863 return mlx5_eswitch_set_vport_state(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_link_state()
3877 err = mlx5_eswitch_get_vport_config(mdev->priv.eswitch, vf + 1, ivi); in mlx5e_get_vf_config()
3890 return mlx5_eswitch_get_vport_stats(mdev->priv.eswitch, vf + 1, in mlx5e_get_vf_stats()
4181 err = mlx5_eswitch_get_vepa(mdev->priv.eswitch, &setting); in mlx5e_bridge_getlink()
[all …]
/Linux-v5.15/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-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_encap.c122 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_add()
182 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del()
359 esw = priv->mdev->priv.eswitch; in mlx5e_tc_update_neigh_used_value()
433 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_put()
446 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_put()
464 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_encap()
491 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_decap()
549 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_get()
569 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_get()
635 data = mlx5_eswitch_get_vport_metadata_for_set(esw_attr->in_mdev->priv.eswitch, in mlx5e_set_vf_tunnel()
[all …]
Dtc_tun.c58 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_route_and_out_devs()
119 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_route_lookup_ipv4_get()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dbond.c243 err = mlx5_esw_acl_egress_vport_bond(priv->mdev->priv.eswitch, in mlx5e_rep_changelowerstate_event()
280 mlx5e_rep_bond_enslave(priv->mdev->priv.eswitch, netdev, lag_dev); in mlx5e_rep_changeupper_event()
282 mlx5e_rep_bond_unslave(priv->mdev->priv.eswitch, netdev, lag_dev); in mlx5e_rep_changeupper_event()
319 if (!mlx5_esw_acl_egress_fwd2vport_supported(priv->mdev->priv.eswitch)) in mlx5e_rep_bond_init()
347 if (!mlx5_esw_acl_egress_fwd2vport_supported(priv->mdev->priv.eswitch) || in mlx5e_rep_bond_cleanup()
Dtc.c91 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows()
194 esw = priv->mdev->priv.eswitch; in mlx5e_rep_setup_ft_cb()
368 esw = mpriv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_ft_cb()
520 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_tunnel()
629 esw = priv->mdev->priv.eswitch; in mlx5e_restore_skb_chain()
676 esw = priv->mdev->priv.eswitch; in mlx5e_rep_tc_update_skb()
Dbridge.c26 return esw == priv->mdev->priv.eswitch; in mlx5_esw_bridge_dev_same_esw()
462 mdev->priv.eswitch; in mlx5e_rep_bridge_init()
520 mdev->priv.eswitch; in mlx5e_rep_bridge_cleanup()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/sf/
Ddevlink.c283 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_sf_add()
380 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_devlink_sf_port_del()
459 struct mlx5_eswitch *esw = table->dev->priv.eswitch; in mlx5_sf_deactivate_all()
508 return dev->priv.eswitch && MLX5_ESWITCH_MANAGER(dev) && in mlx5_sf_table_supported()
530 err = mlx5_esw_event_notifier_register(dev->priv.eswitch, &table->esw_nb); in mlx5_sf_table_init()
542 mlx5_esw_event_notifier_unregister(dev->priv.eswitch, &table->esw_nb); in mlx5_sf_table_init()
558 mlx5_esw_event_notifier_unregister(dev->priv.eswitch, &table->esw_nb); in mlx5_sf_table_cleanup()
/Linux-v5.15/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-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dqos.c722 esw = vport->dev->priv.eswitch; in mlx5_esw_devlink_rate_leaf_tx_share_set()
743 esw = vport->dev->priv.eswitch; in mlx5_esw_devlink_rate_leaf_tx_max_set()
761 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_share_set()
779 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_devlink_rate_node_tx_max_set()
863 return mlx5_esw_qos_vport_update_group(vport->dev->priv.eswitch, in mlx5_esw_devlink_rate_parent_set()
867 return mlx5_esw_qos_vport_update_group(vport->dev->priv.eswitch, vport, group, extack); in mlx5_esw_devlink_rate_parent_set()
Ddevlink_port.c42 controller_num = dev->priv.eswitch->offloads.host_number + 1; in mlx5_esw_dl_port_alloc()
/Linux-v5.15/drivers/net/ethernet/broadcom/
DKconfig235 offload for eswitch. This option enables SR-IOV switchdev eswitch
/Linux-v5.15/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_vnic.c281 adapter->eswitch[*port_id].flags |= QLCNIC_SWITCH_ENABLE; in qlcnic_83xx_set_port_eswitch_status()
Dqlcnic_ctx.c1031 !(adapter->eswitch[id].flags & QLCNIC_SWITCH_ENABLE)) { in qlcnic_config_port_mirroring()
1184 int qlcnic_get_eswitch_stats(struct qlcnic_adapter *adapter, const u8 eswitch, in qlcnic_get_eswitch_stats() argument
1206 esw_stats->context_id = eswitch; in qlcnic_get_eswitch_stats()
1209 if (adapter->npars[i].phy_port != eswitch) in qlcnic_get_eswitch_stats()
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.h1100 enum qed_ov_eswitch eswitch);

12