Message ID | 20210907083953.8948-10-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp4033369jai; Tue, 7 Sep 2021 01:45:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoIIjU+KxX9SIFKpjWqQryR3ztpi2V2tKfIL7N1/e885UxysAYI+BYdFT3ICQ4Y+efJTHy X-Received: by 2002:a05:6402:3190:: with SMTP id di16mr17058716edb.211.1631004328163; Tue, 07 Sep 2021 01:45:28 -0700 (PDT) Return-Path: <dev-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id gb42si5217258ejc.690.2021.09.07.01.45.27; Tue, 07 Sep 2021 01:45:28 -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=D+8RavFF; 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 F042441164; Tue, 7 Sep 2021 10:44:50 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70089.outbound.protection.outlook.com [40.107.7.89]) by mails.dpdk.org (Postfix) with ESMTP id 80DAF41161 for <dev@dpdk.org>; Tue, 7 Sep 2021 10:44:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uph0Z7moFhxRvm4QNL3tk0hS84WDaKuAkaXMdx8J22ZZIgv18fV3Dng3lkx9uI5LxGVhs/JCLOyoekEsMuGqY2a/y+RsbZLUN8qgKEmzaabisFuc4RhIALFRzWnl/lkvgLCqTvT9qjyqathTo1ruCCFb62I27KxiEPScaFB0gQY5Ige3VHqg4mFA3l5Dye9+q24EAhh0betjXpMhoShqCxSAmyKpO8DsVM84mKkqnkLQ8b/7m+MGNn+lEn4HtoYvbbbCHfY56AM5PcMRUNsim3hT+fSkWTlYznOozlFdr6efq8UucYB7/+OPqP/ELm2OzGXNzjkx2LID4a2Q1Dv5sQ== 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; bh=dr1+IT7BnNXfAi7f1b4vo0ie3GIoLiNXJoLUDx+Mmio=; b=fWbg5aH08VDOrKnu1FYU2X7AIZCTS2Xhawiuf3Llo68qB4ZjSyh0zUWC8D7tq+OhBVK9/zzE9o0Cy6H3eq2j0y+ubX0TPUzUPDfydgv+ISaZQbCievpeAhq4+EUddXlLMVt3q+kwnxAznPsfyL9OC5A5SQB7zrjGRUppMHQLJD7mdZnS+SI24C49jXNTIm4LerPNX4MLAqfSObI9mb71KJtmkJ91VdkncfoGRdnamOSDDZ/2rAS4ixFdZpVg1ShsiTBD/BBb+oqly13n5veAAEzGHS7tBWqTPKVUgs/XP5RvfbOadcmb3G0BBw4apAhBpTevbZAus0kUJtuJHYeTTg== 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=dr1+IT7BnNXfAi7f1b4vo0ie3GIoLiNXJoLUDx+Mmio=; b=D+8RavFFVqWXgDErGJd1gypXaJFxfhRynLsfBB5VR98o+K3GHKLoKYUAQZ7yvFlimvxNGhOq1k3X7ahpt1pr9VWNFC89F5fHNFoFr0ZFc0Vut2crQttqFM8MsjwKdosTbKoEL0SKi01qFDzPsIdoZAeSt9A71EtgM5HQWGOCshk= 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 DU2PR04MB8949.eurprd04.prod.outlook.com (2603:10a6:10:2e0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Tue, 7 Sep 2021 08:44:48 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80%4]) with mapi id 15.20.4478.025; Tue, 7 Sep 2021 08:44:48 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org, gakhil@marvell.com Date: Tue, 7 Sep 2021 14:09:53 +0530 Message-Id: <20210907083953.8948-10-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210907083953.8948-1-hemant.agrawal@nxp.com> References: <20210825081837.23830-1-hemant.agrawal@nxp.com> <20210907083953.8948-1-hemant.agrawal@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SGBP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::36) 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 SGBP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.20 via Frontend Transport; Tue, 7 Sep 2021 08:44:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f667eae2-7dfb-40fb-42a4-08d971dbc01f X-MS-TrafficTypeDiagnostic: DU2PR04MB8949: X-Microsoft-Antispam-PRVS: <DU2PR04MB8949FF35485DAA4F4B653BBB89D39@DU2PR04MB8949.eurprd04.prod.outlook.com> 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: sdOQwpFbe3s9X406h96N+v3jG0yJxq7th+I44GAQUcgi5KAPEwqWkgsptQilrPoslQ8mRb8/x6h87hHEsRn63jWUo+yTrT3squqTssC/aUkFjuYXvb5cgqJTzzfEjff04o51X7bMPkdjcZx7VbxMrqj3vvYKpsGgTW+niDVruZjSmAJ9MQ4avVcAYx9Ziis1Z+lMJu/8PThSwZ6R2m71oXEv/9s1aGyEOx1U6v2BiPolQ7XcKjEmujIGkH0vNoShXgpIKh9z0LkZPoUO8m4apXc/uEe9hC94Gj/Rtw5sRv9mskWHTCR0diLsyTtFJxlCRGej2t06eao6FG4PkDsYMaC723SwI8VU8bj/ldiksFV+pHJinhDrEhmzWU0WZL6AJH+MCyJTe5OMoAh9I8QTVR6rggHOjOkcKSbpcS+lmodDwGZGFjudM1hQmNyJOHnMhVVIvGL0+sVNVo/1tCJBasMLlq+UFfMLi+bMPK3KYprqnwBBn2YrNa0f9ff+u4uwaaNUAPGpbTqUuGJD3qUBWiSOG9rf+4XiTRFf5qn3VqHkq3xLhIVQBlEKEwC0PeWYYO5o58Ua+03D5nFYUvyRDOvb8uQFoBnLUOSw7Nh22hZA8o5Khb4HdW+NpkLS6YrYgDHQrq3gYRSW4GZ65WoZzqCbisDoL7eb6V3IHohr+2GxXLh0A+zLqsAp+sO5rrx7g/nttY+3F69FZ12PVienxw== 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)(396003)(366004)(136003)(376002)(346002)(39860400002)(86362001)(36756003)(38100700002)(38350700002)(316002)(44832011)(52116002)(6506007)(6512007)(186003)(2906002)(956004)(6666004)(5660300002)(8936002)(8676002)(6486002)(2616005)(26005)(1076003)(83380400001)(66946007)(478600001)(66556008)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vjgS2J78Oe0GudWoBLe3rWiWrabrXb8My3AaQsJFLKTJqiv2hNxom/czRWCHE7JMVQDXpRrXCzy6RG9+jYySqBIux2XMuAnz6fhHE+wrzdMXN8grxGxMi0hS6Y6LfTAkulPRNhpL7SqAIwZfg1I+gWtZjjZATkTxf4C1uO0G8mn3aQ4bREpxBg+XDqqRVT5bKFni190zllJ5UcLuTkon6t1qpiA6jKSBDEOOD4Kgt0GrwrsHTZShSsAWU5fupYAqk/2GheDGPd+GagaJ+/vynd9G1BJCqpZCJckru7oov1NX0yfzywt3/ik01mhkSMN0H8xyu3adBFC1Q4BrvkE9nhQ0yKk63Hu8GfvxGjBatwmsTWSA92OcKUlV6G09HR80kJc8kxOkee69f4G2twNcgBM0s4FHy59PAE5AiyVrfdg6mWewkiacp4Sc2b8hTGuyVAnhebp+RAQHaTxpfvpCrgFI7R0rn3/QEzPykBKe2cZ1ZC4GX0fH/sYEQl5GwwhF1emJZyx31XepM2vuDhhmWTNtg18HnthEjrk6vajr2P1V+ygC+hOMUvPx09MLvIbGTNFRi5tpKrXhSpFnhFUu+2NOQgORPOtxx1uAAZ32R8BPG+4cQdibHZtihWhHkxB3y5rYC69Y61ba8Dm2Npts+dfKNv8dND1AUK+8qW+UCEhqW5bTIiY1NSzH5IK5MwcinBvbttlopro8/kBH6F3GNYUbar9A6Sm8VGsMJFPOBIEY31zArIj5pMRYcc5IGVLX1cjugU8lDhO/UA4e1UsQxG61lWMJqhtPtkE22hLnIZINmA7zrBMlrMVAmBw/OtvAdDX2EJoXAqAurcqx823XjIqwtUig9a5XG/HiWXGl3Rsc3VlNazucYOAeXZj6ZgLTTQf1v33vCB62mDyqPkw4p3svNZA6lESnQXhQhQ1jAvMG/iwyag1EPQmkZpZ5nxLX6IB/yOWTiuA+nrm0uuaUmMAYz7Ju/isgj1A5fax1rjNvFlscEVlLAUSmAOzjyj8BSkK0zIMhDbIpSm0bkp2SOWxRdJjpuD/zcV0GlLeGDC9xg4WX7rJ7JP7qwG0nM8Sbd953SqDAlcWopaJ1GuQvhlTLI7rm0O/QwR4E2yMoG1+SCMQfdqmga5x8FKlLzxrlITnGKay8r/DJXbmaW1Bkqqc1SBTo4ZHj2zwyNgGKeJAdVz0f+mTyKV2OjBuhFhz0aZ9VhHkhGNzbTZqbro6Z3hM5e6iS5H5mSsKH7krkBDHsn7+FcevZlYvxbjKUJ14mDnL18dGxsKvhsYi4iXAJoZR5q+eHTG4Ts9ZdXZVOYpeItuqKKBIIlZ87zNACqAZr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f667eae2-7dfb-40fb-42a4-08d971dbc01f X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2021 08:44:48.7982 (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: 0uog7VMALm92bzB8XaaKwsAcj/8uQIsQmBPposI1Do6wLLjaSpYW6AjHt+nC1RNC8f5uCFbO9h6dQy1Ru3I4Zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8949 Subject: [dpdk-dev] [PATCH v3 10/10] 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[v3,01/10] crypto/dpaa_sec: support DES-CBC
|
expand
|
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index cca1963da9..c000da18dc 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; }
This patch add support to also counter err pkt counter per queue. This also enhances few related debug prints. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.1