net/octeontx: fix failures when available ports > queues
authorAnoob Joseph <anoob.joseph@caviumnetworks.com>
Wed, 14 Nov 2018 09:22:03 +0000 (09:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Nov 2018 11:03:54 +0000 (12:03 +0100)
commit7efd5202f7fecc3f995cbf214cdae834e7a7494f
tree57fe547830b388712a7d1466cb5625718c95b65a
parent778677dcb20cf29d966f239972b043f0640f55ef
net/octeontx: fix failures when available ports > queues

When eth_octeontx is initialized before event_octeontx, eth_octeontx
would initiate setting up of the event device with the max ports and
queues available. If number of ports is more than the number of queues,
some ports would be left unused when the ports and queues are mapped
1:1. But even in that case the ports need to be setup, or otherwise it
would lead to a segmentation fault when event device is started.

Fixes: f7be70e5130e ("net/octeontx: add net device probe and remove")
Cc: stable@dpdk.org
Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/octeontx/octeontx_ethdev.c