]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: remove obsolete check for ETHTOOL_GCOALESCE
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:36:03 +0000 (10:36 +0000)
The ETHTOOL_GCOALESCE constant has existed since before Linux moved
to git.

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 a3a512a565031d6654bd105a9607a3ba393db9c8..7fb17bf983e6682ad7949611f489e22c5bcaa3b8 100644 (file)
@@ -650,9 +650,6 @@ symbols = [
   # Check whether endian provides handy macros.
   [ 'endian.h', 'htole64' ],
 
-  [ 'linux/ethtool.h', 'ETHTOOL_SCOALESCE' ],
-  [ 'linux/ethtool.h', 'ETHTOOL_GCOALESCE' ],
-
   # GET_VLAN_VID_CMD is required for virNetDevGetVLanID
   [ 'linux/if_vlan.h', 'GET_VLAN_VID_CMD' ],
 
index 8da362d905688d6d16b4dd4b5c2523e0dbf4fa02..4be731d1b3b3b6d9fc772a233dff9e9257b26285 100644 (file)
@@ -3306,7 +3306,6 @@ virNetDevGetEthtoolGFeatures(const char *ifname,
 }
 
 
-# if WITH_DECL_ETHTOOL_SCOALESCE && WITH_DECL_ETHTOOL_GCOALESCE
 /**
  * virNetDevSetCoalesce:
  * @ifname: interface name to modify
@@ -3402,20 +3401,6 @@ int virNetDevSetCoalesce(const char *ifname,
 
     return 0;
 }
-# else
-int virNetDevSetCoalesce(const char *ifname,
-                         virNetDevCoalesce *coalesce,
-                         bool update)
-{
-    if (!coalesce && !update)
-        return 0;
-
-    virReportSystemError(ENOSYS,
-                         _("Cannot set coalesce info on interface '%s'"),
-                         ifname);
-    return -1;
-}
-# endif
 
 
 /**