examples/l2fwd-crypto: fix packets array index
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 25 Apr 2017 15:32:36 +0000 (16:32 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 28 Apr 2017 15:46:19 +0000 (17:46 +0200)
Fixes: c0f87eb5252b ("cryptodev: change burst API to be crypto op oriented")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/l2fwd-crypto/main.c

index d7db55d..9492193 100644 (file)
@@ -788,7 +788,7 @@ l2fwd_main_loop(struct l2fwd_crypto_options *options)
                                                ops_burst, nb_rx) !=
                                                                nb_rx) {
                                        for (j = 0; j < nb_rx; j++)
-                                               rte_pktmbuf_free(pkts_burst[i]);
+                                               rte_pktmbuf_free(pkts_burst[j]);
 
                                        nb_rx = 0;
                                }