diff options
author | Matias Elo <matias.elo@nokia.com> | 2016-02-15 12:49:51 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-03-04 13:24:48 +0300 |
commit | b97cab6a87a769111aae1849a2285573f5b5670f (patch) | |
tree | 6182b97edbf26c0945842a0b2caa3b962cf2bcb1 /platform/linux-generic/include/odp_packet_io_internal.h | |
parent | f97bdbab49d4ff94ce7cf7427783cdf4e2abfcbd (diff) |
linux-generic: pktio: add dpdk pktio build support
Add initial support for building ODP with DPDK pktio.
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_packet_io_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_packet_io_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_packet_io_internal.h b/platform/linux-generic/include/odp_packet_io_internal.h index c2b7d4b35..5219ce5a4 100644 --- a/platform/linux-generic/include/odp_packet_io_internal.h +++ b/platform/linux-generic/include/odp_packet_io_internal.h @@ -32,6 +32,7 @@ extern "C" { #include <odp_packet_socket.h> #include <odp_packet_netmap.h> #include <odp_packet_tap.h> +#include <odp_packet_dpdk.h> #define PKTIO_NAME_LEN 256 @@ -81,6 +82,7 @@ struct pktio_entry { pkt_sock_mmap_t pkt_sock_mmap; /**< using socket mmap * API for IO */ pkt_netmap_t pkt_nm; /**< using netmap API for IO */ + pkt_dpdk_t pkt_dpdk; /**< using DPDK for IO */ #ifdef HAVE_PCAP pkt_pcap_t pkt_pcap; /**< Using pcap for IO */ #endif @@ -223,6 +225,7 @@ int single_send_queue(pktio_entry_t *entry, int index, odp_packet_t packets[], int num); extern const pktio_if_ops_t netmap_pktio_ops; +extern const pktio_if_ops_t dpdk_pktio_ops; extern const pktio_if_ops_t sock_mmsg_pktio_ops; extern const pktio_if_ops_t sock_mmap_pktio_ops; extern const pktio_if_ops_t loopback_pktio_ops; |