mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 21:17:54 +03:00
meson: remove obsolete check for ETHTOOL_GFLAGS
The ETHTOOL_GFLAGS 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>
This commit is contained in:
parent
6e170c72f5
commit
48c9470d0f
@ -654,7 +654,6 @@ symbols = [
|
||||
[ 'linux/ethtool.h', 'ETH_FLAG_NTUPLE' ],
|
||||
[ 'linux/ethtool.h', 'ETH_FLAG_RXHASH' ],
|
||||
[ 'linux/ethtool.h', 'ETH_FLAG_LRO' ],
|
||||
[ 'linux/ethtool.h', 'ETHTOOL_GFLAGS' ],
|
||||
[ 'linux/ethtool.h', 'ETHTOOL_GFEATURES' ],
|
||||
[ 'linux/ethtool.h', 'ETHTOOL_SCOALESCE' ],
|
||||
[ 'linux/ethtool.h', 'ETHTOOL_GCOALESCE' ],
|
||||
|
@ -3087,24 +3087,22 @@ virNetDevGetEthtoolFeatures(const char *ifname,
|
||||
{ETHTOOL_GGRO, VIR_NET_DEV_FEAT_GGRO},
|
||||
};
|
||||
|
||||
# if WITH_DECL_ETHTOOL_GFLAGS
|
||||
/* ethtool masks */
|
||||
struct virNetDevEthtoolFeatureCmd flags[] = {
|
||||
# if WITH_DECL_ETH_FLAG_LRO
|
||||
# if WITH_DECL_ETH_FLAG_LRO
|
||||
{ETH_FLAG_LRO, VIR_NET_DEV_FEAT_LRO},
|
||||
# endif
|
||||
# if WITH_DECL_ETH_FLAG_TXVLAN
|
||||
# endif
|
||||
# if WITH_DECL_ETH_FLAG_TXVLAN
|
||||
{ETH_FLAG_RXVLAN, VIR_NET_DEV_FEAT_RXVLAN},
|
||||
{ETH_FLAG_TXVLAN, VIR_NET_DEV_FEAT_TXVLAN},
|
||||
# endif
|
||||
# if WITH_DECL_ETH_FLAG_NTUBLE
|
||||
{ETH_FLAG_NTUPLE, VIR_NET_DEV_FEAT_NTUPLE},
|
||||
# endif
|
||||
# if WITH_DECL_ETH_FLAG_RXHASH
|
||||
{ETH_FLAG_RXHASH, VIR_NET_DEV_FEAT_RXHASH},
|
||||
# endif
|
||||
};
|
||||
# endif
|
||||
# if WITH_DECL_ETH_FLAG_NTUBLE
|
||||
{ETH_FLAG_NTUPLE, VIR_NET_DEV_FEAT_NTUPLE},
|
||||
# endif
|
||||
# if WITH_DECL_ETH_FLAG_RXHASH
|
||||
{ETH_FLAG_RXHASH, VIR_NET_DEV_FEAT_RXHASH},
|
||||
# endif
|
||||
};
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS(ethtool_cmds); i++) {
|
||||
cmd.cmd = ethtool_cmds[i].cmd;
|
||||
@ -3112,7 +3110,6 @@ virNetDevGetEthtoolFeatures(const char *ifname,
|
||||
ignore_value(virBitmapSetBit(bitmap, ethtool_cmds[i].feat));
|
||||
}
|
||||
|
||||
# if WITH_DECL_ETHTOOL_GFLAGS
|
||||
cmd.cmd = ETHTOOL_GFLAGS;
|
||||
if (virNetDevFeatureAvailable(ifname, fd, ifr, &cmd)) {
|
||||
for (i = 0; i < G_N_ELEMENTS(flags); i++) {
|
||||
@ -3120,7 +3117,6 @@ virNetDevGetEthtoolFeatures(const char *ifname,
|
||||
ignore_value(virBitmapSetBit(bitmap, flags[i].feat));
|
||||
}
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user