From patchwork Mon Nov 28 09:54:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 120199 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7CFC2A00C3; Mon, 28 Nov 2022 10:55:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B7BD42BB1; Mon, 28 Nov 2022 10:55:00 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 6877142BAC for ; Mon, 28 Nov 2022 10:54:59 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AS8OHhU032355 for ; Mon, 28 Nov 2022 01:54:58 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=KhUHQFlQEiP4NFFcGWIXak5MMilZwt9GimFQFU1R9Q4=; b=h6EsY1dnkz5DmprcnuZV0c4IwcMPDKbU5KO1E7c5ldo2JhPXA517hjDB50fVYMjd/wM8 QcFDOBaHySnmLtR0FRdBEIKyTKGyct8Z2fNV/AfxTBRbei43Nqaik9WBqjsoqx+agwHW 6/B4qu4nJst5aNZqSsgcZQvhb9YzOzInS03UnGZvCSCGmhGNfT2ZPOP9eeU7hY1lpkIC UrMHhKYZJY4X5+Po/UshNfnC0Qjx+/QuXocM/9/u0XDsrvpAW6Gc4tEmVbQ0gwkJl6U5 E+iUMyGaP8e/IvFe5Rf47HDxLEys+JVKKolz5oxIoU4Wn4zPotTig5pHH5q05grlBYfG UQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3m3k6w5344-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 28 Nov 2022 01:54:58 -0800 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.2; Mon, 28 Nov 2022 01:54:56 -0800 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.2 via Frontend Transport; Mon, 28 Nov 2022 01:54:56 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 7311A3F704A; Mon, 28 Nov 2022 01:54:54 -0800 (PST) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Subject: [PATCH 03/11] common/cnxk: set default SQ TC value Date: Mon, 28 Nov 2022 15:24:34 +0530 Message-ID: <20221128095442.3185112-3-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221128095442.3185112-1-ndabilpuram@marvell.com> References: <20221128095442.3185112-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: h1-HtXeWuDHUTDIoL9agXfgI2UYLfdbC X-Proofpoint-ORIG-GUID: h1-HtXeWuDHUTDIoL9agXfgI2UYLfdbC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-28_07,2022-11-25_01,2022-06-22_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: Satha Rao Zero is valid TC, initialize SQ TC value to ROC_NIX_PFC_CLASS_INVALID. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c index 8a84a34bef..0dd3c8d4df 100644 --- a/drivers/common/cnxk/roc_nix_queue.c +++ b/drivers/common/cnxk/roc_nix_queue.c @@ -1235,6 +1235,7 @@ roc_nix_sq_init(struct roc_nix *roc_nix, struct roc_nix_sq *sq) return NIX_ERR_QUEUE_INVALID_RANGE; sq->roc_nix = roc_nix; + sq->tc = ROC_NIX_PFC_CLASS_INVALID; /* * Allocate memory for flow control updates from HW. * Alloc one cache line, so that fits all FC_STYPE modes.