From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1070242EFF for ; Mon, 24 Jul 2023 10:37:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 044AF41138; Mon, 24 Jul 2023 10:37:03 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 04F8F40ED5; Mon, 24 Jul 2023 10:36:59 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36O8NCle015918; Mon, 24 Jul 2023 01:36:59 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=isa3edDGxDR+5aMPtzCV8NFZln2/PIwSdTIwimteypg=; b=Z2HeYQmGZXKLVnZXe+Xicj1li1SiQip7TkZTpzBEOzygLyUalSQbUzApy+5pKdTTEF25 k/lzWg7XTcqfQ6lgsnCS/qcRpLxf6VKwgga6n9Czu7szPjnouhpkxF7RTdWdrEA4KpBy hO4qZfe2VFgZESVvUYihoRojdrq0Q8+RU+K2kAsQFKBSQzv739cR6qHqiOgyN4kBtIlT uDHA3Lxacw1ginQGT1lYpopc5Si5qSV6t6LSOY7fLKNWzbO2k+Y2rGYmTPKfto5vqtaC B1BuvRJOLtql6pTrFAmmxb9f688WxfQEgzoVipuptqGC2tz8P6dZVgX2fuPUQAjel0p0 UQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3s1nra814v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 01:36:58 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 24 Jul 2023 01:36:57 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 24 Jul 2023 01:36:57 -0700 Received: from MININT-80QBFE8.corp.innovium.com (unknown [10.193.66.84]) by maili.marvell.com (Postfix) with ESMTP id 3A5303F7040; Mon, 24 Jul 2023 01:36:54 -0700 (PDT) From: To: , Pavan Nikhilesh , "Shijith Thotton" CC: , Subject: [PATCH] event/cnxk: fix incorrect getwork devargs parsing Date: Mon, 24 Jul 2023 14:06:44 +0530 Message-ID: <20230724083644.1712-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: t6Bwr7C5I1EwOuQLlKbztGymkIut31qI X-Proofpoint-GUID: t6Bwr7C5I1EwOuQLlKbztGymkIut31qI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-24_06,2023-07-20_01,2023-05-22_02 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Pavan Nikhilesh 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 --- drivers/event/cnxk/cnxk_eventdev.c | 2 +- drivers/event/cnxk/cnxk_eventdev.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c index 27883a3619..9c9192bd40 100644 --- a/drivers/event/cnxk/cnxk_eventdev.c +++ b/drivers/event/cnxk/cnxk_eventdev.c @@ -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); diff --git a/drivers/event/cnxk/cnxk_eventdev.h b/drivers/event/cnxk/cnxk_eventdev.h index 962e630256..9d95092669 100644 --- a/drivers/event/cnxk/cnxk_eventdev.h +++ b/drivers/event/cnxk/cnxk_eventdev.h @@ -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; -- 2.25.1