summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-05-09 11:42:54 -0700
committerFlorin Coras <fcoras@cisco.com>2018-05-09 11:42:54 -0700
commita194e145449fbb16faa962158f4f5af973b8c431 (patch)
treed0d887d5830bdb2354ef3bd12e6e3a290437bc6b /src
parent4b089f27b3eda69be2fc8a9ef9f74d39cd00fc7f (diff)
dpdk: fix free of tx dropped packets
Change-Id: I3669068f694614f8555b33bf0b703c41e45363ef Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/device/device.c2
1 files changed, 1 insertions, 1 deletions
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]);
}
}