Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dib_rep.c16 ibdev = mlx5_ib_get_uplink_ibdev(dev->priv.eswitch); in mlx5_ib_set_vport_rep()
23 mlx5_ib_get_rep_netdev(dev->priv.eswitch, rep->vport); in mlx5_ib_set_vport_rep()
57 mlx5_ib_get_rep_netdev(dev->priv.eswitch, rep->vport); in mlx5_ib_vport_rep_load()
99 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_ib_register_vport_reps()
106 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5_ib_unregister_vport_reps()
143 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in create_flow_rule_vport_sq()
Dcounters.c144 mlx5_ib_eswitch_mode(mdev->priv.eswitch) == in is_mdev_switchdev_mode()
/kernel/linux/linux-5.10/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.c88 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_flows()
192 esw = priv->mdev->priv.eswitch; in mlx5e_rep_setup_ft_cb()
363 esw = mpriv->mdev->priv.eswitch; in mlx5e_rep_indr_setup_ft_cb()
516 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_restore_tunnel()
632 esw = priv->mdev->priv.eswitch; in mlx5e_rep_tc_update_skb()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c174 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
436 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules()
465 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules()
607 return mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_rep_get_devlink_port()
864 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_create_rep_vport_rx_rule()
1263 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_rep_load()
1294 dl_port = mlx5_esw_offloads_devlink_port(dev->priv.eswitch, rpriv->rep->vport); in mlx5e_vport_rep_unload()
1323 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_rep_register_vport_reps()
1330 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_rep_unregister_vport_reps()
Den_tc.c280 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_ct_priv()
299 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_insert()
312 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5_tc_rule_delete()
442 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_mod_hdr_table()
1317 esw = flow->priv->mdev->priv.eswitch; in add_unready_flow()
1332 esw = flow->priv->mdev->priv.eswitch; in remove_unready_flow()
1346 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_add_fdb_flow()
1466 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_del_fdb_flow()
1512 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_add()
1579 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del()
[all …]
Dsriov.c80 err = mlx5_eswitch_enable(dev->priv.eswitch, num_vfs); in mlx5_device_enable_sriov()
129 mlx5_eswitch_disable(dev->priv.eswitch, clear_vf); in mlx5_device_disable_sriov()
Deswitch.c88 return dev->priv.eswitch; in mlx5_devlink_eswitch_get()
924 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_vport_change_handle_locked()
958 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in esw_vport_change_handler()
1795 dev->priv.eswitch = esw; in mlx5_eswitch_init()
1813 esw->dev->priv.eswitch = NULL; in mlx5_eswitch_cleanup()
2330 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_eswitch_query_vport_drop_stats()
2459 esw = dev->priv.eswitch; in mlx5_eswitch_get_encap_mode()
2467 if ((dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE && in mlx5_esw_lag_prereq()
2468 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE) || in mlx5_esw_lag_prereq()
2469 (dev0->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS && in mlx5_esw_lag_prereq()
[all …]
Drdma.c84 dev->priv.eswitch->manager_vport); in mlx5_rdma_enable_roce_steering()
DMakefile48 mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \
Dlag.c295 roce_lag &= dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE && in mlx5_do_bond()
296 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE; in mlx5_do_bond()
Ddevlink.c229 eswitch_mode = mlx5_eswitch_mode(dev->priv.eswitch); in mlx5_devlink_fs_mode_validate()
Den_main.c3147 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_modify_admin_state()
4239 return mlx5_eswitch_set_vport_mac(mdev->priv.eswitch, vf + 1, mac); in mlx5e_set_vf_mac()
4251 return mlx5_eswitch_set_vport_vlan(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_vlan()
4260 return mlx5_eswitch_set_vport_spoofchk(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_spoofchk()
4268 return mlx5_eswitch_set_vport_trust(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_trust()
4277 return mlx5_eswitch_set_vport_rate(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_rate()
4309 return mlx5_eswitch_set_vport_state(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_link_state()
4320 err = mlx5_eswitch_get_vport_config(mdev->priv.eswitch, vf + 1, ivi); in mlx5e_get_vf_config()
4333 return mlx5_eswitch_get_vport_stats(mdev->priv.eswitch, vf + 1, in mlx5e_get_vf_stats()
4598 err = mlx5_eswitch_get_vepa(mdev->priv.eswitch, &setting); in mlx5e_bridge_getlink()
[all …]
DKconfig79 Switchdev mode (eswitch offloads).
Deswitch_offloads.c271 mlx5_eswitch_get_vport_metadata_for_match(attr->in_mdev->priv.eswitch, in mlx5_eswitch_set_rule_source_port()
895 dest->vport.num = peer_dev->priv.eswitch->manager_vport; in peer_miss_rules_setup()
950 esw_set_peer_miss_rule_source_port(esw, peer_dev->priv.eswitch, in esw_add_fdb_peer_miss_rules()
975 peer_dev->priv.eswitch, in esw_add_fdb_peer_miss_rules()
Dmain.c899 mlx5_eswitch_cleanup(dev->priv.eswitch); in mlx5_init_once()
930 mlx5_eswitch_cleanup(dev->priv.eswitch); in mlx5_cleanup_once()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c43 controller_num = dev->priv.eswitch->offloads.host_number + 1; in mlx5_esw_dl_port_alloc()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
DKconfig227 offload for eswitch. This option enables SR-IOV switchdev eswitch
/kernel/linux/linux-5.10/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()
Dqlcnic_main.c1012 adapter->eswitch = kcalloc(QLCNIC_NIU_MAX_XG_PORTS, in qlcnic_init_pci_info()
1015 if (!adapter->eswitch) { in qlcnic_init_pci_info()
1060 adapter->eswitch[i].flags |= QLCNIC_SWITCH_ENABLE; in qlcnic_init_pci_info()
1067 kfree(adapter->eswitch); in qlcnic_init_pci_info()
1068 adapter->eswitch = NULL; in qlcnic_init_pci_info()
2758 kfree(adapter->eswitch); in qlcnic_remove()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c34 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in get_route_and_out_devs()
97 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_route_lookup_ipv4_get()
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/mellanox/
Dmlx5.rst69 | 2) `Switchdev mode (eswitch offloads) <https://www.mellanox.com/related-docs/prod_softw…
286 tc and eswitch offloads tracepoints:
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.h1100 enum qed_ov_eswitch eswitch);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_chains.c294 struct mlx5_eswitch *esw = chain->chains->dev->priv.eswitch; in create_chain_restore()

12