Skip to content

Commit

Permalink
examples/l3fwd: fix Rx burst size for event mode
Browse files Browse the repository at this point in the history
[ upstream commit 2e94304 ]

While dequeuing the packets from the event device, burst size
is provided in the API. This was not getting properly
configured in the application. This patch correctly configures
the burst size.

Fixes: aaf58cb ("examples/l3fwd: add event port and queue setup")

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Sunil Kumar Kori <skori@marvell.com>
  • Loading branch information
nipungupta87 authored and bluca committed Feb 14, 2022
1 parent 6bfaf85 commit 19524c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/l3fwd/l3fwd_event_internal_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ l3fwd_event_port_setup_internal_port(void)
event_p_conf.event_port_cfg |=
RTE_EVENT_PORT_CFG_DISABLE_IMPL_REL;

evt_rsrc->deq_depth = def_p_conf.dequeue_depth;

for (event_p_id = 0; event_p_id < evt_rsrc->evp.nb_ports;
event_p_id++) {
ret = rte_event_port_setup(event_d_id, event_p_id,
Expand Down

0 comments on commit 19524c9

Please sign in to comment.