]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-ioctl: don't build code RX ring on old system
authorEric Leblond <eric@regit.org>
Thu, 19 Feb 2015 08:37:23 +0000 (09:37 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Mar 2015 14:55:42 +0000 (15:55 +0100)
If ETHTOOL_GRXRINGS is undefined we will not be able to build the
RX rings code. So we can make the build conditional to the
definition of ETHTOOL_GRXRINGS.

src/util-ioctl.c

index 7ea8f22a427f335c237433c9e5a50583019d678b..f08dea719e2d0642bdb675c23fcd53ca13816f1d 100644 (file)
@@ -212,7 +212,7 @@ int GetIfaceOffloading(const char *pcap_dev)
 
 int GetIfaceRSSQueuesNum(const char *pcap_dev)
 {
-#ifdef HAVE_LINUX_ETHTOOL_H
+#if defined HAVE_LINUX_ETHTOOL_H && defined ETHTOOL_GRXRINGS
     struct ifreq ifr;
     struct ethtool_rxnfc nfccmd;
     int fd;