Update primary code license to Apache 2.0.
[cascardo/ovs.git] / datapath / actions.h
1 /*
2  * Copyright (c) 2009 Nicira Networks.
3  * Distributed under the terms of the GNU GPL version 2.
4  *
5  * Significant portions of this file may be copied from parts of the Linux
6  * kernel, by Linus Torvalds and others.
7  */
8
9 #ifndef ACTIONS_H
10 #define ACTIONS_H 1
11
12 #include <linux/gfp.h>
13
14 struct datapath;
15 struct sk_buff;
16 struct odp_flow_key;
17 union odp_action;
18
19 struct sk_buff *make_writable(struct sk_buff *, gfp_t gfp);
20 int dp_xmit_skb(struct sk_buff *);
21 int execute_actions(struct datapath *dp, struct sk_buff *skb,
22                     struct odp_flow_key *key,
23                     const union odp_action *, int n_actions,
24                     gfp_t gfp);
25
26 #endif /* actions.h */