From: Ajit Khaparde Date: Thu, 3 Dec 2020 20:47:31 +0000 (-0800) Subject: net/bnxt: fix freeing mbuf X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=553347153d84c827b78c9700996906447d73e1fe;p=dpdk.git net/bnxt: fix freeing mbuf mbufs are being allocated using rte_mbuf_raw_alloc(). Use corresponding rte_mbuf_raw_free() to free mbuf. Fixes: 84799b868da9 ("net/bnxt: fix freeing mbuf") Cc: stable@dpdk.org Signed-off-by: Somnath Kotur Signed-off-by: Ajit Khaparde Acked-by: Lance Richardson --- diff --git a/drivers/net/bnxt/bnxt_reps.c b/drivers/net/bnxt/bnxt_reps.c index e5ba0909b9..167c46ad41 100644 --- a/drivers/net/bnxt/bnxt_reps.c +++ b/drivers/net/bnxt/bnxt_reps.c @@ -65,7 +65,7 @@ bnxt_vfr_recv(uint16_t port_id, uint16_t queue_id, struct rte_mbuf *mbuf) /* Representor Rx ring full, drop pkt */ vfr_bp->rx_drop_bytes[que] += mbuf->pkt_len; vfr_bp->rx_drop_pkts[que]++; - rte_pktmbuf_free(mbuf); + rte_mbuf_raw_free(mbuf); } return 0;