From 090efc9c81c8b1943d162249d965a3e40502d50e Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Fri, 30 Jun 2023 17:42:13 +0200 Subject: Support packets in flight The handle_esp_bulk function might enqueue packets on a QAT device. These packets are not necessarily dequeued in the same call to the handle_bulk function since they might be asynchronously processed. Therefore, in some cases, we need to call this handle_bulk function again later, even when no new packets are received on the rx queue. To achieve this, the TASK_FEATURE_ZERO_RX flag is set. The number of packets in flight are stored to decide if packets need to be dequeued or not. The handle_esp_bulk function will continue to dequeue packets till none are left, even in case no new packets arrive. Signed-off-by: Luc Provoost Change-Id: I15e5b92c2413a1d3823557f70b1f437b35ca5a12 --- VNFs/DPPD-PROX/thread_generic.c | 1 - 1 file changed, 1 deletion(-) (limited to 'VNFs/DPPD-PROX/thread_generic.c') diff --git a/VNFs/DPPD-PROX/thread_generic.c b/VNFs/DPPD-PROX/thread_generic.c index 14fb943e..39964dea 100644 --- a/VNFs/DPPD-PROX/thread_generic.c +++ b/VNFs/DPPD-PROX/thread_generic.c @@ -213,7 +213,6 @@ int thread_generic(struct lcore_cfg *lconf) next[task_id] = t->handle_bulk(t, mbufs, nb_rx); } } - } } return 0; -- cgit 1.2.3-korg