dpdk: fix rte mempool for rx_queues 40/31540/2
authorVladimir Ratnikov <vratnikov@netgate.com>
Fri, 5 Mar 2021 09:22:59 +0000 (04:22 -0500)
committerDamjan Marion <dmarion@me.com>
Fri, 5 Mar 2021 10:50:24 +0000 (10:50 +0000)
commit60c397711a4d0f694491945ccb64d3da3049557a
tree49ae2577850a95053c1c450d7b0c19554999615e
parentf16e9a5507c33642ac04d4b1a8712f8fac238828
dpdk: fix rte mempool for rx_queues

Change dpdk_ops_vpp_get_count() return value from 0
 to actual available pool size;
For some drivers/envs(azure,vmbus) rx_queue size
 will be zero and the only 1 element will be created
(0 + 1)
When more than one packet will arrive, it will cause
SEGFAULT

Type: fix
Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com>
Change-Id: Ibe7da6acc91200bec33d99f580044456d8984110
src/plugins/dpdk/buffer.c