Searched refs:num_actions (Results 1 - 25 of 42) sorted by relevance

12

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmod_hdr.c10 int num_actions; member in struct:mod_hdr_key
30 key->num_actions * MLX5_MH_ACT_SZ, 0);
35 if (a->num_actions != b->num_actions)
39 a->num_actions * MLX5_MH_ACT_SZ);
77 int num_actions, actions_size, err; local
82 num_actions = mod_hdr_acts->num_actions;
83 actions_size = MLX5_MH_ACT_SZ * num_actions;
86 key.num_actions
[all...]
H A Dmod_hdr.h15 int num_actions; member in struct:mlx5e_tc_mod_hdr_acts
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dsmfs.h30 size_t num_actions, struct mlx5dr_action *actions[],
H A Dsmfs.c52 size_t num_actions, struct mlx5dr_action *actions[],
60 return mlx5dr_rule_create(matcher, &value, num_actions, actions, flow_source);
51 mlx5_smfs_rule_create(struct mlx5dr_matcher *matcher, struct mlx5_flow_spec *spec, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) argument
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Dfs_dr.h21 int num_actions; member in struct:mlx5_fs_dr_rule
H A Dfs_dr.c277 int num_actions = 0; local
337 actions[num_actions++] = tmp_action;
353 actions[num_actions++] =
367 actions[num_actions++] = tmp_action;
378 actions[num_actions++] = tmp_action;
382 actions[num_actions++] =
392 actions[num_actions++] = tmp_action;
402 actions[num_actions++] = tmp_action;
406 actions[num_actions++] =
429 actions[num_actions
691 mlx5_cmd_dr_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) argument
[all...]
H A Ddr_rule.c589 size_t num_actions,
595 for (i = 0; i < num_actions; i++) {
1116 size_t num_actions,
1174 num_actions, hw_ste_arr,
1258 size_t num_actions,
1270 num_actions, actions);
1275 num_actions, actions);
1289 size_t num_actions,
1309 ret = dr_rule_add_action_members(rule, num_actions, actions);
1317 num_actions, action
588 dr_rule_add_action_members(struct mlx5dr_rule *rule, size_t num_actions, struct mlx5dr_action *actions[]) argument
1113 dr_rule_create_rule_nic(struct mlx5dr_rule *rule, struct mlx5dr_rule_rx_tx *nic_rule, struct mlx5dr_match_param *param, size_t num_actions, struct mlx5dr_action *actions[]) argument
1256 dr_rule_create_rule_fdb(struct mlx5dr_rule *rule, struct mlx5dr_match_param *param, size_t num_actions, struct mlx5dr_action *actions[]) argument
1287 dr_rule_create_rule(struct mlx5dr_matcher *matcher, struct mlx5dr_match_parameters *value, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) argument
1350 mlx5dr_rule_create(struct mlx5dr_matcher *matcher, struct mlx5dr_match_parameters *value, size_t num_actions, struct mlx5dr_action *actions[], u32 flow_source) argument
[all...]
H A Dmlx5dr.h76 size_t num_actions,
/linux-master/lib/kunit/
H A Dkunit-test.c419 int num_actions = 0; local
421 kunit_add_action(test, increment_int, &num_actions);
422 KUNIT_EXPECT_EQ(test, num_actions, 0);
424 KUNIT_EXPECT_EQ(test, num_actions, 1);
428 KUNIT_EXPECT_EQ(test, num_actions, 1);
431 kunit_add_action(test, increment_int, &num_actions);
432 kunit_add_action(test, increment_int, &num_actions);
434 KUNIT_EXPECT_EQ(test, num_actions, 3);
438 int num_actions = 0; local
440 kunit_add_action(test, increment_int, &num_actions);
449 int num_actions = 0; local
[all...]
/linux-master/net/core/
H A Dflow_offload.c10 struct flow_rule *flow_rule_alloc(unsigned int num_actions) argument
15 rule = kzalloc(struct_size(rule, action.entries, num_actions),
20 rule->action.num_entries = num_actions;
24 for (i = 0; i < num_actions; i++)
31 struct flow_offload_action *offload_action_alloc(unsigned int num_actions) argument
36 fl_action = kzalloc(struct_size(fl_action, action.entries, num_actions),
41 fl_action->action.num_entries = num_actions;
45 for (i = 0; i < num_actions; i++)
/linux-master/net/netfilter/
H A Dnf_dup_netdev.c84 entry = &flow->rule->action.entries[ctx->num_actions++];
H A Dnf_tables_offload.c10 static struct nft_flow_rule *nft_flow_rule_alloc(int num_actions) argument
18 flow->rule = flow_rule_alloc(num_actions);
93 int num_actions = 0, err; local
100 num_actions++;
105 if (num_actions == 0)
108 flow = nft_flow_rule_alloc(num_actions);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_smfs.c304 int num_actions = 0, err; local
320 actions[num_actions++] = smfs_rule->count_action;
321 actions[num_actions++] = attr->modify_hdr->action.dr_action;
322 actions[num_actions++] = fs_smfs->fwd_action;
337 rule = mlx5_smfs_rule_create(smfs_matcher->dr_matcher, spec, num_actions, actions,
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c94 unsigned int num_actions = 0; local
105 if (num_actions)
111 num_actions++;
138 num_actions++;
/linux-master/include/net/netfilter/
H A Dnf_tables_offload.h33 unsigned int num_actions; member in struct:nft_offload_ctx
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_cmd.h88 u8 namespace, u8 num_actions,
H A Dfs_cmd.c129 u8 namespace, u8 num_actions,
947 u8 namespace, u8 num_actions,
989 if (num_actions > max_actions) {
991 num_actions, max_actions);
995 actions_size = MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto) * num_actions;
1005 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions);
128 mlx5_cmd_stub_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) argument
946 mlx5_cmd_modify_header_alloc(struct mlx5_flow_root_namespace *ns, u8 namespace, u8 num_actions, void *modify_actions, struct mlx5_modify_hdr *modify_hdr) argument
/linux-master/drivers/counter/
H A Dftm-quaddec.c230 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
235 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
H A Dti-eqep.c334 .num_actions = ARRAY_SIZE(ti_eqep_position_synapse_actions),
339 .num_actions = ARRAY_SIZE(ti_eqep_position_synapse_actions),
H A Di8254.c342 .num_actions = ARRAY_SIZE(i8254_clk_actions), \
347 .num_actions = ARRAY_SIZE(i8254_gate_actions), \
H A Dstm32-timer-cnt.c293 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
298 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
H A Dmicrochip-tcb-capture.c58 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
63 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
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-lptimer-cnt.c376 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
381 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
H A Dinterrupt-cnt.c206 priv->synapses.num_actions = ARRAY_SIZE(interrupt_cnt_synapse_actions);

Completed in 293 milliseconds

12