X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Faf_xdp%2Fcompat.h;h=3880dc7dd7f5b42b67ff6e0e6d31a4966f31a8bd;hb=3e455a97dcb23b6e3684aa48a0302cf0429f4286;hp=545c8aa395e076c76dad05a2b6276892f35f0477;hpb=055a393626ed25ccf92e7c685495a87f6fb6ab52;p=dpdk.git diff --git a/drivers/net/af_xdp/compat.h b/drivers/net/af_xdp/compat.h index 545c8aa395..3880dc7dd7 100644 --- a/drivers/net/af_xdp/compat.h +++ b/drivers/net/af_xdp/compat.h @@ -4,6 +4,7 @@ #include #include +#include #if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE && \ defined(RTE_LIBRTE_AF_XDP_PMD_SHARED_UMEM) @@ -42,14 +43,14 @@ create_shared_socket(struct xsk_socket **xsk_ptr __rte_unused, #ifdef XDP_USE_NEED_WAKEUP static int -syscall_needed(struct xsk_ring_prod *q, uint32_t busy_budget) +tx_syscall_needed(struct xsk_ring_prod *q) { - return xsk_ring_prod__needs_wakeup(q) | busy_budget; + return xsk_ring_prod__needs_wakeup(q); } #else static int -syscall_needed(struct xsk_ring_prod *q __rte_unused, uint32_t busy_budget) +tx_syscall_needed(struct xsk_ring_prod *q __rte_unused) { - return busy_budget; + return 1; } #endif