From ed862c33553393b972e9944ffec5292fde723ed3 Mon Sep 17 00:00:00 2001 From: "Jingliang(Dan) Jiang" Date: Wed, 19 Mar 2025 15:25:46 -0700 Subject: [PATCH] Fix build error on kernel 4.19.x --- src/ixgbe_ethtool.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ixgbe_ethtool.c b/src/ixgbe_ethtool.c index e983035..a506e33 100644 --- a/src/ixgbe_ethtool.c +++ b/src/ixgbe_ethtool.c @@ -10,7 +10,15 @@ #include #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0) +static inline void linkmode_and(unsigned long *dst, const unsigned long *a, + const unsigned long *b) +{ + bitmap_and(dst, a, b, __ETHTOOL_LINK_MODE_MASK_NBITS); +} +#endif #ifdef SIOCETHTOOL #include