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 E622FA0C53; Wed, 25 Aug 2021 10:23:20 +0200 (CEST) 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> Content-Type: text/plain 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: =?us-ascii?Q?Znx7pe/WNNcizLbBIlrwCsH+1bJLbRjjJa+DuZQvfzInUQxoY+XdGBec9rH8?= =?us-ascii?Q?6NLnuHeTrhQPC/m7MsoKTcYVItDJR4OHt/murp7/tYapZaTibjomqMDCnxke?= =?us-ascii?Q?+gk7n41zmmGWvQhEt1APC9WJoZiHj4DUSxqlei9z+iIYXxY+lP9v74vz5pyr?= =?us-ascii?Q?4u/x3VzfgnaJ2j99XTeX0QJFN+mwK7vZFf1G95khxdIcO4Qzv9a6SPvEmNd/?= =?us-ascii?Q?m8bj98NhKK/Py7nAEfn1CiLSJC5fsw/eCGrprZSGDgveqTTq7B2y2m87Y4QK?= =?us-ascii?Q?e8tWXZQxt+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BA?= =?us-ascii?Q?9nvuKfCEXnYrwcttb7WBDQbOY/QndcuEkdX/Ny4zfs7B2UFJP33w68XN+bX3?= =?us-ascii?Q?3RORJXzQaWwkFeciYr5a5kErMkpa89SQJ5CBnyYDgDHmDuf9tvC71uQnOiig?= =?us-ascii?Q?cl42NzniSBSLn8OTONJ1gtrk?= 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(-) 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; } -- 2.17.1