git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common/sfc_efx/base: separate target EvQ and IRQ config
[dpdk.git]
/
drivers
/
net
/
af_xdp
/
compat.h
diff --git
a/drivers/net/af_xdp/compat.h
b/drivers/net/af_xdp/compat.h
index
7aa40d5
..
3880dc7
100644
(file)
--- a/
drivers/net/af_xdp/compat.h
+++ b/
drivers/net/af_xdp/compat.h
@@
-4,6
+4,7
@@
#include <bpf/xsk.h>
#include <linux/version.h>
#include <bpf/xsk.h>
#include <linux/version.h>
+#include <poll.h>
#if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE && \
defined(RTE_LIBRTE_AF_XDP_PMD_SHARED_UMEM)
#if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE && \
defined(RTE_LIBRTE_AF_XDP_PMD_SHARED_UMEM)
@@
-39,3
+40,17
@@
create_shared_socket(struct xsk_socket **xsk_ptr __rte_unused,
return -1;
}
#endif
return -1;
}
#endif
+
+#ifdef XDP_USE_NEED_WAKEUP
+static int
+tx_syscall_needed(struct xsk_ring_prod *q)
+{
+ return xsk_ring_prod__needs_wakeup(q);
+}
+#else
+static int
+tx_syscall_needed(struct xsk_ring_prod *q __rte_unused)
+{
+ return 1;
+}
+#endif