summaryrefslogtreecommitdiffstats
path: root/src/plugins/af_xdp
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2023-06-20 12:03:36 +0200
committerDamjan Marion <dmarion@0xa5.net>2023-06-21 09:21:51 +0000
commita9edb9a16895219ec47f2af1acc4289e587ab76f (patch)
tree4570063e3068b4a073e9e4e0a1b4636d91763c6f /src/plugins/af_xdp
parent5cca669fc723371f6692e4b88136728bf7353b92 (diff)
af_xdp: fix chained buffer free on failure
Type: fix Change-Id: I7c6fb783e5200773cbd02c86d39fd241efcc39f9 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/af_xdp')
-rw-r--r--src/plugins/af_xdp/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/af_xdp/output.c b/src/plugins/af_xdp/output.c
index bb5d56f2503..a59c01ca6e0 100644
--- a/src/plugins/af_xdp/output.c
+++ b/src/plugins/af_xdp/output.c
@@ -208,7 +208,7 @@ wrap_around:
{
af_xdp_log (VLIB_LOG_LEVEL_ERR, ad,
"vlib_buffer_chain_linearize failed");
- vlib_buffer_free_one (vm, b[0]->buffer_pool_index);
+ vlib_buffer_free_one (vm, vlib_get_buffer_index (vm, b[0]));
continue;
}
}