datapath: Include <linux/skbuff.h> directly into linux/ip.h compat.
authorBen Pfaff <blp@nicira.com>
Fri, 10 Dec 2010 22:39:25 +0000 (14:39 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 13 Dec 2010 18:20:27 +0000 (10:20 -0800)
While doing test builds on numerous kernel versions I found that one build
failed because skb_network_header() wasn't visible from flow.h.  I guess
that we accidentally depend on <linux/netlink.h> being included indirectly,
but this didn't always happen.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux-2.6/compat-2.6/include/linux/ip.h

index 36765396b2951da1ef94c443ca07dc6155bd421c..6ff71524023bba55518c6601a0ef9d8a6cf08d42 100644 (file)
@@ -4,6 +4,7 @@
 #include_next <linux/ip.h>
 
 #ifndef HAVE_SKBUFF_HEADER_HELPERS
+#include <linux/skbuff.h>
 static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
 {
        return (struct iphdr *)skb_network_header(skb);