Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H 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 …]
H A Dmod_hdr.h15 int num_actions; member
/linux/lib/kunit/
H A Dkunit-test.c465 int num_actions = 0; in kunit_resource_test_action() local
467 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action()
468 KUNIT_EXPECT_EQ(test, num_actions, 0); in kunit_resource_test_action()
470 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action()
474 KUNIT_EXPECT_EQ(test, num_actions, 1); in kunit_resource_test_action()
477 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action()
478 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_action()
480 KUNIT_EXPECT_EQ(test, num_actions, 3); in kunit_resource_test_action()
484 int num_actions = 0; in kunit_resource_test_remove_action() local
486 kunit_add_action(test, increment_int, &num_actions); in kunit_resource_test_remove_action()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws.c759 int num_actions = 0; in mlx5_fs_fte_get_hws_actions() local
795 (*ractions)[num_actions++].action = tmp_action; in mlx5_fs_fte_get_hws_actions()
809 (*ractions)[num_actions].reformat.offset = pr_data->offset; in mlx5_fs_fte_get_hws_actions()
810 (*ractions)[num_actions].reformat.hdr_idx = pr_data->hdr_idx; in mlx5_fs_fte_get_hws_actions()
811 (*ractions)[num_actions].reformat.data = pr_data->data; in mlx5_fs_fte_get_hws_actions()
812 (*ractions)[num_actions++].action = in mlx5_fs_fte_get_hws_actions()
815 (*ractions)[num_actions++].action = in mlx5_fs_fte_get_hws_actions()
828 (*ractions)[num_actions++].action = tmp_action; in mlx5_fs_fte_get_hws_actions()
837 (*ractions)[num_actions++].action = tmp_action; in mlx5_fs_fte_get_hws_actions()
842 (*ractions)[num_actions].modify_header.offset = mh_data->offset; in mlx5_fs_fte_get_hws_actions()
[all …]
H A Dpat_arg.c525 int mlx5hws_pat_calc_nop(__be64 *pattern, size_t num_actions, in mlx5hws_pat_calc_nop() argument
534 *new_size = num_actions; in mlx5hws_pat_calc_nop()
537 if (num_actions == 1) in mlx5hws_pat_calc_nop()
540 for (i = 0, j = 0; i < num_actions; i++, j++) { in mlx5hws_pat_calc_nop()
H A Dfs_hws_pools.c388 int num_actions, i; in mlx5_fs_hws_mh_pool_match() local
396 num_actions = pattern->sz / MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto); in mlx5_fs_hws_mh_pool_match()
397 for (i = 0; i < num_actions; i++) { in mlx5_fs_hws_mh_pool_match()
H A Daction.c1193 u16 num_actions, max_mh_actions = 0, hw_max_actions; in hws_action_create_modify_header_hws() local
1256 num_actions = pattern[i].sz / MLX5HWS_MODIFY_ACTION_SIZE; in hws_action_create_modify_header_hws()
1261 mlx5hws_pat_require_reparse(pattern[i].data, num_actions); in hws_action_create_modify_header_hws()
1263 if (num_actions == 1) { in hws_action_create_modify_header_hws()
2478 for (i = 0; i < at->num_actions; i++) { in mlx5hws_action_template_process()
2621 u8 num_actions = 0; in mlx5hws_action_template_create() local
2628 while (action_type[num_actions++] != MLX5HWS_ACTION_TYP_LAST) in mlx5hws_action_template_create()
2631 at->num_actions = num_actions - 1; in mlx5hws_action_template_create()
2632 at->action_type_arr = kcalloc(num_actions, sizeof(*action_type), GFP_KERNEL); in mlx5hws_action_template_create()
2636 for (i = 0; i < num_actions; i++) in mlx5hws_action_template_create()
H A Ddebug.c84 at->num_actions); in hws_debug_dump_matcher_action_template()
86 for (j = 0; j < at->num_actions; j++) { in hws_debug_dump_matcher_action_template()
/linux/net/core/
H 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/lib/
H 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()
/linux/net/netfilter/
H 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()
H A Dnf_dup_netdev.c98 entry = &flow->rule->action.entries[ctx->num_actions++];
/linux/drivers/counter/
H 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),
H A Dstm32-timer-cnt.c581 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
586 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
591 .num_actions = ARRAY_SIZE(stm32_clock_synapse_actions),
596 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
601 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
H A Dftm-quaddec.c230 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
235 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
H A Di8254.c342 .num_actions = ARRAY_SIZE(i8254_clk_actions), \
347 .num_actions = ARRAY_SIZE(i8254_gate_actions), \
H A Dmicrochip-tcb-capture.c64 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
69 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
H A Dinterrupt-cnt.c213 priv->synapses.num_actions = ARRAY_SIZE(interrupt_cnt_synapse_actions); in interrupt_cnt_probe()
H A D104-quad-8.c1121 .num_actions = ARRAY_SIZE(quad8_synapse_actions_list), \
1126 .num_actions = ARRAY_SIZE(quad8_synapse_actions_list), \
1131 .num_actions = ARRAY_SIZE(quad8_index_actions_list), \
/linux/drivers/net/ethernet/chelsio/cxgb4/
H 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/include/net/netfilter/
H A Dnf_tables_offload.h33 unsigned int num_actions; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_cmd.c129 u8 namespace, u8 num_actions, in mlx5_cmd_stub_modify_header_alloc() argument
977 u8 namespace, u8 num_actions, in mlx5_cmd_modify_header_alloc() argument
1019 if (num_actions > max_actions) { in mlx5_cmd_modify_header_alloc()
1021 num_actions, max_actions); in mlx5_cmd_modify_header_alloc()
1025 actions_size = MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto) * num_actions; in mlx5_cmd_modify_header_alloc()
1035 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
H A Dfs_cmd.h88 u8 namespace, u8 num_actions,
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Dmlx5dr.h74 size_t num_actions,
/linux/include/linux/mlx5/
H A Dfs.h347 u8 ns_type, u8 num_actions,

12