Skip to content

Commit

Permalink
event/cnxk: fix Tx adapter enqueue return for CN10K
Browse files Browse the repository at this point in the history
[ upstream commit 7344c7d ]

The `rte_event_eth_tx_adapter_enqueue()` function expects driver layer
to return the total number of events successfully transmitted.
Fix cn10k driver returning the number of packets transmitted in a
event vector instead of number of events.

Fixes: 761a321 ("event/cnxk: support vectorized Tx event fast path")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
  • Loading branch information
PavanNikhilesh authored and kevintraynor committed Jun 24, 2022
1 parent 93b1138 commit f7b34f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/event/cnxk/cn10k_worker.h
Expand Up @@ -524,7 +524,7 @@ cn10k_sso_hws_event_tx(struct cn10k_sso_hws *ws, struct rte_event *ev,
ev->sched_type, ws->tx_base, txq_data, flags);
}
rte_mempool_put(rte_mempool_from_obj(ev->vec), ev->vec);
return (meta & 0xFFFF);
return 1;
}

m = ev->mbuf;
Expand Down

0 comments on commit f7b34f3

Please sign in to comment.