summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@marvell.com>2019-08-19 16:16:51 +0530
committerJerin Jacob <jerinj@marvell.com>2019-10-05 15:39:31 +0200
commit26351696ffe7e01bf423d904f14ee2e7dc461c87 (patch)
treeb57f54862a0971a685471906103f7757f4688cb3 /drivers
parentd02c470c87976def34bae0307736ecb9c8cac9d8 (diff)
downloaddpdk-26351696ffe7e01bf423d904f14ee2e7dc461c87.zip
dpdk-26351696ffe7e01bf423d904f14ee2e7dc461c87.tar.gz
dpdk-26351696ffe7e01bf423d904f14ee2e7dc461c87.tar.xz
event/octeontx2: fix Rx adapter capabilities
Octeontx2 SSO co-processor allows multiple ethernet device Rx queues connected to a single Event device queue. Fix the Rx adapter capabilities to allow application to configure Rx queueus in n:1 ratio to event queues by adding `RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ` as a capability. Fixes: 37720fc1fba8 ("event/octeontx2: add Rx adapter") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/event/octeontx2/otx2_evdev_adptr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/event/octeontx2/otx2_evdev_adptr.c b/drivers/event/octeontx2/otx2_evdev_adptr.c
index b6e9f59..d8a06a5 100644
--- a/drivers/event/octeontx2/otx2_evdev_adptr.c
+++ b/drivers/event/octeontx2/otx2_evdev_adptr.c
@@ -15,7 +15,8 @@ otx2_sso_rx_adapter_caps_get(const struct rte_eventdev *event_dev,
if (rc)
*caps = RTE_EVENT_ETH_RX_ADAPTER_SW_CAP;
else
- *caps = RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT;
+ *caps = RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT |
+ RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ;
return 0;
}