From: VMware, Inc <> Date: Tue, 13 Mar 2012 20:05:51 +0000 (-0700) Subject: compat_ethtool.h: adjust to newer kernel API X-Git-Tag: 2012.03.13-651368~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e33305d566220ea3f6ddbe47afda35f325d78124;p=thirdparty%2Fopen-vm-tools.git compat_ethtool.h: adjust to newer kernel API Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/modules/linux/shared/compat_ethtool.h b/open-vm-tools/modules/linux/shared/compat_ethtool.h index 726ccb7d5..3e098eea3 100644 --- a/open-vm-tools/modules/linux/shared/compat_ethtool.h +++ b/open-vm-tools/modules/linux/shared/compat_ethtool.h @@ -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 */