dpdk: fix free of tx dropped packets 13/12513/1
authorFlorin Coras <fcoras@cisco.com>
Wed, 9 May 2018 18:42:54 +0000 (11:42 -0700)
committerFlorin Coras <fcoras@cisco.com>
Wed, 9 May 2018 18:42:54 +0000 (11:42 -0700)
Change-Id: I3669068f694614f8555b33bf0b703c41e45363ef
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/plugins/dpdk/device/device.c

index 044c872..61cd970 100644 (file)
@@ -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]);
       }
   }