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 EB241A0032; Thu, 1 Sep 2022 10:29:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9E2140C35; Thu, 1 Sep 2022 10:29:38 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2083.outbound.protection.outlook.com [40.107.93.83]) by mails.dpdk.org (Postfix) with ESMTP id 1BBA640395 for ; Thu, 1 Sep 2022 10:29:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DWxk4XzraxDd9hs0mkJhK1ZpTNOfSyp9iRHjZGjUvtuvNlCHMcNHRnN/vgx7nfJPtK4N81b6V3eZdtHgqQFM9xnId5DpJ9SK/CTA7QDc9DItK/RIHT583QNrk89SDmjnCfG62mk7DPgbgDEM6NpyBalX2Q1+REkskK0sqFVsP4B1uD7v8Ikh3I5ahgBhLepfeqnUJlBNUHeOvna/7CUaL0dHa8ybLgZH5pDtjUlMJpeNHXLJiyKL2IiLLS8hi0yepS1sGbMJI/JMNbyhkOeY742zkIKEnJGJSvuelso9roSmmCi1n2MuCAryzvG4rrYFw6HH4e1jF8TxgXhEwTU1Zg== 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=+NWy6yyGe14SUpTGAfyTpMGrORWBXPHHVBon+Q1+6jI=; b=N4lhdnyRj1JpuZpQ7V4GwBHfhTFKrELQbhyKj6j+NWT2KUKTbvqdVVtFqTdjnBGK9rDDGtWFz7EW6+6724dXJOUDjGEU/cEBBJRnlsA35/HJ5EzsyZepQ2OaSBPnwrGOFHxKqixbpdruGemvBpS6ppcBdigzQXlJf7t3PqhL+gtqBXY9Ot6kKW8DnBpym7Nnx7J9yYVuQIKz5NhlCf2DHrO0McO5sc/xNWfld6LvIMmR82xnx+6Gtw42Z8MZilIy5ipZtzLSXK3FkexUs7fcLG0zY6vM58GE/2v5w99Djn9oBiRKVuh2S/OVoQm3H0tX0VlWOQ2aMvTVVGPdv5TwCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+NWy6yyGe14SUpTGAfyTpMGrORWBXPHHVBon+Q1+6jI=; b=cqnJiTeXRXN3/OWF6m0opm8aNVBT3p/kSC5XaQ3woLhtCoO+ZZn9G4V3c/wLFOV5BnSjqB9XtCx03CvAX/HI8vwmYvLAMkf01lAbuL1jQincbEQcVGTVxyshzS1o+rauLGP0iA0kekJJ7p3v6v35FmlSLtqiB3aP2mxNi3DU46IpHHAsVO3IJ56YlZFcsi2fqc6R0GwbY5zi+PmgE2ff2/9sA7EsUOLdvRlZFD1ClWUPUS0EoCc7u/vkzQe523s55eYGllTDs3UD/WPIwZD8TY3CNucQoUQWgVZKvOyMiC3FOpgpyBGa0jrmy0HvNJGars/6sDm8//iNFgPeLZsbbA== Received: from BN9P221CA0029.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::27) by MN2PR12MB4317.namprd12.prod.outlook.com (2603:10b6:208:1d0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Thu, 1 Sep 2022 08:29:35 +0000 Received: from BN8NAM11FT061.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10a:cafe::c7) by BN9P221CA0029.outlook.office365.com (2603:10b6:408:10a::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.11 via Frontend Transport; Thu, 1 Sep 2022 08:29:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.234) by BN8NAM11FT061.mail.protection.outlook.com (10.13.177.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5588.10 via Frontend Transport; Thu, 1 Sep 2022 08:29:35 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Thu, 1 Sep 2022 08:29:34 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 1 Sep 2022 01:29:32 -0700 From: Gerry Gribbon To: CC: , , Ori Kam Subject: [PATCH] regexdev: display response flags value Date: Thu, 1 Sep 2022 08:29:17 +0000 Message-ID: <20220901082917.2435000-1-ggribbon@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f199cc71-7d01-45b9-32f6-08da8bf41a4e X-MS-TrafficTypeDiagnostic: MN2PR12MB4317:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: taUmhKgqtVu+Mw0v1rbzcl6fxDoVzOkE2t+6cigOxqQxYVJgMdt0x/ZnlOwUpJf+nGfCL2yR3rEqr9qzpP6gnGm+dQUAGVOhs0QQJS0HtMbNQDyJQivORnLiZv5GyU0f7AVAg/czPm285A2zRggzmKQpbgBP+ZnGuCdswr4ApV8gqIOSzL6KMmvHvHkK9dFGTiMOhN53WxhMWwucMfnt7w8H1Ow5vVOioL+83F5U52jD13ie2HmS7ldXZ6eHYCpItdi8xZHHTi54HnAOmWMcaK6WQP++8mkj0bUBB+9bgcBDXJgyf6neoSFmbKVtXU0TWtZIy2Cr8iE4jUsX3Cx8QGibiRUom65toLpWgtEQJuJjbz6oiQvIeCQgdV4JQc29Kt7yQKXkqxuARPPYt2Q70bTtvEt2IbKxoFX1L8GmMPR1r7JWCMNnZauKR3ZLW/4/xdY5BTJBPtdKz7NHyfYmS8yqSY6l2nL7gKpaewWqQXogEqBONhr8oXF1h7erp4LW7q+lWwtX8JfsxWKcYOu9m0mQQB6xguW40Jt1+YI6bULSzJ7GELmpaYpALw2pvAdwnzSUVryCi5AjLT4His0iTKYCG9hb6q4dZaf8zBZIXtuOdTtaf8Kwbgd9w5Sw6Yg7vXzWi7alkFXXUGF2zPiEbIExGDG5pK40z/cxL59QqrQc14s/8N/hlsq+VrgIxsmkW1+d555z0YwzbzghA8duVPUmjxk8pbwvO+P0a23nbbfobThVCbwQc8oc242JPQKQqvIq6UwW9sre3v1z+0VgcMFTpDnc6XRnGqztNRh1zQyJQZDKwRCvLfXDhEXv7Fn3 X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(396003)(39860400002)(376002)(346002)(136003)(46966006)(40470700004)(36840700001)(26005)(7696005)(2906002)(107886003)(82740400003)(6666004)(16526019)(36860700001)(2616005)(186003)(82310400005)(40480700001)(426003)(6286002)(55016003)(47076005)(83380400001)(336012)(8676002)(40460700003)(4326008)(86362001)(70206006)(70586007)(1076003)(54906003)(81166007)(6916009)(316002)(8936002)(36756003)(5660300002)(356005)(41300700001)(478600001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2022 08:29:35.4241 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f199cc71-7d01-45b9-32f6-08da8bf41a4e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT061.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4317 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 Allows application user to see response flags Signed-off-by: Gerry Gribbon Acked-by: Ori Kam --- app/test-regex/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test-regex/main.c b/app/test-regex/main.c index 351c36a879..94b767e380 100644 --- a/app/test-regex/main.c +++ b/app/test-regex/main.c @@ -392,6 +392,7 @@ run_regex(void *args) uint16_t qp_id; uint16_t dev_id = 0; uint8_t nb_matches; + uint16_t rsp_flags = 0; struct rte_regexdev_match *match; long pos; unsigned long d_ind = 0; @@ -585,8 +586,9 @@ run_regex(void *args) /* Log results per job. */ for (d_ind = 0; d_ind < qp->total_dequeue; d_ind++) { nb_matches = qp->ops[d_ind % actual_jobs]->nb_matches; - printf("Job id %"PRIu64" number of matches = %d\n", - qp->ops[d_ind]->user_id, nb_matches); + rsp_flags = qp->ops[d_ind % actual_jobs]->rsp_flags; + printf("Job id %"PRIu64" number of matches = %d, rsp flags = 0x%x\n", + qp->ops[d_ind]->user_id, nb_matches, rsp_flags); qp->total_matches += nb_matches; match = qp->ops[d_ind % actual_jobs]->matches; for (i = 0; i < nb_matches; i++) { -- 2.25.1