DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eventdev: fix Rx adapter event flush logic
@ 2019-05-09  4:39 Nikhil Rao
  2019-05-09  4:39 ` Nikhil Rao
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: Nikhil Rao @ 2019-05-09  4:39 UTC (permalink / raw)
  To: jerinj; +Cc: dev, matias.elo, Nikhil Rao

The Rx adapter flushes events only if it has BATCH_SIZE
events buffered where BATCH_SIZE is set to 32, e.g., if a
single packet is sent, it is never passed to
eventdev. Fix this issue by adding an event buffer flush
either when a Rx queue is found to be empty or the adapter service
function has processed the max number of packets for an invocation.

Fixes: 6b83f5935543 ("eventdev: add event buffer flush in Rx adapter")

Reported-by: Matias Elo <matias.elo@nokia.com>

Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
---
 lib/librte_eventdev/rte_event_eth_rx_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
index 8d178be..fd3761b 100644
--- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
@@ -872,7 +872,7 @@ static uint16_t rxa_gcd_u16(uint16_t a, uint16_t b)
 			break;
 	}
 
-	if (buf->count >= BATCH_SIZE)
+	if (buf->count)
 		rxa_flush_event_buffer(rx_adapter);
 
 	return nb_rx;
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-05-13 14:01 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09  4:39 [dpdk-dev] [PATCH] eventdev: fix Rx adapter event flush logic Nikhil Rao
2019-05-09  4:39 ` Nikhil Rao
2019-05-09  4:50 ` [dpdk-dev] [PATCH v2] " Nikhil Rao
2019-05-09  4:50   ` Nikhil Rao
2019-05-09 19:17   ` Thomas Monjalon
2019-05-09 19:17     ` Thomas Monjalon
2019-05-09 19:23     ` Mattias Rönnblom
2019-05-09 19:23       ` Mattias Rönnblom
2019-05-10  8:19     ` Rao, Nikhil
2019-05-10  8:19       ` Rao, Nikhil
2019-05-09 19:22   ` Mattias Rönnblom
2019-05-09 19:22     ` Mattias Rönnblom
2019-05-10  8:20     ` Rao, Nikhil
2019-05-10  8:20       ` Rao, Nikhil
2019-05-10  8:08 ` [dpdk-dev] [PATCH v3] " Nikhil Rao
2019-05-10  8:08   ` Nikhil Rao
2019-05-10 13:30   ` [dpdk-dev] [dpdk-stable] " Thomas Monjalon
2019-05-10 13:30     ` Thomas Monjalon
2019-05-10 16:13     ` Mattias Rönnblom
2019-05-10 16:13       ` Mattias Rönnblom
2019-05-13  4:20       ` Elo, Matias (Nokia - FI/Espoo)
2019-05-13  4:20         ` Elo, Matias (Nokia - FI/Espoo)
2019-05-13 14:00         ` Thomas Monjalon
2019-05-13 14:00           ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).