Skip to content

Commit

Permalink
compat: add support for RHEL 9 kernel >= 5.14.0-535
Browse files Browse the repository at this point in the history
Add support for RHEL 9 distributions with kernel version greater than
and including 5.14.0-536. Update the existing boundary check for the
'xsk_buff_dma_sync_for_cpu()' function call to take into account RHEL
and non-RHEL kernels.

Signed-off-by: Louis Peens <[email protected]>
Reviewed-by: Ryno Swart <[email protected]>
  • Loading branch information
louis-peens committed Dec 6, 2024
1 parent 79df9a4 commit 67fa656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfd3/xsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ nfp_nfd3_xsk_rx(struct nfp_net_rx_ring *rx_ring, int budget,
xrxbuf->xdp->data += meta_len;
xrxbuf->xdp->data_end = xrxbuf->xdp->data + pkt_len;
xdp_set_data_meta_invalid(xrxbuf->xdp);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0)
#if VER_NON_RHEL_GE(6, 10) || RHEL_RELEASE_GE(9, 536, 0, 0)
xsk_buff_dma_sync_for_cpu(xrxbuf->xdp);
#else
xsk_buff_dma_sync_for_cpu(xrxbuf->xdp, r_vec->xsk_pool);
Expand Down

0 comments on commit 67fa656

Please sign in to comment.