]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
compat_ethtool.h: adjust to newer kernel API
authorVMware, Inc <>
Tue, 13 Mar 2012 20:05:51 +0000 (13:05 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Wed, 14 Mar 2012 16:04:58 +0000 (09:04 -0700)
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/modules/linux/shared/compat_ethtool.h

index 726ccb7d5e33a8d5c847fdcf0451ef8bd8304586..3e098eea36ea0fff4fe3e3df944fa9b43dacfb76 100644 (file)
@@ -51,4 +51,10 @@ typedef struct ethtool_value compat_ethtool_value;
 #   endif
 #endif
 
+#if COMPAT_LINUX_VERSION_CHECK_LT(3, 3, 0)
+#   define compat_ethtool_rxfh_indir_default(i, num_queues) (i % num_queues)
+#else
+#   define compat_ethtool_rxfh_indir_default(i, num_queues) ethtool_rxfh_indir_default(i, num_queues)
+#endif
+
 #endif /* _COMPAT_ETHTOOL_H */