datapath/actions.c
/* Return queue entry if fifo is not full */
Return queue entry if fifo is not full
Return queue entry if fifo is not full
static struct deferred_action *add_deferred_actions(struct sk_buff *skb,
				    const struct sw_flow_key *key,
				    const struct nlattr *actions,
				    const int actions_len)
{
	struct action_fifo *fifo;
	struct deferred_action *da;
	fifo = this_cpu_ptr(action_fifos);
	da = action_fifo_put(fifo);
	if (da) {
		da->skb = skb;
		da->actions = actions;
		da->actions_len = actions_len;
		da->pkt_key = *key;
	}
	return da;
}
static struct deferred_action * add_deferred_actions ( struct sk_buff * skb , const struct sw_flow_key * key , const struct nlattr * actions , const int actions_len ) { struct action_fifo * fifo ; struct deferred_action * da ; fifo = this_cpu_ptr ( action_fifos ) ; da = action_fifo_put ( fifo ) ; if ( da ) { da -> skb = skb ; da -> actions = actions ; da -> actions_len = actions_len ; da -> pkt_key = * key ; } return da ; }
Return queue entry if fifo is not full
Return queue entry if fifo is not full