net/vmxnet3: fix queue size changes
authorChas Williams <ciwillia@brocade.com>
Wed, 15 Mar 2017 12:35:10 +0000 (08:35 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:41 +0000 (18:59 +0200)
commit04df93d1edac6e240911ac4210920b58d1c27dcd
treedfb02b96137d5fa923aaf0493c92ffe08f7235bf
parent2d3ebfeea9b2bd27265e8c1ff4152fcf44b7d217
net/vmxnet3: fix queue size changes

If the user reconfigures the queue size, then the previously allocated
memzone may potentially be too small.  Release the memzone when a queue
is released and allocate a new one each time a queue is setup.

While here convert to rte_eth_dma_zone_reserve() which does basically
the same things as the private function.

Fixes: dfaff37fc46d ("vmxnet3: import new vmxnet3 poll mode driver implementation")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <ciwillia@brocade.com>
Acked-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Shrikrishna Khare <skhare@vmware.com>
drivers/net/vmxnet3/vmxnet3_ring.h
drivers/net/vmxnet3/vmxnet3_rxtx.c