DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] event/dpaa2: return correct number of event ports
@ 2018-01-03 16:44 Nipun Gupta
  2018-01-12 14:42 ` Hemant Agrawal
  0 siblings, 1 reply; 3+ messages in thread
From: Nipun Gupta @ 2018-01-03 16:44 UTC (permalink / raw)
  To: dev; +Cc: jerin.jacob, hemant.agrawal, Nipun Gupta

In the info get API we were returning number of event
ports as MAX number of LCORE's. After this change actual
number of event ports (i.e. number of DPIO's) is provided
in the info get API.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
---
This patch is dependent on https://dpdk.org/dev/patchwork/patch/32834/
as it uses the API exposed in the mentioned patch

 drivers/event/dpaa2/dpaa2_eventdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c
index 13e7122..5cbe1cf 100644
--- a/drivers/event/dpaa2/dpaa2_eventdev.c
+++ b/drivers/event/dpaa2/dpaa2_eventdev.c
@@ -326,7 +326,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp,
 		DPAA2_EVENT_MAX_QUEUE_PRIORITY_LEVELS;
 	dev_info->max_event_priority_levels =
 		DPAA2_EVENT_MAX_EVENT_PRIORITY_LEVELS;
-	dev_info->max_event_ports = RTE_MAX_LCORE;
+	dev_info->max_event_ports = rte_fslmc_get_device_count(DPAA2_IO);
 	dev_info->max_event_port_dequeue_depth =
 		DPAA2_EVENT_MAX_PORT_DEQUEUE_DEPTH;
 	dev_info->max_event_port_enqueue_depth =
-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] event/dpaa2: return correct number of event ports
  2018-01-03 16:44 [dpdk-dev] [PATCH] event/dpaa2: return correct number of event ports Nipun Gupta
@ 2018-01-12 14:42 ` Hemant Agrawal
  2018-01-18  7:04   ` Jerin Jacob
  0 siblings, 1 reply; 3+ messages in thread
From: Hemant Agrawal @ 2018-01-12 14:42 UTC (permalink / raw)
  To: Nipun Gupta, dev; +Cc: jerin.jacob

On 1/3/2018 10:14 PM, Nipun Gupta wrote:
> In the info get API we were returning number of event
> ports as MAX number of LCORE's. After this change actual
> number of event ports (i.e. number of DPIO's) is provided
> in the info get API.
>
> Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
> ---
> This patch is dependent on https://dpdk.org/dev/patchwork/patch/32834/
> as it uses the API exposed in the mentioned patch
>
>  drivers/event/dpaa2/dpaa2_eventdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c
> index 13e7122..5cbe1cf 100644
> --- a/drivers/event/dpaa2/dpaa2_eventdev.c
> +++ b/drivers/event/dpaa2/dpaa2_eventdev.c
> @@ -326,7 +326,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp,
>  		DPAA2_EVENT_MAX_QUEUE_PRIORITY_LEVELS;
>  	dev_info->max_event_priority_levels =
>  		DPAA2_EVENT_MAX_EVENT_PRIORITY_LEVELS;
> -	dev_info->max_event_ports = RTE_MAX_LCORE;
> +	dev_info->max_event_ports = rte_fslmc_get_device_count(DPAA2_IO);
>  	dev_info->max_event_port_dequeue_depth =
>  		DPAA2_EVENT_MAX_PORT_DEQUEUE_DEPTH;
>  	dev_info->max_event_port_enqueue_depth =
>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] event/dpaa2: return correct number of event ports
  2018-01-12 14:42 ` Hemant Agrawal
@ 2018-01-18  7:04   ` Jerin Jacob
  0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2018-01-18  7:04 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: Nipun Gupta, dev

-----Original Message-----
> Date: Fri, 12 Jan 2018 20:12:27 +0530
> From: Hemant Agrawal <hemant.agrawal@nxp.com>
> To: Nipun Gupta <nipun.gupta@nxp.com>, dev@dpdk.org
> CC: jerin.jacob@caviumnetworks.com
> Subject: Re: [PATCH] event/dpaa2: return correct number of event ports
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
>  Thunderbird/45.8.0
> 
> On 1/3/2018 10:14 PM, Nipun Gupta wrote:
> > In the info get API we were returning number of event
> > ports as MAX number of LCORE's. After this change actual
> > number of event ports (i.e. number of DPIO's) is provided
> > in the info get API.
> > 
> > Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
> > ---
> > This patch is dependent on https://dpdk.org/dev/patchwork/patch/32834/
> > as it uses the API exposed in the mentioned patch
> > 
> >  drivers/event/dpaa2/dpaa2_eventdev.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c
> > index 13e7122..5cbe1cf 100644
> > --- a/drivers/event/dpaa2/dpaa2_eventdev.c
> > +++ b/drivers/event/dpaa2/dpaa2_eventdev.c
> > @@ -326,7 +326,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp,
> >  		DPAA2_EVENT_MAX_QUEUE_PRIORITY_LEVELS;
> >  	dev_info->max_event_priority_levels =
> >  		DPAA2_EVENT_MAX_EVENT_PRIORITY_LEVELS;
> > -	dev_info->max_event_ports = RTE_MAX_LCORE;
> > +	dev_info->max_event_ports = rte_fslmc_get_device_count(DPAA2_IO);
> >  	dev_info->max_event_port_dequeue_depth =
> >  		DPAA2_EVENT_MAX_PORT_DEQUEUE_DEPTH;
> >  	dev_info->max_event_port_enqueue_depth =
> > 
> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-18  7:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-03 16:44 [dpdk-dev] [PATCH] event/dpaa2: return correct number of event ports Nipun Gupta
2018-01-12 14:42 ` Hemant Agrawal
2018-01-18  7:04   ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).