diff options
author | Luc Provoost <luc.provoost@gmail.com> | 2023-06-30 17:42:13 +0200 |
---|---|---|
committer | Luc Provoost <luc.provoost@gmail.com> | 2023-07-24 13:35:30 +0000 |
commit | 090efc9c81c8b1943d162249d965a3e40502d50e (patch) | |
tree | 54df06e1c0cdda4445838d203334d0615bd2cd40 /VNFs/DPPD-PROX/task_base.h | |
parent | 809edd5270e8a22f2c29d711203d579fdf7addfb (diff) |
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 <luc.provoost@gmail.com>
Change-Id: I15e5b92c2413a1d3823557f70b1f437b35ca5a12
Diffstat (limited to 'VNFs/DPPD-PROX/task_base.h')
-rw-r--r-- | VNFs/DPPD-PROX/task_base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/task_base.h b/VNFs/DPPD-PROX/task_base.h index 7e231fc4..89e5bb9d 100644 --- a/VNFs/DPPD-PROX/task_base.h +++ b/VNFs/DPPD-PROX/task_base.h @@ -56,8 +56,8 @@ #define TASK_FEATURE_RX_ALL 0x8000 #define TASK_FEATURE_TXQ_FLAGS_MULTIPLE_MEMPOOL 0x20000 -#define TBASE_FLAG_TX_FLUSH 0x01 -#define TBASE_FLAG_NEVER_FLUSH 0x02 +#define TBASE_FLAG_TX_FLUSH 0x01 +#define TBASE_FLAG_NEVER_FLUSH 0x02 // Task specific flags #define TBASE_FLAG_LUT_QINQ_HASH 0x08 #define TBASE_FLAG_LUT_QINQ_RSS 0x10 |