net/bnxt: fix mbuf free when clearing Tx queue
authorLance Richardson <lance.richardson@broadcom.com>
Wed, 23 Oct 2019 14:27:35 +0000 (10:27 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:00:22 +0000 (19:00 +0200)
commit00932678c6bbbe922a2790e59fd68b34719f3171
tree34b4ad5c5c13714f50e07dc601b47048aab61b4c
parent2e542da709371ee51d61d74c9a1b357ad34ae13e
net/bnxt: fix mbuf free when clearing Tx queue

When freeing pending transmit mbufs, use rte_pktmbuf_free_seg()
instead of rte_pktmbuf_free(), otherwise linked mbufs may be freed
more than once.

Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code")
Cc: stable@dpdk.org
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
drivers/net/bnxt/bnxt_txq.c