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 69BE7A0093; Mon, 7 Mar 2022 00:23:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F6EF4068F; Mon, 7 Mar 2022 00:23:23 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2062.outbound.protection.outlook.com [40.107.223.62]) by mails.dpdk.org (Postfix) with ESMTP id E077A4068A for ; Mon, 7 Mar 2022 00:23:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fLKRCuLFzIqSFF/jY/kJygBnsu8TrJR8d7wONE4OJt5KmOUpeplhFQ9n+QksWpVUmwLiVBTiT11BeQf8s3KC68w0dSWD2w0ZU/r9F+/nsJX6vrp6Wkm4fnncvaVwrYZhBwRTprO7CKgOtxaE1VvK+CCsB0NK8r2tiInMuh+VMo7Cx005wV1u6RTLVE7P3nkPOK81LbBi6YzHsdGCvuL1HlCMqHvshofjXHfvl2FjLO98FoOPCDb59LjqG4OIZDofRcrjhEHcxcBQ7a0ybTltiLYfw3TqxzTSDQA0rfcIPfl/jO83FNesvYvyDknYnFnE33OM00wvhRE4g/9gZceUmQ== 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=E5CemEdBkLrj1lWi3S1q4DSQmxtNVAbNfbGdNEuU6kw=; b=niieR8cCad+dFVPkTMgOQO3tDbNfQBfjI06L6DhGAlJC88/k7tpAMwiHysmdoXgfVGZbFRzoQkWeNXUhAn4g17wh2TzlN7H0tNS8BFLusgr8jK9Ep/tbnVTG6YP5hNFYypnrl0gIm6FGdaYejgZvB4gVl2h1HSwsUkwIl6bi5a/GRdWbgY3lJ2pGT8+KhdsajTCdpLmG4D+NXsHOgv4VpiTb9CKY5wtmvN4OEs9nFccbjNLc8US8RDVVtofsd65fO5nZbl6gfHRB/42L+7X2iz5TkCIDFgQqMTHIcDcrHr8mNBRTDcutTQEau1P8l5R9OEj3BLx2ZmYWKlxljn/gZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=intel.com 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=E5CemEdBkLrj1lWi3S1q4DSQmxtNVAbNfbGdNEuU6kw=; b=HPf/1+nAjqvM01+kxzVxnOPUK9Vb6xhCrT7g4MkOU5N2/NX6aN3JyNs/2ak1zwKbOO5BwUzK/d4o/Ggzhe1fivjRXCivP0dIDKA46iDBn9FGg6BzyBy9CZR/dy2YAHc453rE7zpoLVBQucFJ0kaL9i9W/K8/MXWzmXAAeVD5ltSfYVZx49ytmUgBpTyNUs1HNO6FB7w+CZZUBoN+sVo51ZSUZBuvioGNb3QQryljXD0+vRwDt7oC1WN7thJgwDPmNveqCcknZu3rQWIMOEMR2dMYbUcwjW2K0XtZ6JR5f5IdFDT15cgkjxbzT+U2yY4LSOOPQYGm9ZirpKMIRmVDnQ== Received: from CO1PR15CA0075.namprd15.prod.outlook.com (2603:10b6:101:20::19) by MN2PR12MB3872.namprd12.prod.outlook.com (2603:10b6:208:168::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.15; Sun, 6 Mar 2022 23:23:17 +0000 Received: from CO1NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:101:20:cafe::72) by CO1PR15CA0075.outlook.office365.com (2603:10b6:101:20::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14 via Frontend Transport; Sun, 6 Mar 2022 23:23:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) 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.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.235) by CO1NAM11FT051.mail.protection.outlook.com (10.13.174.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5038.14 via Frontend Transport; Sun, 6 Mar 2022 23:23:16 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 6 Mar 2022 23:23:16 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9; Sun, 6 Mar 2022 15:23:15 -0800 Received: from nvidia.com (10.127.8.11) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.9 via Frontend Transport; Sun, 6 Mar 2022 15:23:13 -0800 From: Dmitry Kozlyuk To: CC: Xiaoyun Li , Yuying Zhang , Aman Deep Singh , Ferruh Yigit , Andrew Rybchenko , Thomas Monjalon Subject: [PATCH v2 0/2] app/testpmd: skip stopped queues when forwarding Date: Mon, 7 Mar 2022 01:23:08 +0200 Message-ID: <20220306232310.613552-1-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220113092103.282538-1-dkozlyuk@nvidia.com> References: <20220113092103.282538-1-dkozlyuk@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1f3929a-9340-423d-3399-08d9ffc84b32 X-MS-TrafficTypeDiagnostic: MN2PR12MB3872:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iEb9awSlrHrrp4P5EyqYkNjYHIHdLShAnXHQ8B4F/tOKQjLaq2YGuRO7x/I34R9+jbrNc9CCuNtTH5n1FeJq0lgvSSLNB2jICD+29hYKgvC4x/gG2kYuB5g5hwI8OjJHrva/MOu7spLy1vFVP7kjUguHLe2kj/NnjbyGWG1TQiMOp9O3I5YOkbJhJJRm8bNsR7mvcbCw/eNE2eZ6M7X4+7TmZHrAcJiXwpm32hrI1HlrQxFcHEohPbLnPQMQSxKvj2wCb5S+2NHp0RUYLU/aJfY5OfRzGKCNSaPa9FHYEAA/BPOBpPlnR+x44pxMM/vE4P7/7OAmjkvslmoouAY7Gax2kyLAfDNLH9zV6jiYFiSnMIpHQ4dgSOF5E6YpWJ1G2W0W3ZHHGNLYS+u0BlN6BMTbSGbjOKVDFg/YLACM31lyO+ISqCKM5LgiaGTn0WA1JJ5x0KfUaJg3I3BKJDz8fRr82CHDd/GH8C9+qq47xzcL/j6KUhGKvi0nqe4khZlCQba79lq5Z48gIdXzxUHeGDcqAohg3Y+hc3L2R72Pahyq7r32BHjzLKo0IG4u2ys4eXdNDkIuYeX8V7wLZPyLWXfAs5422DYACaH4L7iJBKbD2JnKzXEU2y0WGs6i9ou22tnHAWdHGHfDJHRTy1OH5mpUzsvD59Jh2yxBxDHtSrRI41EoYnedjvQb/Wq1cJfxQdyUXtDivDwvlqVEO06tL8Tq223+jgx/5avjGK+6PTTSN+TJXcawd1uaqA8N7x+B/531GTo1InPgm+ZRg9ihUuLMXP6QcH1s6OqqAx7zIhA= X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(6666004)(2616005)(8936002)(107886003)(45080400002)(4326008)(8676002)(70206006)(5660300002)(2906002)(83380400001)(86362001)(1076003)(55016003)(36756003)(966005)(508600001)(70586007)(316002)(6286002)(186003)(7696005)(36860700001)(26005)(54906003)(6916009)(81166007)(47076005)(336012)(426003)(40460700003)(356005)(82310400004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2022 23:23:16.8665 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1f3929a-9340-423d-3399-08d9ffc84b32 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.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3872 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 It was unspecified what happens of a stopped queue is polled. Declare that polling is prohibited and modify testpmd to follow this. Rationale is described i nthe commit log; it follows the discussion: http://inbox.dpdk.org/dev/BL1PR12MB594551A71273709E1C04A8BAB9309@BL1PR12MB5945.namprd12.prod.outlook.com/ v2: * Do not try to change forwarding mode partially, disable individual flows that need stopped queues instead. * Do not store queue status in testpmd, query it as needed instead. Dmitry Kozlyuk (2): ethdev: prohibit polling of a stopped queue app/testpmd: do not poll stopped queues app/test-pmd/5tswap.c | 13 ++++++++ app/test-pmd/csumonly.c | 13 ++++++++ app/test-pmd/flowgen.c | 13 ++++++++ app/test-pmd/icmpecho.c | 13 ++++++++ app/test-pmd/ieee1588fwd.c | 13 ++++++++ app/test-pmd/iofwd.c | 13 ++++++++ app/test-pmd/macfwd.c | 13 ++++++++ app/test-pmd/noisy_vnf.c | 13 ++++++++ app/test-pmd/rxonly.c | 13 ++++++++ app/test-pmd/shared_rxq_fwd.c | 13 ++++++++ app/test-pmd/testpmd.c | 57 ++++++++++++++++++++++++++++++++++- app/test-pmd/testpmd.h | 4 +++ app/test-pmd/txonly.c | 13 ++++++++ lib/ethdev/rte_ethdev.h | 2 +- 14 files changed, 204 insertions(+), 2 deletions(-) -- 2.25.1