diff options
author | arikachen <eaglesora@gmail.com> | 2021-09-28 18:43:44 +0800 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-09-28 12:59:24 +0000 |
commit | ca92091f95b34c75c5f810b6f967ca115671d907 (patch) | |
tree | a2e19bdf1dad6c1ab98e135ec8f254597372a3f2 /src | |
parent | d67ad46903a1772d538e0aade230b39105a584e9 (diff) |
af_xdp: fix free mem in tx while no free slot
Type: fix
Signed-off-by: arikachen <eaglesora@gmail.com>
Change-Id: Id305b9d311b2d0d11583db1a14a45d9187a1e628
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/af_xdp/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/af_xdp/output.c b/src/plugins/af_xdp/output.c index 51a56ed866d..aac5df0325b 100644 --- a/src/plugins/af_xdp/output.c +++ b/src/plugins/af_xdp/output.c @@ -231,9 +231,9 @@ VNET_DEVICE_CLASS_TX_FN (af_xdp_device_class) (vlib_main_t * vm, { u32 n_enq; af_xdp_device_output_free (vm, node, txq); - n_enq = af_xdp_device_output_tx_try (vm, node, ad, txq, n_tx - n, from); + n_enq = + af_xdp_device_output_tx_try (vm, node, ad, txq, n_tx - n, from + n); n += n_enq; - from += n_enq; } af_xdp_device_output_tx_db (vm, node, ad, txq, n); |