/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_fw.c | 10 struct mlx5dr_cmd_create_flow_table_attr ft_attr = {}; in mlx5dr_fw_create_recalc_cs_ft() local 20 ft_attr.table_type = MLX5_FLOW_TABLE_TYPE_FDB; in mlx5dr_fw_create_recalc_cs_ft() 21 ft_attr.level = dmn->info.caps.max_ft_level - 1; in mlx5dr_fw_create_recalc_cs_ft() 22 ft_attr.term_tbl = true; in mlx5dr_fw_create_recalc_cs_ft() 25 &ft_attr, in mlx5dr_fw_create_recalc_cs_ft() 110 struct mlx5dr_cmd_create_flow_table_attr ft_attr = {}; in mlx5dr_fw_create_md_tbl() local 116 ft_attr.table_type = MLX5_FLOW_TABLE_TYPE_FDB; in mlx5dr_fw_create_md_tbl() 117 ft_attr.level = min_t(int, dmn->info.caps.max_ft_level - 2, in mlx5dr_fw_create_md_tbl() 119 ft_attr.reformat_en = reformat_req; in mlx5dr_fw_create_md_tbl() 120 ft_attr.decap_en = reformat_req; in mlx5dr_fw_create_md_tbl() [all …]
|
D | dr_table.c | 224 struct mlx5dr_cmd_create_flow_table_attr ft_attr = {}; in dr_table_create_sw_owned_tbl() local 235 ft_attr.table_type = tbl->table_type; in dr_table_create_sw_owned_tbl() 236 ft_attr.icm_addr_rx = icm_addr_rx; in dr_table_create_sw_owned_tbl() 237 ft_attr.icm_addr_tx = icm_addr_tx; in dr_table_create_sw_owned_tbl() 238 ft_attr.level = tbl->dmn->info.caps.max_ft_level - 1; in dr_table_create_sw_owned_tbl() 239 ft_attr.sw_owner = true; in dr_table_create_sw_owned_tbl() 240 ft_attr.decap_en = en_decap; in dr_table_create_sw_owned_tbl() 241 ft_attr.reformat_en = en_encap; in dr_table_create_sw_owned_tbl() 242 ft_attr.uid = uid; in dr_table_create_sw_owned_tbl() 244 ret = mlx5dr_cmd_create_flow_table(tbl->dmn->mdev, &ft_attr, in dr_table_create_sw_owned_tbl()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | vporttbl.c | 28 struct mlx5_flow_table_attr ft_attr = {}; in esw_vport_tbl_create() local 32 ft_attr.autogroup.max_num_groups = vport_ns->max_num_groups; in esw_vport_tbl_create() 34 ft_attr.autogroup.max_num_groups = esw->params.large_group_num; in esw_vport_tbl_create() 35 ft_attr.max_fte = vport_ns->max_fte; in esw_vport_tbl_create() 36 ft_attr.prio = FDB_PER_VPORT; in esw_vport_tbl_create() 37 ft_attr.flags = vport_ns->flags; in esw_vport_tbl_create() 38 fdb = mlx5_create_auto_grouped_flow_table(ns, &ft_attr); in esw_vport_tbl_create()
|
D | legacy.c | 24 struct mlx5_flow_table_attr ft_attr = {}; in esw_create_legacy_vepa_table() local 37 ft_attr.prio = LEGACY_VEPA_PRIO; in esw_create_legacy_vepa_table() 38 ft_attr.max_fte = 2; in esw_create_legacy_vepa_table() 39 ft_attr.autogroup.max_num_groups = 2; in esw_create_legacy_vepa_table() 40 fdb = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in esw_create_legacy_vepa_table() 75 struct mlx5_flow_table_attr ft_attr = {}; in esw_create_legacy_fdb_table() local 99 ft_attr.max_fte = POOL_NEXT_SIZE; in esw_create_legacy_fdb_table() 100 ft_attr.prio = LEGACY_FDB_PRIO; in esw_create_legacy_fdb_table() 101 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table()
|
D | indir_table.c | 389 struct mlx5_flow_table_attr ft_attr = {}; in mlx5_esw_indir_table_entry_create() local 403 ft_attr.prio = FDB_TC_OFFLOAD; in mlx5_esw_indir_table_entry_create() 404 ft_attr.max_fte = MLX5_ESW_INDIR_TABLE_SIZE; in mlx5_esw_indir_table_entry_create() 405 ft_attr.flags = MLX5_FLOW_TABLE_UNMANAGED; in mlx5_esw_indir_table_entry_create() 406 ft_attr.level = 1; in mlx5_esw_indir_table_entry_create() 408 ft = mlx5_create_flow_table(root_ns, &ft_attr); in mlx5_esw_indir_table_entry_create()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_fs.c | 179 struct mlx5_flow_table_attr ft_attr = {}; in rx_create() local 190 ft_attr.max_fte = 1; in rx_create() 191 ft_attr.autogroup.max_num_groups = 1; in rx_create() 192 ft_attr.level = MLX5E_ACCEL_FS_ESP_FT_ERR_LEVEL; in rx_create() 193 ft_attr.prio = MLX5E_NIC_PRIO; in rx_create() 194 ft = mlx5_create_auto_grouped_flow_table(ns, &ft_attr); in rx_create() 204 ft_attr.max_fte = NUM_IPSEC_FTE; in rx_create() 205 ft_attr.level = MLX5E_ACCEL_FS_ESP_FT_LEVEL; in rx_create() 206 ft_attr.prio = MLX5E_NIC_PRIO; in rx_create() 207 ft_attr.autogroup.num_reserved_entries = 1; in rx_create() [all …]
|
D | macsec_fs.c | 221 struct mlx5_flow_table_attr ft_attr = {}; in macsec_fs_auto_group_table_create() local 225 ft_attr.autogroup.num_reserved_entries = 1; in macsec_fs_auto_group_table_create() 226 ft_attr.autogroup.max_num_groups = 1; in macsec_fs_auto_group_table_create() 227 ft_attr.prio = 0; in macsec_fs_auto_group_table_create() 228 ft_attr.flags = flags; in macsec_fs_auto_group_table_create() 229 ft_attr.level = level; in macsec_fs_auto_group_table_create() 230 ft_attr.max_fte = max_fte; in macsec_fs_auto_group_table_create() 232 fdb = mlx5_create_auto_grouped_flow_table(ns, &ft_attr); in macsec_fs_auto_group_table_create() 242 struct mlx5_flow_table_attr ft_attr = {}; in macsec_fs_tx_create() local 273 ft_attr.flags = MLX5_FLOW_TABLE_TUNNEL_EN_REFORMAT; in macsec_fs_tx_create() [all …]
|
D | fs_tcp.c | 269 struct mlx5_flow_table_attr ft_attr = {}; in accel_fs_tcp_create_table() local 274 ft_attr.max_fte = MLX5E_ACCEL_FS_TCP_TABLE_SIZE; in accel_fs_tcp_create_table() 275 ft_attr.level = MLX5E_ACCEL_FS_TCP_FT_LEVEL; in accel_fs_tcp_create_table() 276 ft_attr.prio = MLX5E_NIC_PRIO; in accel_fs_tcp_create_table() 278 ft->t = mlx5_create_flow_table(ns, &ft_attr); in accel_fs_tcp_create_table()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | post_meter.c | 29 struct mlx5_flow_table_attr ft_attr = {}; in mlx5e_post_meter_table_create() local 38 ft_attr.flags = MLX5_FLOW_TABLE_UNMANAGED; in mlx5e_post_meter_table_create() 39 ft_attr.prio = FDB_SLOW_PATH; in mlx5e_post_meter_table_create() 40 ft_attr.max_fte = 2; in mlx5e_post_meter_table_create() 41 ft_attr.level = 1; in mlx5e_post_meter_table_create() 43 post_meter->ft = mlx5_create_flow_table(root_ns, &ft_attr); in mlx5e_post_meter_table_create()
|
D | sample.c | 64 struct mlx5_flow_table_attr ft_attr = {}; in sampler_termtbl_create() local 82 ft_attr.flags = MLX5_FLOW_TABLE_TERMINATION | MLX5_FLOW_TABLE_UNMANAGED; in sampler_termtbl_create() 83 ft_attr.autogroup.max_num_groups = 1; in sampler_termtbl_create() 84 ft_attr.prio = FDB_SLOW_PATH; in sampler_termtbl_create() 85 ft_attr.max_fte = 1; in sampler_termtbl_create() 86 ft_attr.level = 1; in sampler_termtbl_create() 87 tc_psample->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in sampler_termtbl_create()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
D | port_sel.c | 43 struct mlx5_flow_table_attr ft_attr = {}; in mlx5_lag_create_port_sel_table() local 51 ft_attr.max_fte = ldev->ports * ldev->buckets; in mlx5_lag_create_port_sel_table() 52 ft_attr.level = MLX5_LAG_FT_LEVEL_DEFINER; in mlx5_lag_create_port_sel_table() 60 lag_definer->ft = mlx5_create_flow_table(ns, &ft_attr); in mlx5_lag_create_port_sel_table() 68 ft_attr.max_fte); in mlx5_lag_create_port_sel_table() 454 struct mlx5_flow_table_attr *ft_attr; in mlx5_lag_set_inner_ttc_params() local 459 ft_attr = &ttc_params->ft_attr; in mlx5_lag_set_inner_ttc_params() 460 ft_attr->level = MLX5_LAG_FT_LEVEL_INNER_TTC; in mlx5_lag_set_inner_ttc_params() 475 struct mlx5_flow_table_attr *ft_attr; in mlx5_lag_set_outer_ttc_params() local 480 ft_attr = &ttc_params->ft_attr; in mlx5_lag_set_outer_ttc_params() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_chains.c | 155 struct mlx5_flow_table_attr ft_attr = {}; in mlx5_chains_create_table() local 161 ft_attr.flags |= (MLX5_FLOW_TABLE_TUNNEL_EN_REFORMAT | in mlx5_chains_create_table() 165 ft_attr.max_fte = sz; in mlx5_chains_create_table() 171 ft_attr.next_ft = tc_default_ft(chains); in mlx5_chains_create_table() 180 ft_attr.level = level; in mlx5_chains_create_table() 181 ft_attr.prio = prio - 1; in mlx5_chains_create_table() 186 ft_attr.flags |= MLX5_FLOW_TABLE_UNMANAGED; in mlx5_chains_create_table() 187 ft_attr.prio = ns_to_chains_fs_prio(chains->ns); in mlx5_chains_create_table() 195 ft_attr.level = 1; in mlx5_chains_create_table() 199 ft_attr.autogroup.num_reserved_entries = 2; in mlx5_chains_create_table() [all …]
|
D | fs_ttc.c | 506 WARN_ON_ONCE(params->ft_attr.max_fte); in mlx5_create_inner_ttc_table() 507 params->ft_attr.max_fte = MLX5_INNER_TTC_TABLE_SIZE; in mlx5_create_inner_ttc_table() 508 ttc->t = mlx5_create_flow_table(params->ns, ¶ms->ft_attr); in mlx5_create_inner_ttc_table() 559 WARN_ON_ONCE(params->ft_attr.max_fte); in mlx5_create_ttc_table() 560 params->ft_attr.max_fte = MLX5_TTC_TABLE_SIZE; in mlx5_create_ttc_table() 561 ttc->t = mlx5_create_flow_table(params->ns, ¶ms->ft_attr); in mlx5_create_ttc_table()
|
D | fs_ttc.h | 44 struct mlx5_flow_table_attr ft_attr; member
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs.c | 768 struct mlx5_flow_table_attr ft_attr = {}; in mlx5e_create_promisc_table() local 771 ft_attr.max_fte = MLX5E_PROMISC_TABLE_SIZE; in mlx5e_create_promisc_table() 772 ft_attr.autogroup.max_num_groups = 1; in mlx5e_create_promisc_table() 773 ft_attr.level = MLX5E_PROMISC_FT_LEVEL; in mlx5e_create_promisc_table() 774 ft_attr.prio = MLX5E_NIC_PRIO; in mlx5e_create_promisc_table() 776 ft->t = mlx5_create_auto_grouped_flow_table(fs->ns, &ft_attr); in mlx5e_create_promisc_table() 889 struct mlx5_flow_table_attr *ft_attr = &ttc_params->ft_attr; in mlx5e_set_inner_ttc_params() local 895 ft_attr->level = MLX5E_INNER_TTC_FT_LEVEL; in mlx5e_set_inner_ttc_params() 896 ft_attr->prio = MLX5E_NIC_PRIO; in mlx5e_set_inner_ttc_params() 913 struct mlx5_flow_table_attr *ft_attr = &ttc_params->ft_attr; in mlx5e_set_ttc_params() local [all …]
|
D | eswitch_offloads_termtbl.c | 68 struct mlx5_flow_table_attr ft_attr = {}; in mlx5_eswitch_termtbl_create() local 81 ft_attr.flags = MLX5_FLOW_TABLE_TERMINATION | MLX5_FLOW_TABLE_UNMANAGED | in mlx5_eswitch_termtbl_create() 83 ft_attr.prio = FDB_TC_OFFLOAD; in mlx5_eswitch_termtbl_create() 84 ft_attr.max_fte = 1; in mlx5_eswitch_termtbl_create() 85 ft_attr.level = 1; in mlx5_eswitch_termtbl_create() 86 ft_attr.autogroup.max_num_groups = 1; in mlx5_eswitch_termtbl_create() 87 tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in mlx5_eswitch_termtbl_create()
|
D | rdma.c | 27 struct mlx5_flow_table_attr ft_attr = {}; in mlx5_rdma_enable_roce_steering() local 58 ft_attr.max_fte = 1; in mlx5_rdma_enable_roce_steering() 59 ft = mlx5_create_flow_table(ns, &ft_attr); in mlx5_rdma_enable_roce_steering()
|
D | fs_core.c | 1124 struct mlx5_flow_table_attr *ft_attr, in __mlx5_create_flow_table() argument 1129 bool unmanaged = ft_attr->flags & MLX5_FLOW_TABLE_UNMANAGED; in __mlx5_create_flow_table() 1141 fs_prio = find_prio(ns, ft_attr->prio); in __mlx5_create_flow_table() 1150 if (ft_attr->level >= fs_prio->num_levels) { in __mlx5_create_flow_table() 1155 ft_attr->level += fs_prio->start_level; in __mlx5_create_flow_table() 1161 ft = alloc_flow_table(ft_attr->level, in __mlx5_create_flow_table() 1164 op_mod, ft_attr->flags); in __mlx5_create_flow_table() 1171 next_ft = unmanaged ? ft_attr->next_ft : in __mlx5_create_flow_table() 1175 err = root->cmds->create_flow_table(root, ft, ft_attr, next_ft); in __mlx5_create_flow_table() 1209 struct mlx5_flow_table_attr *ft_attr) in mlx5_create_flow_table() argument [all …]
|
D | fs_cmd.c | 53 struct mlx5_flow_table_attr *ft_attr, in mlx5_cmd_stub_create_flow_table() argument 56 int max_fte = ft_attr->max_fte; in mlx5_cmd_stub_create_flow_table() 263 struct mlx5_flow_table_attr *ft_attr, in mlx5_cmd_create_flow_table() argument 275 if (ft_attr->max_fte != POOL_NEXT_SIZE) in mlx5_cmd_create_flow_table() 276 size = roundup_pow_of_two(ft_attr->max_fte); in mlx5_cmd_create_flow_table() 277 size = mlx5_ft_pool_get_avail_sz(dev, ft->type, ft_attr->max_fte); in mlx5_cmd_create_flow_table() 284 MLX5_SET(create_flow_table_in, in, uid, ft_attr->uid); in mlx5_cmd_create_flow_table()
|
D | en_arfs.c | 334 struct mlx5_flow_table_attr ft_attr = {}; in arfs_create_table() local 339 ft_attr.max_fte = MLX5E_ARFS_TABLE_SIZE; in arfs_create_table() 340 ft_attr.level = MLX5E_ARFS_FT_LEVEL; in arfs_create_table() 341 ft_attr.prio = MLX5E_NIC_PRIO; in arfs_create_table() 343 ft->t = mlx5_create_flow_table(ns, &ft_attr); in arfs_create_table()
|
D | eswitch_offloads.c | 1818 struct mlx5_flow_table_attr ft_attr = {}; in esw_create_offloads_fdb_tables() local 1866 ft_attr.flags = flags; in esw_create_offloads_fdb_tables() 1867 ft_attr.max_fte = table_size; in esw_create_offloads_fdb_tables() 1868 ft_attr.prio = FDB_SLOW_PATH; in esw_create_offloads_fdb_tables() 1870 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_offloads_fdb_tables() 1883 memset(&ft_attr, 0, sizeof(ft_attr)); in esw_create_offloads_fdb_tables() 1884 ft_attr.prio = FDB_TC_MISS; in esw_create_offloads_fdb_tables() 1885 esw->fdb_table.offloads.tc_miss_table = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_offloads_fdb_tables() 1977 struct mlx5_flow_table_attr ft_attr = {}; in esw_create_offloads_table() local 1989 ft_attr.max_fte = esw_get_nr_ft_offloads_steering_src_ports(esw) + in esw_create_offloads_table() [all …]
|
D | en_fs_ethtool.c | 86 struct mlx5_flow_table_attr ft_attr = {}; in get_flow_table() local 132 ft_attr.prio = prio; in get_flow_table() 133 ft_attr.max_fte = table_size; in get_flow_table() 134 ft_attr.autogroup.max_num_groups = MLX5E_ETHTOOL_NUM_GROUPS; in get_flow_table() 135 ft = mlx5_create_auto_grouped_flow_table(ns, &ft_attr); in get_flow_table()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | fs_tt_redirect.c | 211 struct mlx5_flow_table_attr ft_attr = {}; in fs_udp_create_table() local 218 ft_attr.max_fte = MLX5E_FS_UDP_TABLE_SIZE; in fs_udp_create_table() 219 ft_attr.level = MLX5E_FS_TT_UDP_FT_LEVEL; in fs_udp_create_table() 220 ft_attr.prio = MLX5E_NIC_PRIO; in fs_udp_create_table() 222 ft->t = mlx5_create_flow_table(ns, &ft_attr); in fs_udp_create_table() 481 struct mlx5_flow_table_attr ft_attr = {}; in fs_any_create_table() local 486 ft_attr.max_fte = MLX5E_FS_UDP_TABLE_SIZE; in fs_any_create_table() 487 ft_attr.level = MLX5E_FS_TT_ANY_FT_LEVEL; in fs_any_create_table() 488 ft_attr.prio = MLX5E_NIC_PRIO; in fs_any_create_table() 490 ft->t = mlx5_create_flow_table(ns, &ft_attr); in fs_any_create_table()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | helper.c | 11 struct mlx5_flow_table_attr ft_attr = {}; in esw_acl_table_create() local 37 ft_attr.max_fte = size; in esw_acl_table_create() 38 ft_attr.flags = MLX5_FLOW_TABLE_OTHER_VPORT; in esw_acl_table_create() 39 acl = mlx5_create_vport_flow_table(root_ns, &ft_attr, vport_num); in esw_acl_table_create()
|
/linux-6.1.9/include/linux/mlx5/ |
D | fs.h | 194 struct mlx5_flow_table_attr *ft_attr); 198 struct mlx5_flow_table_attr *ft_attr); 202 struct mlx5_flow_table_attr *ft_attr, u16 vport);
|