diff options
author | Dau Do <daudo@yahoo.com> | 2024-08-29 03:03:16 -0700 |
---|---|---|
committer | Dau Do <daudo@yahoo.com> | 2024-08-29 03:06:34 -0700 |
commit | b8d4490d9ce46ecb17899c9d40cdaae0744403fc (patch) | |
tree | 08965b1b44e745b002377426d65ccb5ac69e874a /src/plugins/avf/output.c | |
parent | b4808de24779cd0037568cff003b915e25edbdc6 (diff) |
avf: add num tx/rx packets per queue
Type: improvement
Change-Id: I3459dba86eb7a784448633b69492d6d3f49db720
Signed-off-by: Dau Do <daudo@yahoo.com>
Diffstat (limited to 'src/plugins/avf/output.c')
-rw-r--r-- | src/plugins/avf/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/avf/output.c b/src/plugins/avf/output.c index daa86ae86b2..0952886aaee 100644 --- a/src/plugins/avf/output.c +++ b/src/plugins/avf/output.c @@ -510,6 +510,7 @@ retry: avf_tail_write (txq->qtx_tail, txq->next); txq->n_enqueued += n_desc; n_left -= n_enq; + txq->total_packets += n_enq; } if (n_left) @@ -522,6 +523,7 @@ retry: vlib_buffer_free (vm, buffers, n_left); vlib_error_count (vm, node->node_index, AVF_TX_ERROR_NO_FREE_SLOTS, n_left); + txq->no_free_tx_count += n_left; } if (tf->shared_queue) |