event/octeontx2: fix Rx adapter capabilities

Message ID 20190819104652.797-1-pbhagavatula@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers
Series event/octeontx2: fix Rx adapter capabilities |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues
ci/iol-Compile-Testing success Compile Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS

Commit Message

Pavan Nikhilesh Bhagavatula Aug. 19, 2019, 10:46 a.m. UTC
  From: Pavan Nikhilesh <pbhagavatula@marvell.com>

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")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 drivers/event/octeontx2/otx2_evdev_adptr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Jerin Jacob Sept. 30, 2019, 6:12 a.m. UTC | #1
On Mon, Aug 19, 2019 at 4:17 PM <pbhagavatula@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
>
> 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")
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>


Applied to dpdk-next-eventdev/master. Thanks.


> ---
>  drivers/event/octeontx2/otx2_evdev_adptr.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/event/octeontx2/otx2_evdev_adptr.c b/drivers/event/octeontx2/otx2_evdev_adptr.c
> index b6e9f59d1..d8a06a593 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;
>  }
> --
> 2.22.0
>
  

Patch

diff --git a/drivers/event/octeontx2/otx2_evdev_adptr.c b/drivers/event/octeontx2/otx2_evdev_adptr.c
index b6e9f59d1..d8a06a593 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;
 }