eventdev: fix eth Rx adapter hotplug incompatibility
authorNikhil Rao <nikhil.rao@intel.com>
Thu, 6 Sep 2018 09:11:42 +0000 (14:41 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 Oct 2018 14:47:56 +0000 (16:47 +0200)
commitd7b5f102c4781bd2e9a952243eb59cffe135b01c
treeed9c855346d9d01b75616bf39c7e1ac6b064010b
parent4ab57b042e7c87a3aaadd97fb2c59e62e9f94672
eventdev: fix eth Rx adapter hotplug incompatibility

Use RTE_MAX_ETHPORTS instead of rte_eth_dev_count_total()
when allocating eth Rx adapter's per-eth device data structure
to account for hotplugged devices.

Fixes: 9c38b704d280 ("eventdev: add eth Rx adapter implementation")
Cc: stable@dpdk.org
Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eventdev/rte_event_eth_rx_adapter.c
lib/librte_eventdev/rte_event_eth_rx_adapter.h