Support for Ubuntu 18.04 LTS Kernel >5.0.23 And Mellanox EN Driver Compilation

Compilation of Mellanox EN driver mlnx-en-4.6-1.0.1.1-ubuntu18.04-x86_64.tar

Fails on ubuntu 18.04 due to the change in the HWE kernel moving to 5.0.

[See Screenshot]

This arises due to the fact that sec_path *sp was removed in favor of the new extensions scheme in [skbuff.h]

#ifdef CONFIG_XFRM

struct sec_path *sp;

#endif

^^^^^ was removed in kernel >= 5.0

Thus, various lines in SOURCES\mlnx-en-4.6\drivers\net\ethernet\mellanox\mlx5\core\en_accel\ipsec_rxtx.c

will need to be updated to use skb_sec_path() or macroto obtain skb->sp

static inline struct sec_path *skb_sec_path(const struct sk_buff *skb)

{

#ifdef CONFIG_XFRM

return skb_ext_find(skb, SKB_EXT_SEC_PATH);

#else

return NULL;

#endif

}


When is the planned support for this update?

Can we obtain an out of band patch?

Best Regards,

-Tim

Hello Tim,

Many thanks for posting your request on the Mellanox Community.

As you also opened a Mellanox Support ticket, we will continue to assist you through the support ticket.

Many thanks,

~Mellanox Technical Support