Skip to content

Commit

Permalink
event/cnxk: fix incorrect getwork devargs parsing
Browse files Browse the repository at this point in the history
CN10K can support up to three types of getwork, use parse value
function to parse the device arguments.

Fixes: 5fb6515 ("event/cnxk: fix SSO and TIM argument parsing")
Cc: stable@dpdk.org

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
PavanNikhilesh authored and ovsrobot committed Jul 24, 2023
1 parent 88489c0 commit 656660d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/event/cnxk/cnxk_eventdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/event/cnxk/cnxk_eventdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 656660d

Please sign in to comment.