Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/hw/mlx5/
A 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/drivers/net/ethernet/mellanox/mlx5/core/lag/
A Dlag.c287 dev1->priv.eswitch); in mlx5_create_lag()
360 ldev->pf[MLX5_LAG_P2].dev->priv.eswitch); in mlx5_deactivate_lag()
459 mlx5_eswitch_reload_reps(dev0->priv.eswitch); in mlx5_disable_lag()
461 mlx5_eswitch_reload_reps(dev1->priv.eswitch); in mlx5_disable_lag()
513 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE; in mlx5_do_bond()
545 mlx5_eswitch_reload_reps(dev0->priv.eswitch); in mlx5_do_bond()
546 mlx5_eswitch_reload_reps(dev1->priv.eswitch); in mlx5_do_bond()
567 mlx5_esw_lock(dev0->priv.eswitch); in mlx5_lag_lock_eswitches()
569 mlx5_esw_lock(dev1->priv.eswitch); in mlx5_lag_lock_eswitches()
576 mlx5_esw_unlock(dev1->priv.eswitch); in mlx5_lag_unlock_eswitches()
[all …]
/linux/Documentation/networking/devlink/
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 …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_encap.c146 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_add()
206 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del()
389 esw = priv->mdev->priv.eswitch; in mlx5e_tc_update_neigh_used_value()
463 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_put()
476 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_put()
494 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_encap()
521 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_detach_decap()
579 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_encap_get()
599 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_decap_get()
718 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_route_tbl_get_last_update()
[all …]
A Dtc_tun.c58 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_route_and_out_devs()
120 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_route_lookup_ipv4_get()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
A 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()
A Dtc.c95 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows()
198 esw = priv->mdev->priv.eswitch; in mlx5e_rep_setup_ft_cb()
378 esw = mpriv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_ft_cb()
438 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_block()
554 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_tunnel()
663 esw = priv->mdev->priv.eswitch; in mlx5e_restore_skb_chain()
701 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_skb_int_port()
745 esw = priv->mdev->priv.eswitch; in mlx5e_rep_tc_receive()
A 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/drivers/net/ethernet/mellanox/mlx5/core/sf/
A 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/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
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()
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/drivers/net/ethernet/mellanox/mlx5/core/
A 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()
1589 dev->priv.eswitch = esw; in mlx5_eswitch_init()
1615 esw->dev->priv.eswitch = NULL; in mlx5_eswitch_cleanup()
1952 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_eswitch_mode()
1963 esw = dev->priv.eswitch; in mlx5_eswitch_get_encap_mode()
2007 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_hold()
2025 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_release()
2037 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_get()
2049 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_esw_put()
[all …]
A Den_rep.c168 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
394 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules()
424 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules()
538 return mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_rep_get_devlink_port()
760 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_create_rep_vport_rx_rule()
1150 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_load()
1168 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_uplink_rep_unload()
1225 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_vf_rep_load()
1282 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_rep_unload()
1369 esw = mdev->priv.eswitch; in mlx5e_rep_probe()
[all …]
A 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()
A Den_tc.c237 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_get_int_port_priv()
254 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv()
1282 esw = flow->priv->mdev->priv.eswitch; in add_unready_flow()
1297 esw = flow->priv->mdev->priv.eswitch; in remove_unready_flow()
1335 esw = out_priv->mdev->priv.eswitch; in mlx5e_tc_query_route_vport()
1804 esw = priv->mdev->priv.eswitch; in mlx5e_get_flow_tunnel_id()
1887 esw = flow->priv->mdev->priv.eswitch; in mlx5e_put_flow_tunnel_id()
2575 struct mlx5_eswitch *esw = dev->priv.eswitch; in parse_cls_flower()
3431 esw = priv->mdev->priv.eswitch; in validate_goto_chain()
4949 esw = priv->mdev->priv.eswitch; in apply_police_params()
[all …]
A Ddevlink.c494 return mlx5_esw_offloads_vport_metadata_set(dev->priv.eswitch, ctx->val.vbool); in mlx5_devlink_esw_port_metadata_set()
505 ctx->val.vbool = mlx5_eswitch_vport_match_metadata_enabled(dev->priv.eswitch); in mlx5_devlink_esw_port_metadata_get()
600 if (mlx5_esw_vport_match_metadata_supported(dev->priv.eswitch)) { in mlx5_devlink_set_params_init_values()
601 dev->priv.eswitch->flags |= MLX5_ESWITCH_VPORT_MATCH_METADATA; in mlx5_devlink_set_params_init_values()
A Drdma.c84 dev->priv.eswitch->manager_vport); in mlx5_rdma_enable_roce_steering()
A Deswitch_offloads.c592 esw_attr->in_mdev->priv.eswitch, in mlx5_eswitch_add_offloaded_rule()
680 esw_attr->in_mdev->priv.eswitch, in mlx5_eswitch_add_fwd_rule()
1186 dest->vport.num = peer_dev->priv.eswitch->manager_vport; in peer_miss_rules_setup()
1244 esw_set_peer_miss_rule_source_port(esw, peer_dev->priv.eswitch, in esw_add_fdb_peer_miss_rules()
1270 peer_dev->priv.eswitch, in esw_add_fdb_peer_miss_rules()
2397 esw = master->priv.eswitch; in esw_set_uplink_slave_ingress_root()
2417 esw = slave->priv.eswitch; in esw_set_uplink_slave_ingress_root()
2504 dest.vport.num = slave->priv.eswitch->manager_vport; in __esw_set_master_egress_rule()
2523 struct mlx5_eswitch *esw = master->priv.eswitch; in esw_set_master_egress_rule()
2603 vport = mlx5_eswitch_get_vport(dev->priv.eswitch, in esw_unset_master_egress_rule()
[all …]
A DMakefile55 mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \
A Den_main.c2814 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_modify_admin_state()
4108 return mlx5_eswitch_set_vport_mac(mdev->priv.eswitch, vf + 1, mac); in mlx5e_set_vf_mac()
4120 return mlx5_eswitch_set_vport_vlan(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_vlan()
4129 return mlx5_eswitch_set_vport_spoofchk(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_spoofchk()
4137 return mlx5_eswitch_set_vport_trust(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_trust()
4146 return mlx5_eswitch_set_vport_rate(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_rate()
4181 return mlx5_eswitch_set_vport_state(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_link_state()
4195 err = mlx5_eswitch_get_vport_config(mdev->priv.eswitch, vf + 1, ivi); in mlx5e_get_vf_config()
4208 return mlx5_eswitch_get_vport_stats(mdev->priv.eswitch, vf + 1, in mlx5e_get_vf_stats()
4499 err = mlx5_eswitch_get_vepa(mdev->priv.eswitch, &setting); in mlx5e_bridge_getlink()
[all …]
/linux/Documentation/networking/device_drivers/ethernet/mellanox/
A Dmlx5.rst205 - 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
347 configuration of the PCI VF/SF is supported through devlink eswitch port.
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A 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()
A Ddevlink_port.c42 controller_num = dev->priv.eswitch->offloads.host_number + 1; in mlx5_esw_dl_port_alloc()
/linux/drivers/net/ethernet/broadcom/
A DKconfig235 offload for eswitch. This option enables SR-IOV switchdev eswitch
/linux/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic_83xx_vnic.c281 adapter->eswitch[*port_id].flags |= QLCNIC_SWITCH_ENABLE; in qlcnic_83xx_set_port_eswitch_status()
A 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()

Completed in 72 milliseconds

12