Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c226 int num_actions = 0; in mlx5_cmd_dr_create_fte() local
260 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
270 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
285 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
293 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
307 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
318 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
322 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
326 actions[num_actions++] = in mlx5_cmd_dr_create_fte()
349 actions[num_actions++] = tmp_action; in mlx5_cmd_dr_create_fte()
[all …]
Ddr_rule.c543 size_t num_actions, in dr_rule_add_action_members() argument
549 for (i = 0; i < num_actions; i++) { in dr_rule_add_action_members()
1015 size_t num_actions, in dr_rule_create_rule_nic() argument
1058 num_actions, hw_ste_arr, in dr_rule_create_rule_nic()
1136 size_t num_actions, in dr_rule_create_rule_fdb() argument
1148 num_actions, actions); in dr_rule_create_rule_fdb()
1153 num_actions, actions); in dr_rule_create_rule_fdb()
1167 size_t num_actions, in dr_rule_create_rule() argument
1185 ret = dr_rule_add_action_members(rule, num_actions, actions); in dr_rule_create_rule()
1193 num_actions, actions); in dr_rule_create_rule()
[all …]
Dmlx5dr.h66 size_t num_actions,
154 size_t num_actions, in mlx5dr_rule_create() argument
Dfs_dr.h25 int num_actions; member
Ddr_action.c638 u32 num_actions, in mlx5dr_actions_build_ste_arr() argument
659 for (i = 0; i < num_actions; i++) { in mlx5dr_actions_build_ste_arr()
Ddr_types.h344 u32 num_actions,
/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dflow.c350 u8 num_actions, void *in) in mlx5_ib_create_modify_header() argument
365 mlx5_modify_header_alloc(dev->mdev, namespace, num_actions, in); in mlx5_ib_create_modify_header()
394 int num_actions; in UVERBS_HANDLER() local
404 num_actions = uverbs_attr_ptr_get_array_size( in UVERBS_HANDLER()
407 if (num_actions < 0) in UVERBS_HANDLER()
408 return num_actions; in UVERBS_HANDLER()
414 action = mlx5_ib_create_modify_header(mdev, ft_type, num_actions, in); in UVERBS_HANDLER()
/Linux-v5.4/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()
36 int num_actions = 0, err; in nft_flow_rule_create() local
42 num_actions++; in nft_flow_rule_create()
47 flow = nft_flow_rule_alloc(num_actions); in nft_flow_rule_create()
Dnf_dup_netdev.c66 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_fwd_dup_netdev_offload()
Dnft_immediate.c135 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_immediate_offload_verdict()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32.c93 unsigned int num_actions = 0; in fill_action_fields() local
104 if (num_actions) in fill_action_fields()
110 num_actions++; in fill_action_fields()
137 num_actions++; in fill_action_fields()
/Linux-v5.4/net/core/
Dflow_offload.c8 struct flow_rule *flow_rule_alloc(unsigned int num_actions) in flow_rule_alloc() argument
12 rule = kzalloc(struct_size(rule, action.entries, num_actions), in flow_rule_alloc()
17 rule->action.num_entries = num_actions; in flow_rule_alloc()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_cmd.c126 u8 namespace, u8 num_actions, in mlx5_cmd_stub_modify_header_alloc() argument
767 u8 namespace, u8 num_actions, in mlx5_cmd_modify_header_alloc() argument
800 if (num_actions > max_actions) { in mlx5_cmd_modify_header_alloc()
802 num_actions, max_actions); in mlx5_cmd_modify_header_alloc()
806 actions_size = MLX5_UN_SZ_BYTES(set_action_in_add_action_in_auto) * num_actions; in mlx5_cmd_modify_header_alloc()
816 MLX5_SET(alloc_modify_header_context_in, in, num_of_actions, num_actions); in mlx5_cmd_modify_header_alloc()
Dfs_cmd.h90 u8 namespace, u8 num_actions,
Den_tc.c189 int num_actions; member
287 key->num_actions * MLX5_MH_ACT_SZ, 0); in hash_mod_hdr_info()
293 if (a->num_actions != b->num_actions) in cmp_mod_hdr_info()
296 return memcmp(a->actions, b->actions, a->num_actions * MLX5_MH_ACT_SZ); in cmp_mod_hdr_info()
351 int num_actions, actions_size, namespace, err; in mlx5e_attach_mod_hdr() local
357 num_actions = parse_attr->num_mod_hdr_actions; in mlx5e_attach_mod_hdr()
358 actions_size = MLX5_MH_ACT_SZ * num_actions; in mlx5e_attach_mod_hdr()
361 key.num_actions = num_actions; in mlx5e_attach_mod_hdr()
389 mh->key.num_actions = num_actions; in mlx5e_attach_mod_hdr()
399 mh->key.num_actions, in mlx5e_attach_mod_hdr()
Dfs_core.c2912 u8 ns_type, u8 num_actions, in mlx5_modify_header_alloc() argument
2928 err = root->cmds->modify_header_alloc(root, ns_type, num_actions, in mlx5_modify_header_alloc()
/Linux-v5.4/drivers/counter/
Dcounter.c649 const size_t num_actions = synapse->num_actions; in counter_action_store() local
656 for (action_index = 0; action_index < num_actions; action_index++) { in counter_action_store()
662 if (action_index >= num_actions) in counter_action_store()
676 size_t num_actions; member
688 for (i = 0; i < component->num_actions; i++) { in counter_synapse_action_available_show()
751 avail_comp->num_actions = synapse->num_actions; in counter_synapses_register()
Dftm-quaddec.c255 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
260 .num_actions = ARRAY_SIZE(ftm_quaddec_synapse_actions),
Dstm32-timer-cnt.c321 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
326 .num_actions = ARRAY_SIZE(stm32_synapse_actions),
Dstm32-lptimer-cnt.c596 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
601 .num_actions = ARRAY_SIZE(stm32_lptim_cnt_synapse_actions),
D104-quad-8.c1205 .num_actions = ARRAY_SIZE(quad8_synapse_actions_list), \
1210 .num_actions = ARRAY_SIZE(quad8_synapse_actions_list), \
1215 .num_actions = ARRAY_SIZE(quad8_index_actions_list), \
/Linux-v5.4/include/net/netfilter/
Dnf_tables_offload.h28 unsigned int num_actions; member
/Linux-v5.4/include/linux/mlx5/
Dfs.h240 u8 ns_type, u8 num_actions,
/Linux-v5.4/include/linux/
Dcounter.h141 size_t num_actions; member
/Linux-v5.4/include/net/
Dflow_offload.h248 struct flow_rule *flow_rule_alloc(unsigned int num_actions);