Searched refs:num_actions (Results 1 – 4 of 4) sorted by relevance
10 struct flow_rule *flow_rule_alloc(unsigned int num_actions) in flow_rule_alloc() argument15 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() argument36 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()
10 static struct nft_flow_rule *nft_flow_rule_alloc(int num_actions) in nft_flow_rule_alloc() argument18 flow->rule = flow_rule_alloc(num_actions); in nft_flow_rule_alloc()93 int num_actions = 0, err; in nft_flow_rule_create() local100 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()
98 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_fwd_dup_netdev_offload()
282 entry = &flow->rule->action.entries[ctx->num_actions++]; in nft_immediate_offload_verdict()
Completed in 10 milliseconds