event/cnxk: fix incorrect getwork devargs parsing
Checks
Commit Message
From: Pavan Nikhilesh <pbhagavatula@marvell.com>
CN10K can support up to three types of getwork, use parse value
function to parse the device arguments.
Fixes: 5fb651552c79 ("event/cnxk: fix SSO and TIM argument parsing")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
drivers/event/cnxk/cnxk_eventdev.c | 2 +-
drivers/event/cnxk/cnxk_eventdev.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
On Mon, Jul 24, 2023 at 2:07 PM <pbhagavatula@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
>
> CN10K can support up to three types of getwork, use parse value
> function to parse the device arguments.
>
> Fixes: 5fb651552c79 ("event/cnxk: fix SSO and TIM argument parsing")
> Cc: stable@dpdk.org
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Updated the git commit as follows and applied to
dpdk-next-net-eventdev/for-main. Thanks
event/cnxk: fix incorrect getwork mode devargs parsing
CN10K can support up to three types of getwork modes, use parse value
function to parse the device arguments.
Fixes: 5fb651552c79 ("event/cnxk: fix SSO and TIM argument parsing")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
@@ -612,7 +612,7 @@ cnxk_sso_parse_devargs(struct cnxk_sso_evdev *dev, struct rte_devargs *devargs)
&dev->force_ena_bp);
rte_kvargs_process(kvlist, CN9K_SSO_SINGLE_WS, &parse_kvargs_flag,
&single_ws);
- rte_kvargs_process(kvlist, CN10K_SSO_GW_MODE, &parse_kvargs_flag,
+ rte_kvargs_process(kvlist, CN10K_SSO_GW_MODE, &parse_kvargs_value,
&dev->gw_mode);
rte_kvargs_process(kvlist, CN10K_SSO_STASH,
&parse_sso_kvargs_stash_dict, dev);
@@ -119,7 +119,7 @@ struct cnxk_sso_evdev {
/* CN9K */
uint8_t dual_ws;
/* CN10K */
- uint8_t gw_mode;
+ uint32_t gw_mode;
uint16_t stash_cnt;
struct cnxk_sso_stash *stash_parse_data;
} __rte_cache_aligned;