]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Mon, 22 Aug 2011 19:51:34 +0000 (12:51 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 22 Aug 2011 19:51:34 +0000 (12:51 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/shared/compat_netdevice.h

index 45bbff6fd72c035dd64453e19225921975d245ee..7d4f6f87a5ee6d038c6dee80142c6799fc0fb7be 100644 (file)
@@ -392,4 +392,10 @@ compat_multiqueue_allowed(struct pci_dev *dev)
 #   endif
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
+#   define compat_vlan_get_protocol(skb) vlan_get_protocol(skb)
+#else
+#   define compat_vlan_get_protocol(skb) (skb->protocol)
+#endif
+
 #endif /* __COMPAT_NETDEVICE_H__ */