event/cnxk: set dequeue mode to prefetch with wait

Set default GetWork(dequeue) mode to prefetch with wait for
event.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
This commit is contained in:
Pavan Nikhilesh 2022-09-21 11:45:57 +05:30 committed by Jerin Jacob
parent e3c0049d16
commit 4b5ffa6a05
2 changed files with 4 additions and 2 deletions

View File

@ -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::

View File

@ -1136,6 +1136,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;