Home
last modified time | relevance | path

Searched refs:num_actions (Results 1 – 25 of 47) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dmod_hdr.c10 int num_actions; member
30 key->num_actions * MLX5_MH_ACT_SZ, 0); in hash_mod_hdr_info()
35 if (a->num_actions != b->num_actions) in cmp_mod_hdr_info()
39 a->num_actions * MLX5_MH_ACT_SZ); in cmp_mod_hdr_info()
77 int num_actions, actions_size, err; in mlx5e_mod_hdr_attach() local
82 num_actions = mod_hdr_acts->num_actions; in mlx5e_mod_hdr_attach()
83 actions_size = MLX5_MH_ACT_SZ * num_actions; in mlx5e_mod_hdr_attach()
86 key.num_actions = num_actions; in mlx5e_mod_hdr_attach()
111 mh->key.num_actions = num_actions; in mlx5e_mod_hdr_attach()
119 mh->key.num_actions, in mlx5e_mod_hdr_attach()
[all …]
A Dmod_hdr.h15 int num_actions; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Dfs_dr.c269 int num_actions = 0; in mlx5_cmd_dr_create_fte() local
329 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
345 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
359 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
370 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
374 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
384 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
398 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
596 num_actions, in mlx5_cmd_dr_create_fte()
686 u8 namespace, u8 num_actions, in mlx5_cmd_dr_modify_header_alloc() argument
[all …]
A Ddr_rule.c589 size_t num_actions, in dr_rule_add_action_members() argument
1116 size_t num_actions, in dr_rule_create_rule_nic() argument
1174 num_actions, hw_ste_arr, in dr_rule_create_rule_nic()
1258 size_t num_actions, in dr_rule_create_rule_fdb() argument
1270 num_actions, actions); in dr_rule_create_rule_fdb()
1275 num_actions, actions); in dr_rule_create_rule_fdb()
1289 size_t num_actions, in dr_rule_create_rule() argument
1317 num_actions, actions); in dr_rule_create_rule()
1322 num_actions, actions); in dr_rule_create_rule()
1328 num_actions, actions); in dr_rule_create_rule()
[all …]
A Dfs_dr.h21 int num_actions; member
/linux/lib/kunit/
A Dkunit-test.c461 int num_actions = 0; in kunit_resource_test_action() local
464 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_action()
466 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action()
470 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action()
476 KUNIT_EXPECT_EQ(test, num_actions, 3); in kunit_resource_test_action()
480 int num_actions = 0; in kunit_resource_test_remove_action() local
483 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_remove_action()
487 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_remove_action()
491 int num_actions = 0; in kunit_resource_test_release_action() local
494 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_release_action()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dsmfs.c52 size_t num_actions, struct mlx5dr_action *actions[], in mlx5_smfs_rule_create() argument
60 return mlx5dr_rule_create(matcher, &value, num_actions, actions, flow_source); in mlx5_smfs_rule_create()
A Dsmfs.h30 size_t num_actions, struct mlx5dr_action *actions[],
/linux/net/core/
A Dflow_offload.c10 struct flow_rule *flow_rule_alloc(unsigned int num_actions) in flow_rule_alloc() argument
15 rule = kzalloc(struct_size(rule, action.entries, num_actions), in flow_rule_alloc()
20 rule->action.num_entries = num_actions; in flow_rule_alloc()
24 for (i = 0; i < num_actions; i++) in flow_rule_alloc()
31 struct flow_offload_action *offload_action_alloc(unsigned int num_actions) in offload_action_alloc() argument
36 fl_action = kzalloc(struct_size(fl_action, action.entries, num_actions), in offload_action_alloc()
41 fl_action->action.num_entries = num_actions; in offload_action_alloc()
45 for (i = 0; i < num_actions; i++) in offload_action_alloc()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
A Dct_fs_smfs.c304 int num_actions = 0, err; in mlx5_ct_fs_smfs_ct_rule_add() local
320 actions[num_actions++] = smfs_rule->count_action; in mlx5_ct_fs_smfs_ct_rule_add()
321 actions[num_actions++] = attr->modify_hdr->action.dr_action; in mlx5_ct_fs_smfs_ct_rule_add()
322 actions[num_actions++] = fs_smfs->fwd_action; in mlx5_ct_fs_smfs_ct_rule_add()
337 rule = mlx5_smfs_rule_create(smfs_matcher->dr_matcher, spec, num_actions, actions, in mlx5_ct_fs_smfs_ct_rule_add()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
A Dmlx5hws_pat_arg.c526 void mlx5hws_pat_calc_nope(__be64 *pattern, size_t num_actions, in mlx5hws_pat_calc_nope() argument
535 *new_size = num_actions; in mlx5hws_pat_calc_nope()
538 if (num_actions == 1) in mlx5hws_pat_calc_nope()
541 for (i = 0, j = 0; i < num_actions; i++, j++) { in mlx5hws_pat_calc_nope()
571 *new_size = num_actions; in mlx5hws_pat_calc_nope()
A Dmlx5hws_pat_arg.h99 void mlx5hws_pat_calc_nope(__be64 *pattern, size_t num_actions, size_t max_actions,
A Dmlx5hws_action.c1191 u16 num_actions, max_mh_actions = 0; in hws_action_create_modify_header_hws() local
1248 num_actions = pattern[i].sz / MLX5HWS_MODIFY_ACTION_SIZE; in hws_action_create_modify_header_hws()
1253 mlx5hws_pat_require_reparse(pattern[i].data, num_actions); in hws_action_create_modify_header_hws()
1255 if (num_actions == 1) { in hws_action_create_modify_header_hws()
2432 for (i = 0; i < at->num_actions; i++) { in mlx5hws_action_template_process()
2574 u8 num_actions = 0; in mlx5hws_action_template_create() local
2581 while (action_type[num_actions++] != MLX5HWS_ACTION_TYP_LAST) in mlx5hws_action_template_create()
2584 at->num_actions = num_actions - 1; in mlx5hws_action_template_create()
2585 at->action_type_arr = kcalloc(num_actions, sizeof(*action_type), GFP_KERNEL); in mlx5hws_action_template_create()
2589 for (i = 0; i < num_actions; i++) in mlx5hws_action_template_create()
/linux/net/netfilter/
A Dnf_tables_offload.c10 static struct nft_flow_rule *nft_flow_rule_alloc(int num_actions) in nft_flow_rule_alloc() argument
18 flow->rule = flow_rule_alloc(num_actions); in nft_flow_rule_alloc()
93 int num_actions = 0, err; in nft_flow_rule_create() local
100 num_actions++; in nft_flow_rule_create()
105 if (num_actions == 0) in nft_flow_rule_create()
108 flow = nft_flow_rule_alloc(num_actions); in nft_flow_rule_create()
A Dnf_dup_netdev.c84 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_fwd_dup_netdev_offload()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_u32.c94 unsigned int num_actions = 0; in fill_action_fields() local
105 if (num_actions) in fill_action_fields()
111 num_actions++; in fill_action_fields()
138 num_actions++; in fill_action_fields()
/linux/drivers/counter/
A Drz-mtu3-cnt.c720 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions),
725 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions),
733 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions),
738 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions),
743 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions),
748 .num_actions = ARRAY_SIZE(rz_mtu3_synapse_actions),
A Dstm32-timer-cnt.c575 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
580 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
585 .num_actions = ARRAY_SIZE(stm32_clock_synapse_actions),
590 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
595 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
A Dftm-quaddec.c230 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
235 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
A Dmicrochip-tcb-capture.c58 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
63 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
A Di8254.c342 .num_actions = ARRAY_SIZE(i8254_clk_actions), \
347 .num_actions = ARRAY_SIZE(i8254_gate_actions), \
A Dstm32-lptimer-cnt.c376 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
381 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dfs_cmd.c129 u8 namespace, u8 num_actions, in mlx5_cmd_stub_modify_header_alloc() argument
947 u8 namespace, u8 num_actions, in mlx5_cmd_modify_header_alloc() argument
989 if (num_actions > max_actions) { in mlx5_cmd_modify_header_alloc()
991 num_actions, max_actions); in mlx5_cmd_modify_header_alloc()
995 actions_size = MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto) * num_actions; in mlx5_cmd_modify_header_alloc()
1005 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
A Dfs_cmd.h88 u8 namespace, u8 num_actions,
/linux/include/net/netfilter/
A Dnf_tables_offload.h33 unsigned int num_actions; member

Completed in 52 milliseconds

12