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 9C24AA054F; Tue, 21 Jun 2022 14:45:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34F484069C; Tue, 21 Jun 2022 14:45:42 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 7A39E40151 for ; Tue, 21 Jun 2022 14:45:40 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25L8SC6w005371 for ; Tue, 21 Jun 2022 05:45:39 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3gse7nkhtp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Jun 2022 05:45:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m7TMULBVS9q73qUVUP2hMGHEKaYvkLobIE1GdCtdf+dx72VVm6/qjZ2P5yaPvNDB7X+1vRLUnbGIC8ufId+77Uj9ZAYkZ2IF9DTZ+rfw3E3N2t7iobDhfd0blGY7kTo68NbgKxz6gnBM6BpXz/8BfeC5Imea6d7S3amd8rWUDz2USFaT8x1AiUqtGvx8ucfvAkbqkyw4msIofxOm1MseMaGM0AJ0JdWWNYjkKoYKObAdZYtZDaHb07oAQ5p9JlMomOCg6OwbP/PJK/BgN6PzTrSq/vYSypJ9nPbmJ3K87A3FiSU3f/8od88U6Nt+vkphasC5O0t2kEqiFe4HlPQxUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nb9orjCCvprEVH0ypdSSi456BlQ2NsQnoAmG0ix7+lU=; b=c9XAoBNBO+WiRvwnzCV4dEbuJ4Tn1BslqvnPytN2AiggrlhBAy6AovwHf9qrCw3uH9kyURVOU9DEwRB+hIQ2aMV76Nz8c8S7VcaH96+EPgf5DGVYPo+iwn0C9nVczd/H+jDij3BTxZAY7J8m2KtgsrzrQT8CxRXOosN7frFFfuqndu6QgtLGPeFGIv4LQZGoL+AYT76gGNhJHtFi9pFugLlTboqFUH0yC+02aLrYNXtuZGQ1jQ4bcaJkRs9izx0MC4+GOdYRJm4LhsVOu1AVkRFcJ1VyhZnrstI/w45tS63xBB9kf5T2J8Nd1t/TKinSeN86M1x9/oYfWo+KStgh3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nb9orjCCvprEVH0ypdSSi456BlQ2NsQnoAmG0ix7+lU=; b=gKDIfZEDZK0WevEmY1dkcICjrEn4qfpdN6t1BcnuLi+bRpfBJ7Hm0eqb3FjaSTcGf7L9S85oVwhbtJ6u6hQ6Kh/Y/TMG06xXoEOUnPDQLYLF/fnebbquSu3QrNn5jYazlSwJqguIRruI9EyijRdcfscNw5VmdZxVdIjnKxzZw8Y= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by DM5PR1801MB1900.namprd18.prod.outlook.com (2603:10b6:4:63::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.22; Tue, 21 Jun 2022 12:45:37 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::bc33:1fb9:5d70:8c5]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::bc33:1fb9:5d70:8c5%9]) with mapi id 15.20.5353.022; Tue, 21 Jun 2022 12:45:36 +0000 From: Akhil Goyal To: Anoob Joseph , Jerin Jacob Kollanukkaran CC: Tejasree Kondoj , Shijith Thotton , "dev@dpdk.org" Subject: RE: [PATCH] crypto/cnxk: add CPT hardware flow control checks Thread-Topic: [PATCH] crypto/cnxk: add CPT hardware flow control checks Thread-Index: AQHYhJ0pKvWWUZ6Ad0SfYmlXmfC17a1ZzoNA Date: Tue, 21 Jun 2022 12:45:36 +0000 Message-ID: References: <20220620115903.2485-1-anoobj@marvell.com> In-Reply-To: <20220620115903.2485-1-anoobj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ffe882d6-efb7-495c-c5a6-08da5383f090 x-ms-traffictypediagnostic: DM5PR1801MB1900:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QKxGWhUlOClI+HsqZFFWPQFDhpTCTZaopGA3gxdp7Lh/slyiE6uSYpsy8mpbM+qm+osgGYW+pjPSYCz8NfaIixul+fBOtO/fMoVmq+l58GDNsWIdFwIO3M+oRKxoMlWv0x+n/8dV/ZxpUuIdSfM7zOd+EQ9oWR8Ag0uNadtTpVlhsBvD87ibuucxMHuR/dC0Bayx2wRVHSSDg1BUsdqu5qNiIVd2wVMv8tKRAYPbh7bykMVwld4cuc3ZK2RcplYFH22i2UqqWxMv82rCrcQgV7rNRzWLVDtE+renLb6t9DGCaA6ist8eM1B2n+zygMgNzlNHjlCPcNdFzRL27gE2krQP9/ecost3KK/29wIwYEP7TJ11WwN5KOpPaggaBmrngyCO8rktcqqJzbbVyYkznje/klAwVqU3LIjd2+JaPL1j914K41Un0ilDzGhw68y7SQPzy4PdDOdITLO0yvfNtREDySaOWNnXEllMPnqQdvZz2fRFo4VxOqgTpm5RLcYnABvkEvYHdBz4syBBeXlPDiS8vp6eb0wgQdAIkq6kLGEe1lFoF1vVf5YZFnff4yliszLvolDPjEcn6kkXdraaDUXLZGiz//aEOnCatLONAc4nbSdxhcte4KbuWkX7Ir5SvmAad7Jaoa6Du13zFQh8eOZIVzKvc9vZXJ7rBf/a37ot9H3Qt8rAVciPiizTti6rm3IEZUnrCboCEoFS1zCymg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(39860400002)(396003)(346002)(376002)(136003)(54906003)(76116006)(66556008)(66946007)(4326008)(6636002)(66476007)(8676002)(6506007)(66446008)(9686003)(55236004)(110136005)(86362001)(316002)(71200400001)(64756008)(26005)(7696005)(478600001)(55016003)(122000001)(33656002)(38070700005)(41300700001)(186003)(38100700002)(2906002)(5660300002)(52536014)(8936002)(83380400001)(4744005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DdqpaherapcKFUQpNbLL0CuKsO1YtU65r7xh89GvTuklKEWgabZIWfDDrmNg?= =?us-ascii?Q?hwvrVEawMTXQugOA3LeviAKr68oiomutigGYjNYV7qLUPTI9vsoC2HDf9E9B?= =?us-ascii?Q?pBPnR9JjJWM6jmRJbO38+RqR2cpjGItu36xTRmSoG9SFY+G6BXzJvWh2Qiql?= =?us-ascii?Q?H+1vSXMuQ9UCnufrut7jYcSwwpMUas4EBx03DtaTMHWfA/qUN4VYXZl56sai?= =?us-asc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p3O41sIGmhSIbUgS1Eq8irh/bfrI81Y4Zjl?= =?us-ascii?Q?j4q+EtJJIuQBwBo3AyLHrHAfbdUqaAbub8L18KWXq7HWrlupxJRmRQqZUthz?= =?us-ascii?Q?PqRtZ0E7kyd42SNLdvTBtsXG/89H9pCEQ0QJ/W4WUqGUrr3uCbZ/1IvN0OA2?= =?us-ascii?Q?b1iPbefHHrh2RRvk0SW6WORZnUGXixLs576qqJmo0jMlH2OYaNKUHsHjJlsq?= =?us-ascii?Q?fZxcsEbtYzN9ZJYz91Qs+1UH/vfG+ThRRPOS7Budg+sdIInSlwpMB4AbbaTq?= =?us-ascii?Q?4asnFzXWrJ1qXMak3a1FwHWqE81b30lbAh6dvuoVCFMnz/UIE7bZ6sJ3eyb5?= =?us-ascii?Q?hmzeqNvYlWJtH1ismeAWgmHU1r4J81PTm+EbiLLGxW9v52s/TfM79eUJyc03?= =?us-ascii?Q?wu1JykeD0toi7XsIQlcK5rFCw/nQgIeHzj8O/hs05RNmbK2hO1TZ0pKMAa/R?= =?us-ascii?Q?I+y+1vlehApKzvrQtCo33WVdcXoAB/1c1BV7nhljcnRQRxK/XWymHQalV8Co?= =?us-ascii?Q?A+kjpA/9x3ERfSO8F48UIlhCDmmwa5AeqZnGzUKr+3py3UPHBNlNTWk1jcRB?= =?us-ascii?Q?H4s20Mnqv+Eh089Ji0GmG2634jO0c+bZid7QIUI884qcwEzltbclID4Cts58?= =?us-ascii?Q?y4tUF9qLDA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffe882d6-efb7-495c-c5a6-08da5383f090 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2022 12:45:36.7874 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YFk1LnM/4HyIFsmiGMi5liE297o0nkWOzvDi3gPMhTKS6kOsgJucxdSIK9f4ruJYfBzBrR/v/Z42OpXuO+jziw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1801MB1900 X-Proofpoint-GUID: dBjFXzQaWIc8lXO1CIbZRN4oDqn4k4dT X-Proofpoint-ORIG-GUID: dBjFXzQaWIc8lXO1CIbZRN4oDqn4k4dT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-21_05,2022-06-21_01,2022-02-23_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 > Add hardware supported flow control checks before enqueueing to CPT. > Since both poll mode and event mode can be used at the same time, add > hardware flow control checks to make sure s/w doesn't over submit to > hardware queues. For cn9k, queue depth usage is not high and so FC check > is omitted for poll mode. >=20 > To allow for more accurate updates, flow control hardware setting is > updated to give an update per 32 packets. In case of crypto adapter, > multiple cores can enqueue to the same CPT LF at the same time. To > allow such a case, flow control threshold is updated when the adapter > is configured. >=20 > Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal Applied to dpdk-next-crypto Thanks.