Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vmxnet3: fix compilation when RSS is disabled

If RSS is disabled, we can ifdef out some RSS specific code. This fixes
the compile error found by Randy Dunlap.

Signed-off-by: Scott J. Goldman <scottjg@vmware.com>
Reviewed-by: Bhavesh Davda <bhavesh@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Scott J. Goldman and committed by
David S. Miller
e9248fbd bf264145

+4 -1
+4 -1
drivers/net/vmxnet3/vmxnet3_ethtool.c
··· 553 553 return -EOPNOTSUPP; 554 554 } 555 555 556 - 556 + #ifdef VMXNET3_RSS 557 557 static int 558 558 vmxnet3_get_rss_indir(struct net_device *netdev, 559 559 struct ethtool_rxfh_indir *p) ··· 598 598 return 0; 599 599 600 600 } 601 + #endif 601 602 602 603 static struct ethtool_ops vmxnet3_ethtool_ops = { 603 604 .get_settings = vmxnet3_get_settings, ··· 624 623 .get_ringparam = vmxnet3_get_ringparam, 625 624 .set_ringparam = vmxnet3_set_ringparam, 626 625 .get_rxnfc = vmxnet3_get_rxnfc, 626 + #ifdef VMXNET3_RSS 627 627 .get_rxfh_indir = vmxnet3_get_rss_indir, 628 628 .set_rxfh_indir = vmxnet3_set_rss_indir, 629 + #endif 629 630 }; 630 631 631 632 void vmxnet3_set_ethtool_ops(struct net_device *netdev)