numam-dpdk/drivers/net/vmxnet3
Yong Wang 8618d19b52 net/vmxnet3: reallocate shared memzone on re-config
When adding a DPDK port to ovs-vswitchd with DPDK, the vmxnet3 device
fails to activate due to mismatched magic number.  This failure causes
following operations to run: start the port, stop the port,
reconfigure and re-start the port.

During reconfigure, if there is an existing memzone, driver will reuse
it. But reconfigure may request different number of Tx/Rx queues.
This results in a memzone with wrong size and potential invalid memory
access.

To fix this, free the memzone if found and reserve a new one.

Signed-off-by: Yong Wang <yongwang@vmware.com>
Reviewed-by: Guolin Yang <gyang@vmware.com>
Reviewed-by: Daniele Di Proietto <ddiproietto@vmware.com>
Tested-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2016-09-30 12:27:18 +02: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 net/vmxnet3: reallocate shared memzone on re-config 2016-09-30 12:27:18 +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: coding style changes 2016-09-30 12:27:18 +02:00