From 1a437e6a0f26c1fff88d0f22482579ea7c579a7e Mon Sep 17 00:00:00 2001 From: Matias Elo Date: Fri, 4 Dec 2020 14:07:03 +0200 Subject: linux-gen: pktio: support transmitting packet vectors using odp_queue_enq() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable application to transmit packet vectors using odp_queue_enq() and odp_queue_enq_multi() calls. If the whole packet vector is not transmitted successfully, the remaining packets in the vector are freed and the out_discards counter is incremented accordingly Signed-off-by: Matias Elo Reviewed-by: Jere Leppänen --- platform/linux-generic/include/odp_packet_io_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/linux-generic/include/odp_packet_io_internal.h') diff --git a/platform/linux-generic/include/odp_packet_io_internal.h b/platform/linux-generic/include/odp_packet_io_internal.h index 3a8a260a0..032828afd 100644 --- a/platform/linux-generic/include/odp_packet_io_internal.h +++ b/platform/linux-generic/include/odp_packet_io_internal.h @@ -104,6 +104,7 @@ struct pktio_entry { /* Statistics counters used outside drivers */ struct { odp_atomic_u64_t in_discards; + odp_atomic_u64_t out_discards; } stats_extra; /* Latest Tx timestamp */ odp_atomic_u64_t tx_ts; -- cgit v1.2.3