numam-dpdk/drivers/net
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
..
af_packet eal: remove unused PMD types 2016-10-03 16:33:51 +02:00
bnx2x pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
bnxt pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
bonding eal: remove unused PMD types 2016-10-03 16:33:51 +02:00
cxgbe pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
e1000 pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
ena pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
enic pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
fm10k net: fix clang build 2016-09-28 02:18:39 +02:00
i40e net/i40e: fix mbuf leak during Rx queue release 2016-09-30 12:27:18 +02:00
ixgbe net/ixgbe: fix mbuf leak during Rx queue release 2016-09-30 12:27:18 +02:00
mlx4 pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
mlx5 pci: create device list and fallback on its members 2016-10-03 16:34:03 +02:00
mpipe eal: remove unused PMD types 2016-10-03 16:33:51 +02:00
nfp pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
null eal: remove unused PMD types 2016-10-03 16:33:51 +02:00
pcap eal: remove unused PMD types 2016-10-03 16:33:51 +02:00
qede pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
ring eal: remove unused PMD types 2016-10-03 16:33:51 +02:00
szedata2 pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
thunderx pci: inherit common driver in PCI driver 2016-10-03 16:33:55 +02:00
vhost net/vhost: add extended statistics 2016-09-29 15:08:08 +02:00
virtio net/virtio: add NEON based Rx handler 2016-09-28 02:18:39 +02:00
vmxnet3 net/vmxnet3: reallocate shared memzone on re-config 2016-09-30 12:27:18 +02:00
xenvirt eal: remove unused PMD types 2016-10-03 16:33:51 +02:00
Makefile net/thunderx: add PMD skeleton 2016-06-20 17:21:54 +02:00