datapath: Don't use Nicira's OUI for generating mac-address.
[sliver-openvswitch.git] / datapath / actions.h
1 /*
2  * Copyright (c) 2009, 2010, 2011 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/skbuff.h>
13 #include <linux/version.h>
14
15 struct datapath;
16 struct sk_buff;
17 struct sw_flow_key;
18
19 int execute_actions(struct datapath *dp, struct sk_buff *skb);
20
21 static inline void skb_clear_rxhash(struct sk_buff *skb)
22 {
23 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
24         skb->rxhash = 0;
25 #endif
26 }
27
28 #endif /* actions.h */