X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Faf_xdp%2Fcompat.h;h=9de94548850f8a575db420eb8c6d9964ae03d9c1;hb=2aa51cdd559e18fd6bbdead121d84a13ffa3455a;hp=545c8aa395e076c76dad05a2b6276892f35f0477;hpb=be1fb9fe3cc8d2a70b76ba243eb19a4255cd8cd2;p=dpdk.git diff --git a/drivers/net/af_xdp/compat.h b/drivers/net/af_xdp/compat.h index 545c8aa395..9de9454885 100644 --- a/drivers/net/af_xdp/compat.h +++ b/drivers/net/af_xdp/compat.h @@ -42,14 +42,24 @@ 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) +rx_syscall_needed(struct xsk_ring_prod *q, uint32_t busy_budget) { return xsk_ring_prod__needs_wakeup(q) | busy_budget; } +static int +tx_syscall_needed(struct xsk_ring_prod *q) +{ + return xsk_ring_prod__needs_wakeup(q); +} #else static int -syscall_needed(struct xsk_ring_prod *q __rte_unused, uint32_t busy_budget) +rx_syscall_needed(struct xsk_ring_prod *q __rte_unused, uint32_t busy_budget) { return busy_budget; } +static int +tx_syscall_needed(struct xsk_ring_prod *q __rte_unused) +{ + return 1; +} #endif