aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/include
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-03-19 14:15:07 +0200
committerMatias Elo <matias.elo@nokia.com>2021-03-31 12:47:13 +0300
commit9647ebe1988a3f141a108952b1b33f6300381414 (patch)
tree04a3723a443fad17ff69a8b5291dc429cb78cd38 /platform/linux-dpdk/include
parent67042c608e711814a536db9aecab7dfa64796924 (diff)
linux-dpdk: pktio: use generic loop interface
Remove dependency to DPDK ring pmd driver, which caused linking problems as it's not part of the top level DPDK API. Also, this simplifies the fast path pktio code. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/include')
-rw-r--r--platform/linux-dpdk/include/odp_packet_io_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/linux-dpdk/include/odp_packet_io_internal.h b/platform/linux-dpdk/include/odp_packet_io_internal.h
index fba352ce3..631e36fb2 100644
--- a/platform/linux-dpdk/include/odp_packet_io_internal.h
+++ b/platform/linux-dpdk/include/odp_packet_io_internal.h
@@ -47,7 +47,7 @@ ODP_STATIC_ASSERT(PKTIO_LSO_PROFILES < UINT8_MAX, "PKTIO_LSO_PROFILES_ERROR");
/* Forward declaration */
struct pktio_if_ops;
-#define PKTIO_PRIVATE_SIZE 2048
+#define PKTIO_PRIVATE_SIZE 1536
struct pktio_entry {
const struct pktio_if_ops *ops; /**< Implementation specific methods */
@@ -250,6 +250,7 @@ static inline void _odp_pktio_tx_ts_set(pktio_entry_t *entry)
odp_atomic_store_u64(&entry->s.tx_ts, ts_val.u64);
}
+extern const pktio_if_ops_t _odp_loopback_pktio_ops;
extern const pktio_if_ops_t _odp_null_pktio_ops;
extern const pktio_if_ops_t _odp_dpdk_pktio_ops;
extern const pktio_if_ops_t * const pktio_if_ops[];