Forum Stats

  • 3,741,015 Users
  • 2,248,356 Discussions
  • 7,861,581 Comments

Discussions

UEK - What is the purpose of hiding 200GBps speeds in ethtool.h?

Tualua
Tualua Member Posts: 22 Green Ribbon

Hello!

In latest UEK sources, for example in /usr/src/kernels/4.14.35-2047.503.1.el7uek.x86_64/include/uapi/linux/ethtool.h

#if 0   /* Hide these enums because of the kABI workaround */
        ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT         = 62,
        ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT         = 63,
        ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 64,
        ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT         = 65,
        ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT         = 66,
#endif

You cannot build Mellanox OFED with this with. I'm trying to build MLNX_OFED_LINUX-4.9-3.1.5.0

It works on default kernel version for OL7.8/7.9 but fails on later versions with errors like

/tmp/MLNX_OFED_LINUX-4.9-3.1.5.0-4.14.35-2047.503.1.el7uek.x86_64/mlnx_iso.5092/OFED_topdir/BUILD/mlnx-ofa_kernel-4.9/obj/default/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:192:12: error: 'ETHTOOL_LINK_MODE_200000baseKR4_Ful
l_BIT' undeclared (first use in this function)
            ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT,
            ^

If I remove #if and #endif it builds and works fine.

Tagged:

Best Answer

Answers

Sign In or Register to comment.