From: Pavan Nikhilesh <pbhagavat...@marvell.com> Set default GetWork(dequeue) mode to prefetch with wait for event.
Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com> --- doc/guides/eventdevs/cnxk.rst | 5 +++-- drivers/event/cnxk/cn10k_eventdev.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/guides/eventdevs/cnxk.rst b/doc/guides/eventdevs/cnxk.rst index 8537f6257e..69eabf7f22 100644 --- a/doc/guides/eventdevs/cnxk.rst +++ b/doc/guides/eventdevs/cnxk.rst @@ -79,8 +79,9 @@ Runtime Config Options - ``CN10K Getwork mode`` - CN10K supports multiple getwork prefetch modes, by default the prefetch - mode is set to none. + CN10K supports three getwork prefetch modes no prefetch[0], prefetch + immediately[1] and delayed prefetch on forward progress event[2]. + The default getwork mode is 2. For example:: diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c index 4a2554a8eb..6dea550b35 100644 --- a/drivers/event/cnxk/cn10k_eventdev.c +++ b/drivers/event/cnxk/cn10k_eventdev.c @@ -981,6 +981,7 @@ cn10k_sso_init(struct rte_eventdev *event_dev) return 0; } + dev->gw_mode = CN10K_GW_MODE_PREF_WFE; rc = cnxk_sso_init(event_dev); if (rc < 0) return rc; -- 2.25.1