Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
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 Dipsec.c9 static int esw_ipsec_vf_query_generic(struct mlx5_core_dev *dev, u16 vport_num, bool *result) in esw_ipsec_vf_query_generic() argument
27 err = mlx5_vport_get_other_func_general_cap(dev, vport_num, query_cap); in esw_ipsec_vf_query_generic()
81 static int esw_ipsec_vf_set_generic(struct mlx5_core_dev *dev, u16 vport_num, bool ipsec_ofld) in esw_ipsec_vf_set_generic() argument
98 ret = mlx5_vport_get_other_func_general_cap(dev, vport_num, query_cap); in esw_ipsec_vf_set_generic()
109 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport_num); in esw_ipsec_vf_set_generic()
171 static int esw_ipsec_vf_crypto_aux_caps_set(struct mlx5_core_dev *dev, u16 vport_num, bool enable) in esw_ipsec_vf_crypto_aux_caps_set() argument
186 ret = mlx5_vport_get_other_func_cap(dev, vport_num, query_cap, MLX5_CAP_ETHERNET_OFFLOADS); in esw_ipsec_vf_crypto_aux_caps_set()
196 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport_num); in esw_ipsec_vf_crypto_aux_caps_set()
261 static int esw_ipsec_offload_supported(struct mlx5_core_dev *dev, u16 vport_num) in esw_ipsec_offload_supported() argument
271 ret = mlx5_vport_get_other_func_cap(dev, vport_num, query_cap, MLX5_CAP_GENERAL); in esw_ipsec_offload_supported()
[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/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.c181 static bool esw_acl_egress_needed(struct mlx5_eswitch *esw, u16 vport_num) in esw_acl_egress_needed() argument
183 return mlx5_eswitch_is_vf_vport(esw, vport_num) || mlx5_esw_is_sf_vport(esw, vport_num); in esw_acl_egress_needed()
265 int mlx5_esw_acl_egress_vport_unbond(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_acl_egress_vport_unbond() argument
267 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/
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()
858 u16 vport_num = vport->vport; in esw_vport_setup() local
[all …]
H A Deswitch.h421 mlx5_eswitch_add_send_to_vport_meta_rule(struct mlx5_eswitch *esw, u16 vport_num);
428 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps);
433 int mlx5_esw_vport_alloc(struct mlx5_eswitch *esw, int index, u16 vport_num);
455 u16 vport_num, bool setting);
672 mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_is_manager_vport() argument
674 return esw->manager_vport == vport_num; in mlx5_esw_is_manager_vport()
677 static inline bool mlx5_esw_is_owner(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_is_owner() argument
681 (vport_num == MLX5_VPORT_UPLINK && mlx5_lag_is_master(esw->dev)); in mlx5_esw_is_owner()
697 u16 vport_num) in mlx5_esw_vport_to_devlink_port_index() argument
699 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index()
[all …]
H A Deswitch_offloads.c78 u16 vport_num) in mlx5_eswitch_get_rep() argument
80 return xa_load(&esw->offloads.vport_reps, vport_num); in mlx5_eswitch_get_rep()
1040 mlx5_eswitch_add_send_to_vport_meta_rule(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_add_send_to_vport_meta_rule() argument
1063 mlx5_eswitch_get_vport_metadata_for_match(esw, vport_num)); in mlx5_eswitch_add_send_to_vport_meta_rule()
1064 dest.vport.num = vport_num; in mlx5_eswitch_add_send_to_vport_meta_rule()
1070 vport_num, flow_rule); in mlx5_eswitch_add_send_to_vport_meta_rule()
1499 mlx5_esw_lag_demux_rule_create(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_lag_demux_rule_create() argument
1525 mlx5_eswitch_get_vport_metadata_for_match(esw, vport_num)); in mlx5_esw_lag_demux_rule_create()
2791 static int mlx5_esw_offloads_rep_load(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_rep_load() argument
2797 rep = mlx5_eswitch_get_rep(esw, vport_num); in mlx5_esw_offloads_rep_load()
[all …]
H A Dsriov.c76 int vport_num; in mlx5_device_enable_sriov() local
108 vport_num = mlx5_core_ec_sriov_enabled(dev) ? in mlx5_device_enable_sriov()
111 err = sriov_restore_guids(dev, vf, vport_num); in mlx5_device_enable_sriov()
H A Dmlx5_core.h485 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
493 return (vport_num >= base_vport && vport_num < max_vport); in mlx5_core_is_ec_vf_vport()
/linux/include/linux/mlx5/
H A Deswitch.h68 u16 vport_num,
71 u16 vport_num);
106 u16 vport_num);
108 u16 vport_num);
183 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match() argument
/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/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/net/ethernet/mellanox/mlx5/core/diag/
H A Dreporter_vnic.h14 u16 vport_num, bool other_vport);
/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()

12