MT#55283 Fix nft_rtpengine compilation on RHEL/AlmaLinux 9.x kernel 5.14

Add support for RHEL/AlmaLinux/Rocky Linux 9.x kernels which backport
the 'reset' parameter to nft_expr_dump function from kernel 6.2.0.

This affects all RHEL 9 family distributions with kernel 5.14.

Tested on AlmaLinux 9.7 with kernel 5.14.0-611.11.1.el9_7.x86_64

Closes #2038
Closes #2037

Change-Id: I305be17cdbf7730acbc7d9b978694c7b0eb37b02
rfuchs/2036
root 4 weeks ago committed by Richard Fuchs
parent 59ec32fa7d
commit 503c4aaffe

@ -6830,8 +6830,10 @@ static int rtpengine_expr_init(const struct nft_ctx *ctx, const struct nft_expr
}
static int rtpengine_expr_dump(struct sk_buff *skb, const struct nft_expr *expr
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,2,0)
, bool reset
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,2,0) || \
(LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) && \
defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9,0))
, bool reset
#endif
)
{

Loading…
Cancel
Save