Home
last modified time | relevance | path

Searched refs:vport_num (Results 1 – 21 of 21) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c18 mlx5_esw_devlink_port_supported(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_devlink_port_supported() argument
20 return vport_num == MLX5_VPORT_UPLINK || in mlx5_esw_devlink_port_supported()
21 (mlx5_core_is_ecpf(esw->dev) && vport_num == MLX5_VPORT_PF) || in mlx5_esw_devlink_port_supported()
22 mlx5_eswitch_is_vf_vport(esw, vport_num); in mlx5_esw_devlink_port_supported()
25 static struct devlink_port *mlx5_esw_dl_port_alloc(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_dl_port_alloc() argument
45 if (vport_num == MLX5_VPORT_UPLINK) { in mlx5_esw_dl_port_alloc()
51 } else if (vport_num == MLX5_VPORT_PF) { in mlx5_esw_dl_port_alloc()
55 } else if (mlx5_eswitch_is_vf_vport(esw, vport_num)) { in mlx5_esw_dl_port_alloc()
59 vport_num - 1, external); in mlx5_esw_dl_port_alloc()
69 int mlx5_esw_offloads_devlink_port_register(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port_register() argument
[all …]
/drivers/infiniband/hw/mlx5/
Dib_rep.h17 u16 vport_num);
20 u16 vport_num);
27 u16 vport_num);
36 u16 vport_num) in mlx5_ib_get_rep_ibdev() argument
49 u16 vport_num) in mlx5_ib_vport_rep() argument
66 u16 vport_num) in mlx5_ib_get_rep_netdev() argument
Dib_rep.c117 u16 vport_num) in mlx5_ib_get_rep_ibdev() argument
119 return mlx5_eswitch_get_proto_dev(esw, vport_num, REP_IB); in mlx5_ib_get_rep_ibdev()
123 u16 vport_num) in mlx5_ib_get_rep_netdev() argument
125 return mlx5_eswitch_get_proto_dev(esw, vport_num, REP_ETH); in mlx5_ib_get_rep_netdev()
134 u16 vport_num) in mlx5_ib_vport_rep() argument
136 return mlx5_eswitch_vport_rep(esw, vport_num); in mlx5_ib_vport_rep()
/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h290 int mlx5_esw_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num,
311 u16 vport_num, bool setting);
491 mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_is_manager_vport() argument
493 return esw->manager_vport == vport_num; in mlx5_esw_is_manager_vport()
519 u16 vport_num) in mlx5_eswitch_vport_num_to_index() argument
521 if (vport_num == MLX5_VPORT_ECPF) { in mlx5_eswitch_vport_num_to_index()
527 if (vport_num == MLX5_VPORT_UPLINK) in mlx5_eswitch_vport_num_to_index()
530 return vport_num; in mlx5_eswitch_vport_num_to_index()
548 u16 vport_num) in mlx5_esw_vport_to_devlink_port_index() argument
550 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index()
[all …]
Deswitch.c92 mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport() argument
99 idx = mlx5_eswitch_vport_num_to_index(esw, vport_num); in mlx5_eswitch_get_vport()
103 vport_num, idx); in mlx5_eswitch_get_vport()
569 u16 i, vport_num; in update_allmulti_vports() local
577 vport_num = vport->vport; in update_allmulti_vports()
579 vaddr->vport == vport_num) in update_allmulti_vports()
591 mac, vport_num); in update_allmulti_vports()
594 iter_vaddr->vport = vport_num; in update_allmulti_vports()
598 vport_num); in update_allmulti_vports()
1139 int mlx5_esw_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_modify_vport_rate() argument
[all …]
Deswitch_offloads.c236 u16 vport_num) in mlx5_eswitch_get_rep() argument
238 int idx = mlx5_eswitch_vport_num_to_index(esw, vport_num); in mlx5_eswitch_get_rep()
1826 static int mlx5_esw_offloads_rep_load(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_rep_load() argument
1832 rep = mlx5_eswitch_get_rep(esw, vport_num); in mlx5_esw_offloads_rep_load()
1850 static void mlx5_esw_offloads_rep_unload(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_rep_unload() argument
1855 rep = mlx5_eswitch_get_rep(esw, vport_num); in mlx5_esw_offloads_rep_unload()
1860 int esw_offloads_load_rep(struct mlx5_eswitch *esw, u16 vport_num) in esw_offloads_load_rep() argument
1867 err = mlx5_esw_offloads_devlink_port_register(esw, vport_num); in esw_offloads_load_rep()
1871 err = mlx5_esw_offloads_rep_load(esw, vport_num); in esw_offloads_load_rep()
1877 mlx5_esw_offloads_devlink_port_unregister(esw, vport_num); in esw_offloads_load_rep()
[all …]
Den_tc.c5120 u16 vport_num; in apply_police_params() local
5123 vport_num = rpriv->rep->vport; in apply_police_params()
5124 if (vport_num >= MLX5_VPORT_ECPF) { in apply_police_params()
5142 err = mlx5_esw_modify_vport_rate(esw, vport_num, rate_mbps); in apply_police_params()
/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Dhelper.c9 esw_acl_table_create(struct mlx5_eswitch *esw, u16 vport_num, int ns, int size) in esw_acl_table_create() argument
25 esw_debug(dev, "Create vport[%d] %s ACL table\n", vport_num, in esw_acl_table_create()
28 vport_index = mlx5_eswitch_vport_num_to_index(esw, vport_num); in esw_acl_table_create()
32 vport_num); in esw_acl_table_create()
36 acl = mlx5_create_vport_flow_table(root_ns, 0, size, 0, vport_num); in esw_acl_table_create()
39 esw_warn(dev, "vport[%d] create %s ACL table, err(%d)\n", vport_num, in esw_acl_table_create()
Degress_ofld.c151 static bool esw_acl_egress_needed(const struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed() argument
153 return mlx5_eswitch_is_vf_vport(esw, vport_num); in esw_acl_egress_needed()
234 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond() argument
236 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_egress_vport_unbond()
Dofld.h14 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num);
26 int mlx5_esw_acl_ingress_vport_bond_update(struct mlx5_eswitch *esw, u16 vport_num,
Dingress_ofld.c296 int mlx5_esw_acl_ingress_vport_bond_update(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_acl_ingress_vport_bond_update() argument
299 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_bond_update()
303 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_bond_update()
Dhelper.h11 esw_acl_table_create(struct mlx5_eswitch *esw, u16 vport_num, int ns, int size);
/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c148 u8 vport_num = vema_get_vport_num(recvd_mad); in vema_get_vport_adapter() local
150 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter()
199 u8 vport_num) in vema_add_vport() argument
204 adapter = opa_vnic_add_netdev(cport->ibdev, port->port_num, vport_num); in vema_add_vport()
209 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport()
313 u8 vport_num; in vema_set_veswport_info() local
315 vport_num = vema_get_vport_num(recvd_mad); in vema_set_veswport_info()
319 adapter = vema_add_vport(port, vport_num); in vema_set_veswport_info()
322 vport_num, PTR_ERR(adapter)); in vema_set_veswport_info()
Dopa_vnic_netdev.c324 u8 port_num, u8 vport_num) in opa_vnic_add_netdev() argument
353 adapter->vport_num = vport_num; in opa_vnic_add_netdev()
Dopa_vnic_internal.h203 u8 vport_num; member
297 u8 port_num, u8 vport_num);
Dopa_vnic_vema_iface.c70 trap_data.veswportindex = adapter->vport_num; in opa_vnic_vema_report_event()
96 cntrs->vp_instance = cpu_to_be16(adapter->vport_num); in opa_vnic_get_summary_counters()
135 cntrs->vp_instance = cpu_to_be16(adapter->vport_num); in opa_vnic_get_error_counters()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_domain.c42 u32 vport_num, in mlx5dr_domain_cache_get_recalc_cs_ft_addr() argument
47 recalc_cs_ft = dmn->cache.recalc_cs_ft[vport_num]; in mlx5dr_domain_cache_get_recalc_cs_ft_addr()
50 recalc_cs_ft = mlx5dr_fw_create_recalc_cs_ft(dmn, vport_num); in mlx5dr_domain_cache_get_recalc_cs_ft_addr()
54 dmn->cache.recalc_cs_ft[vport_num] = recalc_cs_ft; in mlx5dr_domain_cache_get_recalc_cs_ft_addr()
Ddr_fw.c8 mlx5dr_fw_create_recalc_cs_ft(struct mlx5dr_domain *dmn, u32 vport_num) in mlx5dr_fw_create_recalc_cs_ft() argument
57 vport_num); in mlx5dr_fw_create_recalc_cs_ft()
Ddr_types.h1143 mlx5dr_fw_create_recalc_cs_ft(struct mlx5dr_domain *dmn, u32 vport_num);
1147 u32 vport_num,
/drivers/scsi/lpfc/
Dlpfc_vport.h112 int vport_num; member
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c8553 u16 vport_idx, vport_num = 0; in hclge_set_vlan_filter_hw() local
8589 vport_num++; in hclge_set_vlan_filter_hw()
8591 if ((is_kill && vport_num == 0) || (!is_kill && vport_num == 1)) in hclge_set_vlan_filter_hw()