From patchwork Wed Sep 8 06:59:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 507909 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp335446jai; Wed, 8 Sep 2021 00:05:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWcZjg69jiVTUk8OtkJWxrmkni+se5IE6e5wgy4R3Jq+bnqeIvOhubQaCk7Wrje/Ep63rL X-Received: by 2002:a17:906:2a0d:: with SMTP id j13mr2360371eje.545.1631084700242; Wed, 08 Sep 2021 00:05:00 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id ji7si1374671ejc.451.2021.09.08.00.05.00; Wed, 08 Sep 2021 00:05:00 -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=LAYGoEc4; 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 37EC84118C; Wed, 8 Sep 2021 09:04:20 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60051.outbound.protection.outlook.com [40.107.6.51]) by mails.dpdk.org (Postfix) with ESMTP id 0D3E84115C for ; Wed, 8 Sep 2021 09:04:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TZpzjpRmZylOjVKGK/LxE4auZ1aIrT561zEWF85mBLLVcLESPbW6aWixi+n9vkol76RlD2E7Rhy28C2LcS8P2zubWkBoePw0AGGuJzi8zzcEu7dUPDYnNfkOFeaZbxLag4n8uPCcJPzWhYB5ClNffI7ZW5d9LxeNjkDWGGD8oNMYNyNWXOwt3aEyZEFIrwFDHSa/XUxbE0E+adFmfOAFD9Gl8wP41bMUerlSJghbO9V2gs1SoON/fFmn4KENLW9jmQV46/Ke9r04dBkPlLS3M3VqZqq0xoQOTJfkiPjJ+0TMB6yuWCfYlaAWxm49raDSs4eu+0h4fbfN90vWcbw2eQ== 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=J3PSRwKaSHA4fnPcRplayHQxYmDFx7v1w2ANooC8uuE=; b=C2kSvDT2SYNrHOM//7/j3qeCWrmei4MUWwcsQPDXLlWOCuaifcNVyXR/GURc05VYRogfowBClVSuusF3HVnoGSwKLMLcm17lZupW62f01FUJoigRa5HuPH5UBK0zACwGqn0gNr6CLzwC+eThBIR8MfjWu7eX4A2ZF2bOSKXuuGguwiis+PoeImjEdw/XPUhi0o+q6KSfaT7tJJ/s7PffUTsTsvg15JSec2kksSGTHEZcKrmA2FVkn1L4QNR8ubGBLkZLmXD2qXR/YY/UzX5mVtL+XWwkI83UfBG8MWQT4dz7Yx5snKHHm2oxnL3bMa+p8EcMC/FDsNALKB0q4YDFHg== 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=J3PSRwKaSHA4fnPcRplayHQxYmDFx7v1w2ANooC8uuE=; b=LAYGoEc4oMTyFLpiDYVnsEech5BAecmggB+ovW0I3xks6Iu8FaCYhpir+JWo/xmHGbYdBkc/di6kzmIQ1BjNkQS+scEbUG7qnkz0cpxobEFfd5hw8EABjX7ZuknWZeCS+bmXBOE4gweB4Ssw93Y7SbXEQbyMMCGgIwmgNi9TNss= 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 DU2PR04MB8709.eurprd04.prod.outlook.com (2603:10a6:10:2dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Wed, 8 Sep 2021 07:04:17 +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; Wed, 8 Sep 2021 07:04:17 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Date: Wed, 8 Sep 2021 12:29:53 +0530 Message-Id: <20210908065953.28349-10-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908065953.28349-1-hemant.agrawal@nxp.com> References: <20210907083953.8948-1-hemant.agrawal@nxp.com> <20210908065953.28349-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR01CA0087.apcprd01.prod.exchangelabs.com (2603:1096:3:15::13) 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 SG2PR01CA0087.apcprd01.prod.exchangelabs.com (2603:1096:3:15::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Wed, 8 Sep 2021 07:04:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5a5c8083-d1a0-4421-0adc-08d97296df95 X-MS-TrafficTypeDiagnostic: DU2PR04MB8709: 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: var5Q+4rFFUHkIU6oKlY7mhb7NUJCgWSMprak8Djzs0jze41B6E6DsZ5QJWLYwy5H3Kv4r/1u4XE2ZXNzrAU53p8s7EqEU47uin5L4gZ7bjDNTFr/mMh8oGvkgim+1kPBy9PgsuL/Aqd0hVmh1T33lxibG9UEQRvpPwQ33kvah2kNQe2ugfXfu2OiRg9VU2xW3LwQBrPW5YkUIJdsaXJyWFrg3kxu+qsEvXxQJz7PA2jCKC8ve0Zt2W6rOUQ72rsH/y6a30GUyMKn/Oqnd3Et2NlaImhrsok+QUf941vXhP3vcjOEvYv9M8oLzqIX1zSPOD4v8uLkNgIntfTUAY/Sb9YwYwCNk5gq3wVtcp0TsP2pgx+LMDUtdr4LdTe6cFt8OiYiE/6yK9i+uKXaAnHnCmY6xOAfzF5LqCq7njBshc3jYJMjqum6Ms+aqE4uHT8nGcSJlKVfnDyOuGU+bbNUZOKlET7NRw3dg5uUNYTRK/nbI8L0sabupsOCnV5pSjkehUkTBk0xEMF5IVTaxY0oswguO2lSdQnZqxHQ4JjX4DZJFIA0Br7hkgYVE8zi6uVhwmjK1EQZ785Iz0t9eXZ77U4ocpWI1MlagIf6ZgIIZ9lw3bGGtAdXuiEmGM1zWvK2P3+KO36DIXL+c7mderNCxU1acBL8w3qtNh2k9Yd5trxSKpBEs3QiH0T+RzF70ZRcot2TFug8qjbybOtU6BiYA== 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)(136003)(39860400002)(346002)(376002)(396003)(366004)(86362001)(2616005)(956004)(52116002)(66476007)(2906002)(316002)(83380400001)(478600001)(6512007)(38350700002)(36756003)(186003)(1076003)(26005)(44832011)(66946007)(66556008)(38100700002)(6506007)(5660300002)(6486002)(8676002)(8936002)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6c36QYaajhXCXgLWGrWOkYHn9uEQlLlU7agyK2WaHq12juwbJ9SRspkIMLS5JLnY6WZ8ZDE3VsLggptjAOfkKEew4kWBc9HOvCTpKE5ikLRbXKZecMK7ekvDjUWTuekuT1WKXHpUWOYvJVcq4PU1hRamD58aYdD4ZZ6rIBXoLKShHw1KBc7r57+E68PLZuo1peYeIB218H/E2knky+OP4bhenPlsoE1qKbDvEkyjyh+4qebf6BVS2TCoUCrd1LKyxbq3gisqxkW65kj2Tmp0JmGcRJN9AeruWhqDF1HwJSysmql/UZ26tw2+v8l9CU5IKnS3v1wByCEz+x2zUnE8xDCfjpBx6WR7zuAQB9jsP7W3OUhoVQjaUSJGRI3dChys8zrmJnI+OWv6EZWgWNqRqkFTH/J88zE9fxhkFxpJHcmz5vnkMWjAqE5xLvrO+/HN9T/5/VA3mt3AvM/UOU600cq7WTX/eTK5E+jeF0h5b9KbO4AicuAUrnr/IfB4Fc1TaIo18JzUtM3MWqjyRjDYDiilFODu2+vKwiCGSKrxCxVLictT6AomEeAtiR4qxZ00KINvpgJFMwDUn0NOruHrGIP9AxkYDqqiqDHB/oOBBDrnNXoj2coIFmsGQ04OaSIOPg9jG97XCB+r38aU4tiP38RCXanN0fl67z43Vnrdbwj9P8jNSmxdCNum+ePbgZdb5NZSMdUkFBq22izr8Uhgf0pAFmtXnEbMqCYt9v9zOJ9NoaceIBQ9Fe+Yp6IQXhOeaMwoaw5JlvE9PRCqTbimQHnbegV4uQ89sVOncDyrJ5uvf/t752nt+WqAI+x2y4mWHNuwFbMHsU4KzBoUjONNSAU4aNsMp3TTpVnInqlWijwqI8/4T01ynTYPePtYVzRHlUazU0InK1S4T5TV8QQQyxnhs6w9y/+J10qdBGwGmh3M7PIpMGI3vQjhnz0mWqM6y/16Gv6lQIu/dhHmPUbbToC6OO5oRVPagoTjKswvA148sYxRrrZOWXoicdK7tC1GrLmXFDESM3QPOgi8PfWCyefvgwaClRGjMGaRty+eXXWolcR90KaSK746KMwOyzyJ72bIozKn0ZzI0ZaxYF3xMahdEORldZKCMzQaHJ76izYALydxG9Wj6k+cLrUJR+20zawH1VYga7b1bd76SE7SIEcNungPG1eIdSgNSq4dlgcNESs3IAQpllcSk2ELgNVMfKmceqRU3ibHD6zRz4Jv+4yCC7Sjwlxaiutw2DiVMeVzI0rcSLscNIPn5IE1w74FPoo7eFzYMjK0PlG4O/ijmtQblEGhxJXPPQhQyOZO6MzbB7HEgFgMl9iq/wKZz4KR X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a5c8083-d1a0-4421-0adc-08d97296df95 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2021 07:04:17.4549 (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: SpAIFeGCkHHVH/w1QO+J9mj36MzkcyU4EIrhWc7w4tQk3D0pG8Efyyzwr36Cljmf2D7d3+7ZsmRPNfp12fyvwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8709 Subject: [dpdk-dev] [PATCH v4 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 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 6b6fee828b..aac4e9806a 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1709,8 +1709,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; @@ -1722,7 +1723,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; }