net/vmxnet3: fix receive queue memory leak
This addresses an mbuf leak in an error condition during packet
receive.
Fixes: dfaff37fc4
("vmxnet3: import new vmxnet3 poll mode driver implementation")
Cc: stable@dpdk.org
Signed-off-by: Mandeep Rohilla <mrohilla@brocade.com>
Acked-by: Shrikrishna Khare <skhare@vmware.com>
This commit is contained in:
parent
d2ed0889e3
commit
0bf3a2c07e
@ -800,6 +800,12 @@ vmxnet3_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
|
||||
(int)(rcd - (struct Vmxnet3_RxCompDesc *)
|
||||
rxq->comp_ring.base), rcd->rxdIdx);
|
||||
rte_pktmbuf_free_seg(rxm);
|
||||
if (rxq->start_seg) {
|
||||
struct rte_mbuf *start = rxq->start_seg;
|
||||
|
||||
rxq->start_seg = NULL;
|
||||
rte_pktmbuf_free(start);
|
||||
}
|
||||
goto rcd_done;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user