datapath: Use ETH_ALEN instead of VLAN_ETH_ALEN
[openvswitch] / datapath / linux / compat / include / net / dst.h
index f481a9d3f181f6598f7dc1932d7b4b091627cddd..9d9e6160351db81d841b50985e93be0bcc44f1d9 100644 (file)
@@ -1,8 +1,16 @@
 #ifndef __NET_DST_WRAPPER_H
 #define __NET_DST_WRAPPER_H 1
 
+#include <linux/version.h>
 #include_next <net/dst.h>
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) &&    \
+    LINUX_VERSION_CODE > KERNEL_VERSION(3,0,20)
+
+#define dst_get_neighbour_noref dst_get_neighbour
+
+#endif
+
 #ifndef HAVE_SKB_DST_ACCESSOR_FUNCS
 
 static inline void skb_dst_drop(struct sk_buff *skb)