datapath: remove actions.h
authorPravin B Shelar <pshelar@nicira.com>
Fri, 11 Nov 2011 03:35:37 +0000 (19:35 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 11 Nov 2011 03:35:37 +0000 (19:35 -0800)
There are only two symbols in actions.h. Compatibility function
is moved to compat.h and execute_actions() declaration is moved
to datapath.h

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/Modules.mk
datapath/actions.c
datapath/actions.h [deleted file]
datapath/compat.h
datapath/datapath.c
datapath/datapath.h
datapath/tunnel.c

index 087cf44..22b328c 100644 (file)
@@ -28,7 +28,6 @@ openvswitch_sources = \
        vport-patch.c
 
 openvswitch_headers = \
-       actions.h \
        checksum.h \
        compat.h \
        datapath.h \
index 61b903f..dc74a37 100644 (file)
@@ -23,7 +23,6 @@
 #include <net/checksum.h>
 #include <net/dsfield.h>
 
-#include "actions.h"
 #include "checksum.h"
 #include "datapath.h"
 #include "vlan.h"
diff --git a/datapath/actions.h b/datapath/actions.h
deleted file mode 100644 (file)
index a832295..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2009, 2010, 2011 Nicira Networks.
- * Distributed under the terms of the GNU GPL version 2.
- *
- * Significant portions of this file may be copied from parts of the Linux
- * kernel, by Linus Torvalds and others.
- */
-
-#ifndef ACTIONS_H
-#define ACTIONS_H 1
-
-#include <linux/skbuff.h>
-#include <linux/version.h>
-
-struct datapath;
-struct sk_buff;
-struct sw_flow_key;
-
-int execute_actions(struct datapath *dp, struct sk_buff *skb);
-
-static inline void skb_clear_rxhash(struct sk_buff *skb)
-{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
-       skb->rxhash = 0;
-#endif
-}
-
-#endif /* actions.h */
index c484a5d..4e05753 100644 (file)
@@ -36,4 +36,11 @@ static inline int CHECK_NUL_STRING(struct nlattr *attr, int maxlen)
 }
 #endif  /* !HAVE_NLA_NUL_STRING */
 
+static inline void skb_clear_rxhash(struct sk_buff *skb)
+{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
+       skb->rxhash = 0;
+#endif
+}
+
 #endif /* compat.h */
index 6ebe7a0..49d93aa 100644 (file)
@@ -45,7 +45,6 @@
 
 #include "checksum.h"
 #include "datapath.h"
-#include "actions.h"
 #include "flow.h"
 #include "vlan.h"
 #include "tunnel.h"
index c6371ca..c7014c3 100644 (file)
@@ -137,4 +137,5 @@ const char *dp_name(const struct datapath *dp);
 struct sk_buff *ovs_vport_cmd_build_info(struct vport *, u32 pid, u32 seq,
                                         u8 cmd);
 
+int execute_actions(struct datapath *dp, struct sk_buff *skb);
 #endif /* datapath.h */
index a6fdfa9..dd6c648 100644 (file)
@@ -32,7 +32,6 @@
 #include <net/route.h>
 #include <net/xfrm.h>
 
-#include "actions.h"
 #include "checksum.h"
 #include "datapath.h"
 #include "tunnel.h"