net/netvsc: fix ring freeing
The internal receive ring should be freed with rte_ring_free not rte_free. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
This commit is contained in:
parent
94421f9e76
commit
ec3242685a
@ -774,7 +774,7 @@ hn_dev_rx_queue_setup(struct rte_eth_dev *dev,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
rte_free(rxq->rx_ring);
|
rte_ring_free(rxq->rx_ring);
|
||||||
rte_free(rxq->event_buf);
|
rte_free(rxq->event_buf);
|
||||||
rte_free(rxq);
|
rte_free(rxq);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
@ -790,7 +790,7 @@ hn_dev_rx_queue_release(void *arg)
|
|||||||
if (!rxq)
|
if (!rxq)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rte_free(rxq->rx_ring);
|
rte_ring_free(rxq->rx_ring);
|
||||||
rxq->rx_ring = NULL;
|
rxq->rx_ring = NULL;
|
||||||
rxq->mb_pool = NULL;
|
rxq->mb_pool = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user