DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  [PATCH] eventdev: use new event enqueue in Rx adapter
@ 2017-10-12 18:45 Pavan Nikhilesh
  2017-10-14  2:48 ` Rao, Nikhil
  0 siblings, 1 reply; 3+ messages in thread
From: Pavan Nikhilesh @ 2017-10-12 18:45 UTC (permalink / raw)
  To: nikhil.rao, jerin.jacob; +Cc: dev, Pavan Nikhilesh

When event Rx adapter uses software based packet transfer, event op is
always RTE_EVENT_OP_NEW.
By using rte_event_enqueue_new_burst API the underlying event devices
driver can use it as a hint to optimize enqueue operation if possible.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
 lib/librte_eventdev/rte_event_eth_rx_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
index 1e42dde..fcba18d 100644
--- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
@@ -392,7 +392,7 @@ flush_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter)
 	    &rx_adapter->event_enqueue_buffer;
 	struct rte_event_eth_rx_adapter_stats *stats = &rx_adapter->stats;
 
-	uint16_t n = rte_event_enqueue_burst(rx_adapter->eventdev_id,
+	uint16_t n = rte_event_enqueue_new_burst(rx_adapter->eventdev_id,
 					rx_adapter->event_port_id,
 					buf->events,
 					buf->count);
-- 
2.7.4

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

* Re: [dpdk-dev] [PATCH] eventdev: use new event enqueue in Rx adapter
  2017-10-12 18:45 [dpdk-dev] [PATCH] eventdev: use new event enqueue in Rx adapter Pavan Nikhilesh
@ 2017-10-14  2:48 ` Rao, Nikhil
  2017-10-16 11:35   ` Jerin Jacob
  0 siblings, 1 reply; 3+ messages in thread
From: Rao, Nikhil @ 2017-10-14  2:48 UTC (permalink / raw)
  To: Pavan Nikhilesh, jerin.jacob; +Cc: dev

On 10/13/2017 12:15 AM, Pavan Nikhilesh wrote:
> When event Rx adapter uses software based packet transfer, event op is
> always RTE_EVENT_OP_NEW.
> By using rte_event_enqueue_new_burst API the underlying event devices
> driver can use it as a hint to optimize enqueue operation if possible.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
> ---
>   lib/librte_eventdev/rte_event_eth_rx_adapter.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
> index 1e42dde..fcba18d 100644
> --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c
> +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
> @@ -392,7 +392,7 @@ flush_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter)
>   	    &rx_adapter->event_enqueue_buffer;
>   	struct rte_event_eth_rx_adapter_stats *stats = &rx_adapter->stats;
>   
> -	uint16_t n = rte_event_enqueue_burst(rx_adapter->eventdev_id,
> +	uint16_t n = rte_event_enqueue_new_burst(rx_adapter->eventdev_id,
>   					rx_adapter->event_port_id,
>   					buf->events,
>   					buf->count);
> 

Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>

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

* Re: [dpdk-dev] [PATCH] eventdev: use new event enqueue in Rx adapter
  2017-10-14  2:48 ` Rao, Nikhil
@ 2017-10-16 11:35   ` Jerin Jacob
  0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2017-10-16 11:35 UTC (permalink / raw)
  To: Rao, Nikhil; +Cc: Pavan Nikhilesh, dev

-----Original Message-----
> Date: Sat, 14 Oct 2017 08:18:42 +0530
> From: "Rao, Nikhil" <nikhil.rao@intel.com>
> To: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>,
>  jerin.jacob@caviumnetworks.com
> CC: dev@dpdk.org
> Subject: Re: [PATCH] eventdev: use new event enqueue in Rx adapter
> User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
>  Thunderbird/52.3.0
> 
> On 10/13/2017 12:15 AM, Pavan Nikhilesh wrote:
> > When event Rx adapter uses software based packet transfer, event op is
> > always RTE_EVENT_OP_NEW.
> > By using rte_event_enqueue_new_burst API the underlying event devices
> > driver can use it as a hint to optimize enqueue operation if possible.
> > 
> > Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
> > ---
> >   lib/librte_eventdev/rte_event_eth_rx_adapter.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
> > index 1e42dde..fcba18d 100644
> > --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c
> > +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c
> > @@ -392,7 +392,7 @@ flush_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter)
> >   	    &rx_adapter->event_enqueue_buffer;
> >   	struct rte_event_eth_rx_adapter_stats *stats = &rx_adapter->stats;
> > -	uint16_t n = rte_event_enqueue_burst(rx_adapter->eventdev_id,
> > +	uint16_t n = rte_event_enqueue_new_burst(rx_adapter->eventdev_id,
> >   					rx_adapter->event_port_id,
> >   					buf->events,
> >   					buf->count);
> > 
> 
> Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>

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

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

end of thread, other threads:[~2017-10-16 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-12 18:45 [dpdk-dev] [PATCH] eventdev: use new event enqueue in Rx adapter Pavan Nikhilesh
2017-10-14  2:48 ` Rao, Nikhil
2017-10-16 11:35   ` 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).