net/thunderx: fix memory alloc issue when changing ring size
authorKamil Rytarowski <kamil.rytarowski@caviumnetworks.com>
Mon, 4 Jul 2016 07:16:14 +0000 (12:46 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 5 Jul 2016 09:20:52 +0000 (11:20 +0200)
commitd1d861efef8ba6ddeec4560bff88b842288b7810
treec42bb2fb9f65f7cd96e52bae9330e9d9e7954867
parentba9eebbb60287100a331eccfefe860301993328e
net/thunderx: fix memory alloc issue when changing ring size

Allocate maximum supported hardware ring hardware descriptors
memory on the first rte_eth_dma_zone_reserve call in order to
get sufficient hardware ring buffer space on subsequent queue
setup request with different queue size.

Fixes: aa0d976e501d ("net/thunderx: add Rx queue setup and release")
Fixes: 3f3c6f9724a8 ("net/thunderx: add Tx queue setup and release")
Fixes: 7413feee662d ("net/thunderx: add device start/stop and close")

Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com>
Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/thunderx/base/nicvf_hw_defs.h
drivers/net/thunderx/nicvf_ethdev.c