/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge.h | 48 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 D | devlink_port.c | 17 static bool mlx5_esw_devlink_port_supported(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_devlink_port_supported() argument 19 return (mlx5_core_is_ecpf(esw->dev) && vport_num == MLX5_VPORT_PF) || in mlx5_esw_devlink_port_supported() 20 mlx5_eswitch_is_vf_vport(esw, vport_num) || in mlx5_esw_devlink_port_supported() 21 mlx5_core_is_ec_vf_vport(esw->dev, vport_num); in mlx5_esw_devlink_port_supported() 25 u16 vport_num, in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() argument 40 if (vport_num == MLX5_VPORT_PF) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 44 } else if (mlx5_eswitch_is_vf_vport(esw, vport_num)) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 48 vport_num - 1, external); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 49 } else if (mlx5_core_is_ec_vf_vport(esw->dev, vport_num)) { in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 53 vport_num - 1, false); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() [all …]
|
H A D | bridge.c | 572 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 603 mlx5_eswitch_get_vport_metadata_for_match(esw, vport_num)); in mlx5_esw_bridge_ingress_flow_with_esw_create() 641 mlx5_esw_bridge_ingress_flow_create(u16 vport_num, const unsigned char *addr, in mlx5_esw_bridge_ingress_flow_create() argument 645 return mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_create() 650 mlx5_esw_bridge_ingress_flow_peer_create(u16 vport_num, u16 esw_owner_vhca_id, in mlx5_esw_bridge_ingress_flow_peer_create() argument 663 if (mlx5_esw_is_owner(tmp, vport_num, esw_owner_vhca_id)) { in mlx5_esw_bridge_ingress_flow_peer_create() 674 handle = mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_peer_create() 683 mlx5_esw_bridge_ingress_filter_flow_create(u16 vport_num, const unsigned char *addr, in mlx5_esw_bridge_ingress_filter_flow_create() argument 715 mlx5_eswitch_get_vport_metadata_for_match(br_offloads->esw, vport_num)); in mlx5_esw_bridge_ingress_filter_flow_create() 736 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 D | ipsec.c | 9 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 D | indir_table.h | 23 u16 vport_num, 59 u16 vport_num, in mlx5_esw_indir_table_needed() argument
|
H A D | bridge_mcast.c | 81 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 D | bridge_priv.h | 149 u16 vport_num; member 181 u16 vport_num; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | bridge.c | 68 u16 *vport_num, u16 *esw_owner_vhca_id) in mlx5_esw_bridge_rep_vport_num_vhca_id_get() argument 85 *vport_num = rpriv->rep->vport; in mlx5_esw_bridge_rep_vport_num_vhca_id_get() 92 u16 *vport_num, u16 *esw_owner_vhca_id) in mlx5_esw_bridge_lower_rep_vport_num_vhca_id_get() argument 98 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() 107 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() 141 u16 vport_num, esw_owner_vhca_id; in mlx5_esw_bridge_port_changeupper() local 148 rep = mlx5_esw_bridge_rep_vport_num_vhca_id_get(dev, esw, &vport_num, &esw_owner_vhca_id); in mlx5_esw_bridge_port_changeupper() 156 mlx5_esw_bridge_vport_link(upper, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper() 158 mlx5_esw_bridge_vport_unlink(upper, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper() 162 mlx5_esw_bridge_vport_peer_link(upper, vport_num, esw_owner_vhca_id, in mlx5_esw_bridge_port_changeupper() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | ofld.h | 16 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 D | helper.c | 16 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 D | ingress_ofld.c | 380 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 D | egress_ofld.c | 181 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.c | 107 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() 845 u16 vport_num = vport->vport; in esw_vport_setup() local [all …]
|
H A D | eswitch.h | 395 mlx5_eswitch_add_send_to_vport_meta_rule(struct mlx5_eswitch *esw, u16 vport_num); 402 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps); 426 u16 vport_num, bool setting); 629 mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_is_manager_vport() argument 631 return esw->manager_vport == vport_num; in mlx5_esw_is_manager_vport() 634 static inline bool mlx5_esw_is_owner(struct mlx5_eswitch *esw, u16 vport_num, in mlx5_esw_is_owner() argument 638 (vport_num == MLX5_VPORT_UPLINK && mlx5_lag_is_master(esw->dev)); in mlx5_esw_is_owner() 654 u16 vport_num) in mlx5_esw_vport_to_devlink_port_index() argument 656 return (MLX5_CAP_GEN(dev, vhca_id) << 16) | vport_num; in mlx5_esw_vport_to_devlink_port_index() 725 mlx5_eswitch_get_vport(struct mlx5_eswitch *esw, u16 vport_num); [all …]
|
H A D | eswitch_offloads.c | 73 u16 vport_num) in mlx5_eswitch_get_rep() argument 75 return xa_load(&esw->offloads.vport_reps, vport_num); in mlx5_eswitch_get_rep() 1027 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 1050 mlx5_eswitch_get_vport_metadata_for_match(esw, vport_num)); in mlx5_eswitch_add_send_to_vport_meta_rule() 1051 dest.vport.num = vport_num; in mlx5_eswitch_add_send_to_vport_meta_rule() 1057 vport_num, PTR_ERR(flow_rule)); in mlx5_eswitch_add_send_to_vport_meta_rule() 2528 static int mlx5_esw_offloads_rep_load(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_rep_load() argument 2534 rep = mlx5_eswitch_get_rep(esw, vport_num); in mlx5_esw_offloads_rep_load() 2550 static void mlx5_esw_offloads_rep_unload(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_rep_unload() argument 2555 rep = mlx5_eswitch_get_rep(esw, vport_num); in mlx5_esw_offloads_rep_unload() [all …]
|
H A D | sriov.c | 76 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()
|
/openbmc/linux/include/linux/mlx5/ |
H A D | eswitch.h | 67 u16 vport_num, 70 u16 vport_num); 105 u16 vport_num); 107 u16 vport_num); 180 mlx5_eswitch_get_vport_metadata_for_match(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_eswitch_get_vport_metadata_for_match() argument
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ |
H A D | bridge_tracepoint.h | 87 __field(u16, vport_num) 92 __entry->vport_num = port->vport_num; 97 __entry->vport_num,
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | ib_rep.h | 21 u16 vport_num); 35 u16 vport_num) in mlx5_ib_get_rep_netdev() argument
|
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_vema.c | 149 u8 vport_num = vema_get_vport_num(recvd_mad); in vema_get_vport_adapter() local 151 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter() 200 u8 vport_num) in vema_add_vport() argument 205 adapter = opa_vnic_add_netdev(cport->ibdev, port->port_num, vport_num); in vema_add_vport() 210 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport() 314 u8 vport_num; in vema_set_veswport_info() local 316 vport_num = vema_get_vport_num(recvd_mad); in vema_set_veswport_info() 320 adapter = vema_add_vport(port, vport_num); in vema_set_veswport_info() 323 vport_num, PTR_ERR(adapter)); in vema_set_veswport_info()
|
H A D | opa_vnic_netdev.c | 323 u8 port_num, u8 vport_num) in opa_vnic_add_netdev() argument 352 adapter->vport_num = vport_num; in opa_vnic_add_netdev()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | reporter_vnic.c | 18 u16 vport_num, bool other_vport) in mlx5_reporter_vnic_diagnose_counters() argument 25 MLX5_SET(query_vnic_env_in, in, vport_number, vport_num); in mlx5_reporter_vnic_diagnose_counters()
|
H A D | reporter_vnic.h | 14 u16 vport_num, bool other_vport);
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_fw.c | 8 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()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_trace.h | 305 TP_STRUCT__entry(__field(u16, vport_num) 307 TP_fast_assign(__entry->vport_num = port->vsi_idx; 317 __entry->vport_num,
|