]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: remove obsolete check for ETH_FLAG_LRO
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 Dec 2022 09:45:20 +0000 (09:45 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 12 Dec 2022 10:35:50 +0000 (10:35 +0000)
The ETH_FLAG_LRO constant was introduced to Linux in

  commit 3ae7c0b2e3747b50c3a6c63ebb67469e0a6b3203
  Author: Jeff Garzik <jeff@garzik.org>
  Date:   Wed Aug 15 16:00:51 2007 -0700

    [ETHTOOL]: Add ETHTOOL_[GS]FLAGS sub-ioctls

This is old enough that all our supported platforms can be assumed
to have this feature.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build
src/util/virnetdev.c

index 4703b2c6707b78905a3dddb6463882c7191a1b03..3194c2f9affcce53607acc0a7de97b3fc8d106a6 100644 (file)
@@ -653,7 +653,6 @@ symbols = [
   [ 'linux/ethtool.h', 'ETH_FLAG_TXVLAN' ],
   [ 'linux/ethtool.h', 'ETH_FLAG_NTUPLE' ],
   [ 'linux/ethtool.h', 'ETH_FLAG_RXHASH' ],
-  [ 'linux/ethtool.h', 'ETH_FLAG_LRO' ],
   [ 'linux/ethtool.h', 'ETHTOOL_GFEATURES' ],
   [ 'linux/ethtool.h', 'ETHTOOL_SCOALESCE' ],
   [ 'linux/ethtool.h', 'ETHTOOL_GCOALESCE' ],
index fe58975067f3a2cce636906b3aebc07b38e75b55..926609b8985b217d6e0145551bba0bb531cba0a8 100644 (file)
@@ -3089,9 +3089,7 @@ virNetDevGetEthtoolFeatures(const char *ifname,
 
     /* ethtool masks */
     struct virNetDevEthtoolFeatureCmd flags[] = {
-# if WITH_DECL_ETH_FLAG_LRO
         {ETH_FLAG_LRO, VIR_NET_DEV_FEAT_LRO},
-# endif
 # if WITH_DECL_ETH_FLAG_TXVLAN
         {ETH_FLAG_RXVLAN, VIR_NET_DEV_FEAT_RXVLAN},
         {ETH_FLAG_TXVLAN, VIR_NET_DEV_FEAT_TXVLAN},