> -----Original Message-----
> From: dev <[email protected]> On Behalf Of
> [email protected]
> Sent: Tuesday, September 24, 2019 3:12 PM
> To: [email protected]; [email protected]; Akhil Goyal
> <[email protected]>; Marko Kovacevic <[email protected]>;
> Ori Kam <[email protected]>; Radu Nicolau <[email protected]>;
> Tomasz Kantecki <[email protected]>; Sunil Kumar Kori
> <[email protected]>; Pavan Nikhilesh <[email protected]>
> Cc: [email protected]
> Subject: [dpdk-dev] [PATCH v4 08/10] examples/l2fwd-event: add eventdev
> main loop
> 
> From: Pavan Nikhilesh <[email protected]>
> 
> Add event dev main loop based on enabled l2fwd options and eventdev
> capabilities.
> 
> Signed-off-by: Pavan Nikhilesh <[email protected]>
> ---

<snip>

> +             if (flags & L2FWD_EVENT_TX_DIRECT) {
> +                     rte_event_eth_tx_adapter_txq_set(mbuf, 0);
> +                     while
> (!rte_event_eth_tx_adapter_enqueue(event_d_id,
> +                                                             port_id,
> +                                                             &ev, 1) &&
> +                                     !*done)
> +                             ;
> +             }

In the TX direct mode we can send packets directly to the ethernet device using 
ethdev
API's. This will save unnecessary indirections and event unfolds within the 
driver.

> +
> +             if (timer_period > 0)
> +                     __atomic_fetch_add(&eventdev_rsrc->stats[mbuf-
> >port].tx,
> +                                        1, __ATOMIC_RELAXED);
> +     }
> +}

Reply via email to