From patchwork Wed Aug 25 08:18:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 502259 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp382924jab; Wed, 25 Aug 2021 01:23:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7z6gWq2sB9HkwqQkZEOgOrAZIXGnC0mVDyNceEi/3uElum1kl+pZtCJqATXxGGlCAAwKT X-Received: by 2002:a05:6402:3c8:: with SMTP id t8mr10664247edw.150.1629879801224; Wed, 25 Aug 2021 01:23:21 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id y6si3539744edd.586.2021.08.25.01.23.21; Wed, 25 Aug 2021 01:23:21 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b="rOt/mnF2"; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87F4E41218; Wed, 25 Aug 2021 10:22:34 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60042.outbound.protection.outlook.com [40.107.6.42]) by mails.dpdk.org (Postfix) with ESMTP id 2556C41208 for ; Wed, 25 Aug 2021 10:22:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XgzdNZAZ6kp2w6JXD2DddEB0w14X+1h79jl0x/qSY57QCz1JwwBrSdyX2sOMIUMfFSvyA4tO36QpBhxDijrV7QPhfILiMMvO713cA80Xi00ttBXhx6j7qryJUUPEaVwilOpo6VDrDontWKRMRgSWIU8xc60s8Git+OSg0/QxzSmx3otN18/2BhymccabqYBEQacX17hrvfp00fNSKlhw/qXq5CFS5ByB9BFuhOWJSuPMA81WIFgYAOmzpvOSKWGSPmNPkLEfwCkLBv+9xcWAhCAx3km3w5b7Qu32k/X/C9UUdmVbQ/piqryUA6xcCHUgYoMbV+QCMjgEdD7pk81wnw== 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-SenderADCheck; bh=Jt4sMv4uG1mbwoYsBk5sHgcJivJEHxSiGV9yFEmc028=; b=Vacbav0JtCn2GlvkrI7wwwbqDfb9n9WLepo5SdcvE52BBGvH0sEqkaodpCAXbOnPHrTMIuhcZHSqrlZub+yNMjNQVgZpiHcG8ojZl0S0n5wk6WlTb588+QVyFieLZGcXu/nLVatQkatEv6GLZfpgD2LA2TWH2PZXBMgBqzYd66xR8nfUqVwjE3aEd37VB6XSFJ2SGTL5lnrv7wwJ3Fu9cEw7OLWVhI+3iDKjrdvbiEQAmtSjQuvT7kwMmg2WMWOkcaVD8T5gYDTW/tTEmfYmi16iH50ZqZ06lPEH0epFM1sLuTUGvV87m7e4iEvjIgVpf/qd3WmULoq9G/bkpSmQ/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jt4sMv4uG1mbwoYsBk5sHgcJivJEHxSiGV9yFEmc028=; b=rOt/mnF2vgWmLd7of+FNmdFreDYAqU/ZvckaZR4KTUNMf18/fF7klfyqyNb2jkWrtJFkKYZNvBilCq4rzTUxmjIkG8lGV1iOuwh++qi2SrFw0PPu+jJsQrLUf4qYA0/rQ3V/5GMQuPK/5+bH6JaFyMX27UwPS4/X8HzXHclbuEA= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DU2PR04MB8934.eurprd04.prod.outlook.com (2603:10a6:10:2e1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17; Wed, 25 Aug 2021 08:22:32 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%8]) with mapi id 15.20.4436.025; Wed, 25 Aug 2021 08:22:32 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Date: Wed, 25 Aug 2021 13:48:37 +0530 Message-Id: <20210825081837.23830-11-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210825081837.23830-1-hemant.agrawal@nxp.com> References: <20210721073920.21893-1-hemant.agrawal@nxp.com> <20210825081837.23830-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0106.apcprd02.prod.outlook.com (2603:1096:4:92::22) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SG2PR02CA0106.apcprd02.prod.outlook.com (2603:1096:4:92::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 08:22:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1cd96fa3-620a-43fa-519a-08d967a17c2e X-MS-TrafficTypeDiagnostic: DU2PR04MB8934: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oLiBbTCPD7SwXGfrkbFDNb6SKOhxk3JjCfMHoJ7yKflsSjuU3wYs8TKMPruThC1Klu1PqUNfZRxc3w5Ojrx0mLkS9bid6aUfgxdw0o8A0QSXkIgaWRl4XBhYihhPYOdFy1jsnEEhP3WHha+HdUOpYLOBTTd62yoUOoTFz98OmCJzBJCeze66u/ahBn87hEDHJ3q5EMVya8v2xHSaoX+OzzKj7/DDWWZGG2kycPhvxpqXk4JVW2mUBh4t58RE7+8Lu+4jG3m2HGwjhXvhl6tv+xhk6x89tKkb1ZUCD2SvFEOKfE0B/2GRbKh2hQLsIyNuJ/J1mn9FNwH8Xs6jWE6QryFGzmxK9sH6tPX8dWburE7hxOEWvhcnPHizuvYnnTuDW7MbTbKblDtO0YYy8PPK3Ozc7WVAUZ1yu2MXX9/tPAOLASFPPD0v8j35QhjvLJ8ez1Qa17vWEC3JJiR6i6hN4G9QEdeAsKgtBgZDLnkR3Sgi3ItUZulvvHim4JZpe2qSWqS4jY28+7f9FV76oj4Zo7yegbS/8EWfmumrZnJm/nTB1eXKvv4z09xVgA54Sa5RkYkM3njohihWEj9rNFYRIXgCgwkXXyoemJYq4jsm28bn1LVcPiJ0kXBdQ5/gXrNEyZBV+PKVuMrf2khQ0KfVr+8FfE05JGhwK/qKe5cN2UgkjloO866mhI5su9hAT2yu9z3f03uv6KXRJPzWB9ljZg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8630.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(396003)(376002)(39860400002)(136003)(6486002)(44832011)(316002)(26005)(5660300002)(6512007)(2906002)(186003)(8936002)(36756003)(38350700002)(38100700002)(478600001)(52116002)(2616005)(956004)(66476007)(66556008)(86362001)(8676002)(1076003)(66946007)(6506007)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Znx7pe/WNNcizLbBIlrwCsH+1bJLbRjjJa+DuZQvfzInUQxoY+XdGBec9rH86NLnuHeTrhQPC/m7MsoKTcYVItDJR4OHt/murp7/tYapZaTibjomqMDCnxke+gk7n41zmmGWvQhEt1APC9WJoZiHj4DUSxqlei9z+iIYXxY+lP9v74vz5pyr4u/x3VzfgnaJ2j99XTeX0QJFN+mwK7vZFf1G95khxdIcO4Qzv9a6SPvEmNd/m8bj98NhKK/Py7nAEfn1CiLSJC5fsw/eCGrprZSGDgveqTTq7B2y2m87Y4QKe8tWXZQxt+gn0y8t4yj7M/fDeKtG7vWEdxIUhhXekwHBIwUiozXT0RqqM/NXG1YodVmAbGXsyKNVSrqB8SSAeoCtxFFp0lt3DA35upIETziaP+3eQrqx3R1up/8PAU4HJEEyYEMS4G99JjBguHGQwlTPhu49jLxq1NzN76/pU7exgKgMk2JeV6TLcM13WMb5QY+hf+utrSOnodt+6+hXEGtv0I+kxhl8uY3Dg2U0eC+PaCCLT1D9HpN+4HnfugkX5pUixy21uGReLxOLsP0AtIcf4STJIsqgGD/ZaarXB3bDjQa8OBhWR07t5AUaCovo50ep9ZW27mEwXznyrdJhfqW47agCOo/2fahnGgdDXSQBEUW06699xmLc/RDzRsdXUVPQCukTZjVCjaOFmLIG2TLssrLk3Cpe9WfL6kgucCzNvVngtDA9ll/BmaXLVN2JlMuxJ9yJLx2Pxp3N9Ovnws6u2ptVJH+84DzYhhP7zd9WlcH5QPSmpuZxDid/zrvHl0HSVUWwpuQYka64Z+29N6quBzN2YHopYyg6ZZjxWIlWDGHmuEWGyAN40IrlPV5tSb0UgwZvGGjyOAaoZ+72IOCqpyle3kCDa4eCpcoXnxWl1LnY7G2qjolKj7GD4J7nwwEn1kfuXnvw+WYnAANbVgaGw56Z7KEq6jpBaf1+jIni1oi7f/fSiyztUVp7I4bWXgX6Muy74cnK0QwyQYzf/Q5W3yYGOu1c3ylSTVFgplEuUG5x68B2TtoEAE4bk1vvDaiVaoj2F4TUs7Fk0JghlVvA+hW+dAT9PJPfUYQAW+8/YJZC20AToAJxfIF0HvnWXqYEt2cE/OY6EKEKj59ZP0jgbfuB0zWHK0nbxopaOgWHISsVSLnO3eXBnsqZMrssv6BA9nvuKfCEXnYrwcttb7WBDQbOY/QndcuEkdX/Ny4zfs7B2UFJP33w68XN+bX33RORJXzQaWwkFeciYr5a5kErMkpa89SQJ5CBnyYDgDHmDuf9tvC71uQnOiigcl42NzniSBSLn8OTONJ1gtrk X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1cd96fa3-620a-43fa-519a-08d967a17c2e X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 08:22:32.3269 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VHV4NqSP5OpmK1k0fNswkq3uuYWumw7lVilWdE5ZXNxLixL5s5tLbw12mo7JsqkyinzWEyx90ieeWS6ZFcL+NA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8934 Subject: [dpdk-dev] [PATCH v2 11/11] crypto/dpaa2_sec: add error packet counters 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 Sender: "dev" This patch add support to also counter err pkt counter per queue. This also enhances few related debug prints. Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 3362e176a9..3a8b11c4bb 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1702,8 +1702,9 @@ dpaa2_sec_dequeue_burst(void *qp, struct rte_crypto_op **ops, if (unlikely(fd->simple.frc)) { /* TODO Parse SEC errors */ - DPAA2_SEC_ERR("SEC returned Error - %x", + DPAA2_SEC_DP_ERR("SEC returned Error - %x\n", fd->simple.frc); + dpaa2_qp->rx_vq.err_pkts += 1; ops[num_rx]->status = RTE_CRYPTO_OP_STATUS_ERROR; } else { ops[num_rx]->status = RTE_CRYPTO_OP_STATUS_SUCCESS; @@ -1715,7 +1716,8 @@ dpaa2_sec_dequeue_burst(void *qp, struct rte_crypto_op **ops, dpaa2_qp->rx_vq.rx_pkts += num_rx; - DPAA2_SEC_DP_DEBUG("SEC Received %d Packets\n", num_rx); + DPAA2_SEC_DP_DEBUG("SEC RX pkts %d err pkts %" PRIu64 "\n", num_rx, + dpaa2_qp->rx_vq.err_pkts); /*Return the total number of packets received to DPAA2 app*/ return num_rx; }