numam-dpdk/drivers/net/vmxnet3
Yong Wang 646edddf07 net/vmxnet3: fix mbuf release on reset/stop
During device reset/stop, vmxnet3 releases all mbufs in tx and
rx cmd ring.  For rx, we should go over all ring descriptors and
free using rte_pktmbuf_free_seg() instead of rte_pktmbuf_free()
as the metadata of the mbuf might not be properly initialized
(initialization after mempool creation is done in the rx routine)
and the mbuf should always be a single-segment one when populated.
For tx, we can use the existing way as mbuf, if any, will be a
valid one stashed in the eop.

Fixes: dfaff37fc4 ("vmxnet3: import new vmxnet3 poll mode driver implementation")

Signed-off-by: Yong Wang <yongwang@vmware.com>
2016-11-07 21:15:23 +01:00
..
base vmxnet3: clean up typos and unused code 2016-03-16 19:05:46 +01:00
Makefile mk: fix cross-compilation 2016-06-07 10:02:39 +02:00
rte_pmd_vmxnet3_version.map vmxnet3: move to drivers/net/ 2015-05-22 16:06:23 +02:00
vmxnet3_ethdev.c drivers: rename register macro prefix 2016-10-14 01:49:32 +02:00
vmxnet3_ethdev.h net/vmxnet3: coding style changes 2016-09-30 12:27:18 +02:00
vmxnet3_logs.h vmxnet3: move to drivers/net/ 2015-05-22 16:06:23 +02:00
vmxnet3_ring.h net/vmxnet3: coding style changes 2016-09-30 12:27:18 +02:00
vmxnet3_rxtx.c net/vmxnet3: fix mbuf release on reset/stop 2016-11-07 21:15:23 +01:00