Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
76 int num_actions, actions_size, err; in mlx5e_mod_hdr_attach() local
81 num_actions = mod_hdr_acts->num_actions; in mlx5e_mod_hdr_attach()
82 actions_size = MLX5_MH_ACT_SZ * num_actions; in mlx5e_mod_hdr_attach()
85 key.num_actions = num_actions; in mlx5e_mod_hdr_attach()
110 mh->key.num_actions = num_actions; in mlx5e_mod_hdr_attach()
118 mh->key.num_actions, in mlx5e_mod_hdr_attach()
[all …]
Dmod_hdr.h15 int num_actions; member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c258 int num_actions = 0; in mlx5_cmd_dr_create_fte() local
318 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
326 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
340 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
351 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
355 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
365 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
375 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
379 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
402 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
[all …]
Ddr_rule.c561 size_t num_actions, in dr_rule_add_action_members() argument
567 for (i = 0; i < num_actions; i++) { in dr_rule_add_action_members()
1089 size_t num_actions, in dr_rule_create_rule_nic() argument
1136 num_actions, hw_ste_arr, in dr_rule_create_rule_nic()
1215 size_t num_actions, in dr_rule_create_rule_fdb() argument
1227 num_actions, actions); in dr_rule_create_rule_fdb()
1232 num_actions, actions); in dr_rule_create_rule_fdb()
1246 size_t num_actions, in dr_rule_create_rule() argument
1266 ret = dr_rule_add_action_members(rule, num_actions, actions); in dr_rule_create_rule()
1274 num_actions, actions); in dr_rule_create_rule()
[all …]
Dfs_dr.h21 int num_actions; member
Dmlx5dr.h75 size_t num_actions,
/linux-6.1.9/net/core/
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-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
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()
Dsmfs.h30 size_t num_actions, struct mlx5dr_action *actions[],
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dct_fs_smfs.c299 int num_actions = 0, err; in mlx5_ct_fs_smfs_ct_rule_add() local
315 actions[num_actions++] = smfs_rule->count_action; in mlx5_ct_fs_smfs_ct_rule_add()
316 actions[num_actions++] = attr->modify_hdr->action.dr_action; in mlx5_ct_fs_smfs_ct_rule_add()
317 actions[num_actions++] = fs_smfs->fwd_action; in mlx5_ct_fs_smfs_ct_rule_add()
332 rule = mlx5_smfs_rule_create(smfs_matcher->dr_matcher, spec, num_actions, actions, in mlx5_ct_fs_smfs_ct_rule_add()
/linux-6.1.9/net/netfilter/
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()
92 int num_actions = 0, err; in nft_flow_rule_create() local
99 num_actions++; in nft_flow_rule_create()
104 if (num_actions == 0) in nft_flow_rule_create()
107 flow = nft_flow_rule_alloc(num_actions); in nft_flow_rule_create()
Dnf_dup_netdev.c84 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_fwd_dup_netdev_offload()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
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-6.1.9/drivers/counter/
Dftm-quaddec.c230 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
235 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
Dti-eqep.c334 .num_actions = ARRAY_SIZE(ti_eqep_position_synapse_actions),
339 .num_actions = ARRAY_SIZE(ti_eqep_position_synapse_actions),
Dmicrochip-tcb-capture.c59 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
64 .num_actions = ARRAY_SIZE(mchp_tc_synapse_actions),
Dstm32-lptimer-cnt.c376 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
381 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
Dstm32-timer-cnt.c293 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
298 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
Dti-ecap-capture.c405 .num_actions = ARRAY_SIZE(ecap_cnt_clock_actions),
410 .num_actions = ARRAY_SIZE(ecap_cnt_input_actions),
Dinterrupt-cnt.c206 priv->synapses.num_actions = ARRAY_SIZE(interrupt_cnt_synapse_actions); in interrupt_cnt_probe()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_cmd.c129 u8 namespace, u8 num_actions, in mlx5_cmd_stub_modify_header_alloc() argument
908 u8 namespace, u8 num_actions, in mlx5_cmd_modify_header_alloc() argument
949 if (num_actions > max_actions) { in mlx5_cmd_modify_header_alloc()
951 num_actions, max_actions); in mlx5_cmd_modify_header_alloc()
955 actions_size = MLX5_UN_SZ_BYTES(set_add_copy_action_in_auto) * num_actions; in mlx5_cmd_modify_header_alloc()
965 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
Dfs_cmd.h88 u8 namespace, u8 num_actions,
/linux-6.1.9/include/net/netfilter/
Dnf_tables_offload.h33 unsigned int num_actions; member
/linux-6.1.9/include/net/
Dflow_offload.h428 struct flow_rule *flow_rule_alloc(unsigned int num_actions);
609 struct flow_offload_action *offload_action_alloc(unsigned int num_actions);
/linux-6.1.9/include/linux/mlx5/
Dfs.h295 u8 ns_type, u8 num_actions,

12