Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dib_rep.c100 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in mlx5_ib_rep_register_vf_vports()
116 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in mlx5_ib_rep_unregister_vf_vports()
126 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in mlx5_ib_register_vport_reps()
141 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in mlx5_ib_unregister_vport_reps()
178 struct mlx5_eswitch *esw = dev->mdev->priv.eswitch; in create_flow_rule_vport_sq()
Dmain.c174 struct mlx5_eswitch *esw = ibdev->mdev->priv.eswitch; in mlx5_netdev_event()
5725 nic_dev = mlx5_ib_get_uplink_ibdev(dev->mdev->priv.eswitch); in mlx5_ib_stage_rep_flow_db_init()
6353 mlx5_ib_eswitch_mode(mdev->priv.eswitch) == SRIOV_OFFLOADS) { in mlx5_ib_add()
6354 dev->rep = mlx5_ib_vport_rep(mdev->priv.eswitch, 0); in mlx5_ib_add()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c105 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_rep_update_hw_counters()
198 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_attr_get()
274 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_add_sqs_fwd_rules()
303 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_remove_sqs_fwd_rules()
822 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_is_uplink_rep()
999 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_init_rep_rx()
1163 uplink_rpriv = mlx5_eswitch_get_uplink_priv(dev->priv.eswitch, REP_ETH); in mlx5e_vport_rep_load()
1206 uplink_rpriv = mlx5_eswitch_get_uplink_priv(priv->mdev->priv.eswitch, in mlx5e_vport_rep_unload()
1229 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_rep_register_vf_vports()
1246 struct mlx5_eswitch *esw = mdev->priv.eswitch; in mlx5e_rep_unregister_vf_vports()
[all …]
Deswitch_offloads.c1091 if (dev->priv.eswitch->mode == SRIOV_NONE) in mlx5_devlink_eswitch_check()
1107 cur_mlx5_mode = dev->priv.eswitch->mode; in mlx5_devlink_eswitch_mode_set()
1116 return esw_offloads_start(dev->priv.eswitch); in mlx5_devlink_eswitch_mode_set()
1118 return esw_offloads_stop(dev->priv.eswitch); in mlx5_devlink_eswitch_mode_set()
1132 return esw_mode_to_devlink(dev->priv.eswitch->mode, mode); in mlx5_devlink_eswitch_mode_get()
1138 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_devlink_eswitch_inline_mode_set()
1191 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_devlink_eswitch_inline_mode_get()
1240 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_devlink_eswitch_encap_mode_set()
1283 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_devlink_eswitch_encap_mode_get()
Dsriov.c94 err = mlx5_eswitch_enable_sriov(dev->priv.eswitch, num_vfs, SRIOV_LEGACY); in mlx5_device_enable_sriov()
148 mlx5_eswitch_disable_sriov(dev->priv.eswitch); in mlx5_device_disable_sriov()
DMakefile38 mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o
Den_tc.c175 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_attach_mod_hdr()
829 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_add_fdb_flow()
902 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_del_fdb_flow()
926 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_add()
971 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_tc_encap_flows_del()
1636 struct mlx5_eswitch *esw = dev->priv.eswitch; in parse_cls_flower()
2154 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_route_lookup_ipv4()
2198 (peer_priv->mdev->priv.eswitch->mode == SRIOV_OFFLOADS)); in is_merged_eswitch_dev()
2213 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_route_lookup_ipv6()
2534 struct mlx5_eswitch *esw = priv->mdev->priv.eswitch; in mlx5e_attach_encap()
[all …]
DKconfig76 Switchdev mode (eswitch offloads).
Deswitch.c797 struct mlx5_eswitch *esw = dev->priv.eswitch; in esw_vport_change_handle_locked()
837 struct mlx5_eswitch *esw = vport->dev->priv.eswitch; in esw_vport_change_handler()
1755 dev->priv.eswitch = esw; in mlx5_eswitch_init()
1773 esw->dev->priv.eswitch = NULL; in mlx5_eswitch_cleanup()
2101 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_eswitch_query_vport_drop_stats()
Den_main.c3876 return mlx5_eswitch_set_vport_mac(mdev->priv.eswitch, vf + 1, mac); in mlx5e_set_vf_mac()
3888 return mlx5_eswitch_set_vport_vlan(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_vlan()
3897 return mlx5_eswitch_set_vport_spoofchk(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_spoofchk()
3905 return mlx5_eswitch_set_vport_trust(mdev->priv.eswitch, vf + 1, setting); in mlx5e_set_vf_trust()
3914 return mlx5_eswitch_set_vport_rate(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_rate()
3946 return mlx5_eswitch_set_vport_state(mdev->priv.eswitch, vf + 1, in mlx5e_set_vf_link_state()
3957 err = mlx5_eswitch_get_vport_config(mdev->priv.eswitch, vf + 1, ivi); in mlx5e_get_vf_config()
3970 return mlx5_eswitch_get_vport_stats(mdev->priv.eswitch, vf + 1, in mlx5e_get_vf_stats()
Dmain.c1008 mlx5_eswitch_cleanup(dev->priv.eswitch); in mlx5_init_once()
1032 mlx5_eswitch_cleanup(dev->priv.eswitch); in mlx5_cleanup_once()
Deq.c560 mlx5_eswitch_vport_event(dev->priv.eswitch, eqe); in mlx5_eq_int()
/Linux-v4.19/drivers/net/ethernet/broadcom/
DKconfig220 offload for eswitch. This option enables SR-IOV switchdev eswitch
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_vnic.c282 adapter->eswitch[*port_id].flags |= QLCNIC_SWITCH_ENABLE; in qlcnic_83xx_set_port_eswitch_status()
Dqlcnic_ctx.c1032 !(adapter->eswitch[id].flags & QLCNIC_SWITCH_ENABLE)) { in qlcnic_config_port_mirroring()
1185 int qlcnic_get_eswitch_stats(struct qlcnic_adapter *adapter, const u8 eswitch, in qlcnic_get_eswitch_stats() argument
1207 esw_stats->context_id = eswitch; in qlcnic_get_eswitch_stats()
1210 if (adapter->npars[i].phy_port != eswitch) in qlcnic_get_eswitch_stats()
Dqlcnic_main.c1031 adapter->eswitch = kcalloc(QLCNIC_NIU_MAX_XG_PORTS, in qlcnic_init_pci_info()
1034 if (!adapter->eswitch) { in qlcnic_init_pci_info()
1079 adapter->eswitch[i].flags |= QLCNIC_SWITCH_ENABLE; in qlcnic_init_pci_info()
1086 kfree(adapter->eswitch); in qlcnic_init_pci_info()
1087 adapter->eswitch = NULL; in qlcnic_init_pci_info()
2772 kfree(adapter->eswitch); in qlcnic_remove()
Dqlcnic.h1161 struct qlcnic_eswitch *eswitch; member
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.h969 enum qed_ov_eswitch eswitch);
Dqed_mcp.c2404 enum qed_ov_eswitch eswitch) in qed_mcp_ov_update_eswitch() argument
2410 switch (eswitch) { in qed_mcp_ov_update_eswitch()
2421 DP_ERR(p_hwfn, "Invalid eswitch mode %d\n", eswitch); in qed_mcp_ov_update_eswitch()
/Linux-v4.19/include/linux/mlx5/
Ddriver.h700 struct mlx5_eswitch *eswitch; member