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