aboutsummaryrefslogtreecommitdiff
path: root/include/odp/autoheader_internal.h.in
diff options
context:
space:
mode:
authorTuomas Taipale <tuomas.taipale@nokia.com>2022-04-04 12:18:51 +0000
committerMatias Elo <matias.elo@nokia.com>2022-05-02 17:02:50 +0300
commit40e999eaeb52d34d5289b6b8d6e405f1623d8a53 (patch)
treebc7ac6aa0c7a5cd6eb14842886e9bd701267a033 /include/odp/autoheader_internal.h.in
parent32f878c9b291cc4f24c30819e45aa2605fcd84f4 (diff)
linux-gen: pktio: add AF_XDP socket based packet IO
Add new AF_XDP socket based packet IO implementation. Information about AF_XDP and XDP can be found in [1]. ODP packet pool(s) created for packet IO entries are used as the UMEM areas. Currently, only zero-copy mode is supported, copy-mode support will be added later. Depending on the XDP program loaded into the environment's NIC(s), TX and RX queue selection for packets may differ. By default, only a single combined queue is supported and this may require changing the configuration of the NIC accordingly so that packets end up on the AF_XDP socket created by ODP. [1] https://www.kernel.org/doc/Documentation/networking/af_xdp.rst Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'include/odp/autoheader_internal.h.in')
-rw-r--r--include/odp/autoheader_internal.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/odp/autoheader_internal.h.in b/include/odp/autoheader_internal.h.in
index 952675fb5..33d9f280f 100644
--- a/include/odp/autoheader_internal.h.in
+++ b/include/odp/autoheader_internal.h.in
@@ -32,4 +32,7 @@
/* Define to 1 to enable OpenSSL random data */
#undef _ODP_OPENSSL_RAND
+/* Define to 1 to enable XDP support */
+#undef _ODP_PKTIO_XDP
+
#endif