From: Florin Coras Date: Wed, 9 May 2018 18:42:54 +0000 (-0700) Subject: dpdk: fix free of tx dropped packets X-Git-Tag: v18.07-rc1~365 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=a194e145449fbb16faa962158f4f5af973b8c431;p=vpp.git dpdk: fix free of tx dropped packets Change-Id: I3669068f694614f8555b33bf0b703c41e45363ef Signed-off-by: Florin Coras --- diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c index 044c8728212..61cd97009c6 100644 --- a/src/plugins/dpdk/device/device.c +++ b/src/plugins/dpdk/device/device.c @@ -542,7 +542,7 @@ CLIB_MULTIARCH_FN (dpdk_interface_tx) (vlib_main_t * vm, n_left); while (n_left--) - rte_pktmbuf_free (ptd->mbufs[n_packets - n_left]); + rte_pktmbuf_free (ptd->mbufs[n_packets - n_left - 1]); } }