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 43496A00BE; Mon, 13 Dec 2021 21:41:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDFA1406A2; Mon, 13 Dec 2021 21:41:54 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 73E0540042 for ; Mon, 13 Dec 2021 21:41:53 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BDElQLq030116 for ; Mon, 13 Dec 2021 12:41:51 -0800 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=L78RIHi69seAtAwGqyWSirBaMVlc1jYWLfgeirkdRic=; b=CjTXz68xJMy8qn1GfeZdZA3i1Evn1vvGbW5NQngmsm2+2VpQ9iCt1tPStfL02pasMp1Q l/bDlf6EEm+Y3NHOLHtxUE6115L32DjbhZTMKPEoWDdg3vzZG46k8CTDNb2e6Xv61a3J Wpjh1rOWIiJ5geujW059HGFAewYE/QF4OytzZbUcqYZ7cAs6mkht0H3Tfp3vAYnKcfSj X045wbkYiedn0haVpsmregEciHIF1Ir9f14isHCO/H3laNZZO1Y8H0ruEWJ9q1stzqCD of68NMINH3WtjrpWKOcqtjnIHoeG8KWZ6hLuUO70SBoZQC9V2a/TAO+nlK7Ollj401df /w== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3cx88ahhjm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 13 Dec 2021 12:41:51 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Dec 2021 12:41:50 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 13 Dec 2021 12:41:50 -0800 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176]) by maili.marvell.com (Postfix) with ESMTP id A7E9F5B6995; Mon, 13 Dec 2021 12:41:47 -0800 (PST) From: To: , Pavan Nikhilesh , "Shijith Thotton" CC: Subject: [PATCH] event/cnxk: fix qos devargs parsing Date: Tue, 14 Dec 2021 02:11:39 +0530 Message-ID: <20211213204140.5255-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 1Bzp7ke1qTYb7NAYSCe8eC3s3FGv8r2g X-Proofpoint-ORIG-GUID: 1Bzp7ke1qTYb7NAYSCe8eC3s3FGv8r2g X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-13_10,2021-12-13_01,2021-12-02_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Pavan Nikhilesh Fix qos devargs parsing using incorrect datatype for the structure elements. Fixes: 38c2e3240ba8 ("event/cnxk: add option to control SSO HWGRP QoS") Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_eventdev.c | 2 +- drivers/event/cnxk/cnxk_eventdev.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c index f7a5026250..6ad4e23e2b 100644 --- a/drivers/event/cnxk/cnxk_eventdev.c +++ b/drivers/event/cnxk/cnxk_eventdev.c @@ -482,7 +482,7 @@ static void parse_queue_param(char *value, void *opaque) { struct cnxk_sso_qos queue_qos = {0}; - uint8_t *val = (uint8_t *)&queue_qos; + uint16_t *val = (uint16_t *)&queue_qos; struct cnxk_sso_evdev *dev = opaque; char *tok = strtok(value, "-"); struct cnxk_sso_qos *old_ptr; diff --git a/drivers/event/cnxk/cnxk_eventdev.h b/drivers/event/cnxk/cnxk_eventdev.h index 305c6a3b9e..4652b58a84 100644 --- a/drivers/event/cnxk/cnxk_eventdev.h +++ b/drivers/event/cnxk/cnxk_eventdev.h @@ -74,9 +74,9 @@ typedef void (*cnxk_sso_hws_flush_t)(void *ws, uint8_t queue_id, uintptr_t base, struct cnxk_sso_qos { uint16_t queue; - uint8_t xaq_prcnt; - uint8_t taq_prcnt; - uint8_t iaq_prcnt; + uint16_t xaq_prcnt; + uint16_t taq_prcnt; + uint16_t iaq_prcnt; }; struct cnxk_sso_evdev { -- 2.17.1