Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c14 static bool mlx5_esw_devlink_port_supported(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_devlink_port_supported() argument
17 vport_num == MLX5_VPORT_HOST_PF) || in mlx5_esw_devlink_port_supported()
18 mlx5_eswitch_is_vf_vport(esw, vport_num) || in mlx5_esw_devlink_port_supported()
19 mlx5_core_is_ec_vf_vport(esw->dev, vport_num) || in mlx5_esw_devlink_port_supported()
20 mlx5_esw_is_spf_vport(esw, vport_num); in mlx5_esw_devlink_port_supported()
24 u16 vport_num, in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() argument
40 if (vport_num == MLX5_VPORT_HOST_PF) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
46 } else if (mlx5_eswitch_is_vf_vport(esw, vport_num)) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
47 u16 func_id = vport_num - 1; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
49 vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
[all …]
H A Dbridge.h48 int mlx5_esw_bridge_vport_link(struct net_device *br_netdev, u16 vport_num, u16 esw_owner_vhca_id,
51 int mlx5_esw_bridge_vport_unlink(struct net_device *br_netdev, u16 vport_num, u16 esw_owner_vhca_id,
54 int mlx5_esw_bridge_vport_peer_link(struct net_device *br_netdev, u16 vport_num,
58 int mlx5_esw_bridge_vport_peer_unlink(struct net_device *br_netdev, u16 vport_num,
62 void mlx5_esw_bridge_fdb_update_used(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id,
65 void mlx5_esw_bridge_fdb_mark_deleted(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id,
68 void mlx5_esw_bridge_fdb_create(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id,
71 void mlx5_esw_bridge_fdb_remove(struct net_device *dev, u16 vport_num, u16 esw_owner_vhca_id,
75 int mlx5_esw_bridge_ageing_time_set(u16 vport_num, u16 esw_owner_vhca_id, unsigned long ageing_time,
77 int mlx5_esw_bridge_vlan_filtering_set(u16 vport_num, u16 esw_owner_vhca_id, bool enable,
[all …]
H A Dbridge.c573 mlx5_esw_bridge_ingress_flow_with_esw_create(u16 vport_num, const unsigned char *addr, in mlx5_esw_bridge_ingress_flow_with_esw_create() argument
605 mlx5_eswitch_get_vport_metadata_for_match(esw, vport_num)); in mlx5_esw_bridge_ingress_flow_with_esw_create()
643 mlx5_esw_bridge_ingress_flow_create(u16 vport_num, const unsigned char *addr, in mlx5_esw_bridge_ingress_flow_create() argument
648 return mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter, in mlx5_esw_bridge_ingress_flow_create()
653 mlx5_esw_bridge_ingress_flow_peer_create(u16 vport_num, u16 esw_owner_vhca_id, in mlx5_esw_bridge_ingress_flow_peer_create() argument
667 if (mlx5_esw_is_owner(tmp, vport_num, esw_owner_vhca_id)) { in mlx5_esw_bridge_ingress_flow_peer_create()
678 handle = mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter, in mlx5_esw_bridge_ingress_flow_peer_create()
687 mlx5_esw_bridge_ingress_filter_flow_create(u16 vport_num, const unsigned char *addr, in mlx5_esw_bridge_ingress_filter_flow_create() argument
719 mlx5_eswitch_get_vport_metadata_for_match(br_offloads->esw, vport_num)); in mlx5_esw_bridge_ingress_filter_flow_create()
740 mlx5_esw_bridge_egress_flow_create(u16 vport_num, u16 esw_owner_vhca_id, const unsigned char *addr, in mlx5_esw_bridge_egress_flow_create() argument
[all …]
H A Dindir_table.h23 u16 vport_num,
59 u16 vport_num, in mlx5_esw_indir_table_needed() argument
H A Dbridge_mcast.c81 if (port->vport_num == MLX5_VPORT_UPLINK) in mlx5_esw_bridge_mdb_flow_create()
201 addr, vid, port->vport_num); in mlx5_esw_bridge_port_mdb_attach()
209 addr, vid, port->vport_num, err); in mlx5_esw_bridge_port_mdb_attach()
220 addr, vid, port->vport_num, err); in mlx5_esw_bridge_port_mdb_attach()
230 addr, vid, port->vport_num, err); in mlx5_esw_bridge_port_mdb_attach()
254 entry->key.addr, entry->key.vid, port->vport_num); in mlx5_esw_bridge_port_mdb_entry_detach()
267 addr, vid, port->vport_num); in mlx5_esw_bridge_port_mdb_detach()
274 addr, vid, port->vport_num); in mlx5_esw_bridge_port_mdb_detach()
528 mlx5_eswitch_get_vport_metadata_for_match(esw, port->vport_num)); in mlx5_esw_bridge_mcast_flow_with_esw_create()
553 if (mlx5_esw_is_owner(tmp, port->vport_num, port->esw_owner_vhca_id)) { in mlx5_esw_bridge_mcast_filter_flow_peer_create()
[all …]
H A Dbridge_priv.h149 u16 vport_num; member
181 u16 vport_num; member
H A Dindir_table.c69 u16 vport_num, in mlx5_esw_indir_table_needed() argument
75 vf_sf_vport = mlx5_eswitch_is_vf_vport(esw, vport_num) || in mlx5_esw_indir_table_needed()
76 mlx5_esw_is_sf_vport(esw, vport_num); in mlx5_esw_indir_table_needed()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dbridge.c59 u16 *vport_num, u16 *esw_owner_vhca_id) in mlx5_esw_bridge_rep_vport_num_vhca_id_get() argument
76 *vport_num = rpriv->rep->vport; in mlx5_esw_bridge_rep_vport_num_vhca_id_get()
83 u16 *vport_num, u16 *esw_owner_vhca_id) in mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get() argument
89 return mlx5_esw_bridge_rep_vport_num_vhca_id_get(dev, esw, vport_num, in mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get()
98 rep = mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get(lower_dev, esw, vport_num, in mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get()
132 u16 vport_num, esw_owner_vhca_id; in mlx5_esw_bridge_port_changeupper() local
139 rep = mlx5_esw_bridge_rep_vport_num_vhca_id_get(dev, esw, &vport_num, &esw_owner_vhca_id); in mlx5_esw_bridge_port_changeupper()
147 mlx5_esw_bridge_vport_link(upper, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper()
149 mlx5_esw_bridge_vport_unlink(upper, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper()
153 mlx5_esw_bridge_vport_peer_link(upper, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c107 mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport() argument
114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport()
116 esw_debug(esw->dev, "vport out of range: num(0x%x)\n", vport_num); in mlx5_eswitch_get_vport()
373 u16 vport_num; in update_allmulti_vports() local
381 vport_num = vport->vport; in update_allmulti_vports()
383 vaddr->vport == vport_num) in update_allmulti_vports()
395 mac, vport_num); in update_allmulti_vports()
398 iter_vaddr->vport = vport_num; in update_allmulti_vports()
402 vport_num); in update_allmulti_vports()
851 u16 vport_num = vport->vport; in esw_vport_to_func_type() local
[all …]
H A Deswitch.h356 u16 vport_num; member
452 mlx5_eswitch_add_send_to_vport_meta_rule(struct mlx5_eswitch *esw, u16 vport_num);
459 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps);
464 int mlx5_esw_vport_alloc(struct mlx5_eswitch *esw, int index, u16 vport_num);
486 u16 vport_num, bool setting);
680 int mlx5_esw_pf_enable_hca(struct mlx5_core_dev *dev, u16 vport_num);
681 int mlx5_esw_pf_disable_hca(struct mlx5_core_dev *dev, u16 vport_num);
690 u16 *vport_num);
710 mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_is_manager_vport() argument
712 return esw->manager_vport == vport_num; in mlx5_esw_is_manager_vport()
[all …]
H A Dmlx5_core.h457 u16 vport_num, u16 *vhca_id);
495 static inline bool mlx5_core_is_ec_vf_vport(const struct mlx5_core_dev *dev, u16 vport_num) in mlx5_core_is_ec_vf_vport() argument
503 return (vport_num >= base_vport && vport_num < max_vport); in mlx5_core_is_ec_vf_vport()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dofld.h16 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num);
28 int mlx5_esw_acl_ingress_vport_metadata_update(struct mlx5_eswitch *esw, u16 vport_num,
30 void mlx5_esw_acl_ingress_vport_drop_rule_destroy(struct mlx5_eswitch *esw, u16 vport_num);
31 int mlx5_esw_acl_ingress_vport_drop_rule_create(struct mlx5_eswitch *esw, u16 vport_num);
36 u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_destroy() argument
40 u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_create() argument
H A Dhelper.c16 u16 vport_num; in esw_acl_table_create() local
26 vport_num = vport->vport; in esw_acl_table_create()
27 esw_debug(dev, "Create vport[%d] %s ACL table\n", vport_num, in esw_acl_table_create()
33 vport_num); in esw_acl_table_create()
38 if (vport_num || mlx5_core_is_ecpf(esw->dev)) in esw_acl_table_create()
40 acl = mlx5_create_vport_flow_table(root_ns, &ft_attr, vport_num); in esw_acl_table_create()
43 esw_warn(dev, "vport[%d] create %s ACL table, err(%d)\n", vport_num, in esw_acl_table_create()
H A Dingress_ofld.c380 int mlx5_esw_acl_ingress_vport_metadata_update(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_acl_ingress_vport_metadata_update() argument
383 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_metadata_update()
387 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_metadata_update()
407 int mlx5_esw_acl_ingress_vport_drop_rule_create(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_create() argument
409 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_create()
412 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_create()
419 void mlx5_esw_acl_ingress_vport_drop_rule_destroy(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_ingress_vport_drop_rule_destroy() argument
421 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_destroy()
424 esw_warn(esw->dev, "vport(%d) invalid!\n", vport_num); in mlx5_esw_acl_ingress_vport_drop_rule_destroy()
H A Degress_ofld.c170 static bool esw_acl_egress_needed(struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed() argument
172 return mlx5_eswitch_is_vf_vport(esw, vport_num) || mlx5_esw_is_sf_vport(esw, vport_num); in esw_acl_egress_needed()
294 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond() argument
296 struct mlx5_vport *vport = mlx5_eswitch_get_vport(esw, vport_num); in mlx5_esw_acl_egress_vport_unbond()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/
H A Dbridge_tracepoint.h87 __field(u16, vport_num)
92 __entry->vport_num = port->vport_num;
97 __entry->vport_num,
/linux/drivers/infiniband/hw/mlx5/
H A Dib_rep.h21 u16 vport_num);
35 u16 vport_num) in mlx5_ib_get_rep_netdev() argument
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Dreporter_vnic.h14 u16 vport_num, bool other_vport);
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_fw.c8 mlx5dr_fw_create_recalc_cs_ft(struct mlx5dr_domain *dmn, u16 vport_num) in mlx5dr_fw_create_recalc_cs_ft() argument
57 vport_num); in mlx5dr_fw_create_recalc_cs_ft()
H A Ddr_domain.c75 u16 vport_num, in mlx5dr_domain_get_recalc_cs_ft_addr() argument
81 recalc_cs_ft = xa_load(&dmn->csum_fts_xa, vport_num); in mlx5dr_domain_get_recalc_cs_ft_addr()
84 recalc_cs_ft = mlx5dr_fw_create_recalc_cs_ft(dmn, vport_num); in mlx5dr_domain_get_recalc_cs_ft_addr()
88 ret = xa_err(xa_store(&dmn->csum_fts_xa, vport_num, in mlx5dr_domain_get_recalc_cs_ft_addr()
/linux/drivers/scsi/lpfc/
H A Dlpfc_vport.h112 int vport_num; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Daction.c288 fixup_stc_attr->vport.vport_num = ctx->caps->eswitch_manager_vport_number; in hws_action_fixup_stc_attr()
296 if (stc_attr->vport.vport_num != MLX5_VPORT_UPLINK) in hws_action_fixup_stc_attr()
304 fixup_stc_attr->vport.vport_num = 0; in hws_action_fixup_stc_attr()
516 attr->vport.vport_num = action->vport.vport_num; in hws_action_fill_stc_attr()
815 u16 vport_num, in mlx5hws_action_create_dest_vport() argument
837 action->vport.vport_num = vport_num; in mlx5hws_action_create_dest_vport()
845 mlx5hws_err(ctx, "Failed creating stc for vport %d\n", vport_num); in mlx5hws_action_create_dest_vport()
1406 dest_list[i].destination_id = dests[i].dest->vport.vport_num; in mlx5hws_action_create_dest_array()
H A Dfs_hws.c422 u16 vport_num; in mlx5_fs_get_dest_action_vport() local
427 vport_num = is_dest_type_uplink ? MLX5_VPORT_UPLINK : dest_attr->vport.num; in mlx5_fs_get_dest_action_vport()
430 idx = (unsigned long)dest_attr->vport.vhca_id << 16 | vport_num; in mlx5_fs_get_dest_action_vport()
433 idx = vport_num; in mlx5_fs_get_dest_action_vport()
440 dest = mlx5hws_action_create_dest_vport(ctx, vport_num, vhca_id_valid, in mlx5_fs_get_dest_action_vport()
H A Dcmd.h134 u16 vport_num; member
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A Dtracepoints.rst98 ip-2560 [007] ...1 318.458915: mlx5_esw_bridge_vport_init: vport_num=1
106 ip-5387 [000] ...1 573713: mlx5_esw_bridge_vport_cleanup: vport_num=1

12