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 D2877A00C2; Tue, 14 Jun 2022 14:02:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68F2B40DDD; Tue, 14 Jun 2022 14:02:04 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2084.outbound.protection.outlook.com [40.107.237.84]) by mails.dpdk.org (Postfix) with ESMTP id E96F64069C for ; Tue, 14 Jun 2022 14:02:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IB+JLXjNTcSbrH9ycdhcSSOAWpDS3pLG3VTCr0d7Um/lhy29sbiGWPWGlPWjQubDwTeCxPc03YVnFej/kafEivwQckMSNjqsRaYrlPHm7RUCabCQVlwB9FFhSujzVL0qaOeSDNUAmSlzjeXZHuUusr3yK8PMbXs3J3qg4JUlkO0rY9AVwGMBfaxQTE8aQ9WRkClJ9NT4ryUYdeRpMTLsr8SC0nlD2YTlG4xO6+PRSWqrrZ3OBlKatWWv1JHFc9Itb2RYUHXOWLQf0pRvHNnTue9QZaE0S21lNLtyjtyIDGJE5ao4/DtJWizjZ6pxAJBXV0BsFN8/vVVZU7rNNlbjNg== 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=x8ft7xQjOhE+qShL1epzqVecbmTzExDq0EFPO7gv8Zw=; b=KgXZmln1FqgU28N0KFqJV3qXld+wobqJcgGCu1TF88ICOjIHTw3zKMEJQp9GlhzN6mTiaNNZFgvsAcqgmJeQmXs9eJwTTr/ktzctP+/y3t1Z65P3I+3lxu+LCL8Xv3NuE+gP/ilqwHg4Fr/F80HWV4oaDEY2tT88hArjqdn5NzKfKzLJayIbesBO/d9/mW2WiQ3pbhULnqSL83rlLDymJdTzN480aa21AG+C8ftF6VG49YUzN519LIwc+LdQIFI1Xu4F/A6aWUitmTJxsz9AYtFCDtA/arix+iL+BVNzu6vjXtIrio54vv16Jhihq99Niodf8Czt3SyPczAelQ1B9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=smartsharesystems.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=x8ft7xQjOhE+qShL1epzqVecbmTzExDq0EFPO7gv8Zw=; b=URXUIpUpGt6GpxwbtEgPxf2DZhcd++14cDNeC5LdgVpoMHTj4ZwOlm7Ds8QfQi8o+UTyJDEW526jpOf/TU9G1H3asU6kReWUjN/ItlsK0LTX3CwVuSFAxTq0/kIbLtrR/tGs8UP0hCudt5GRn4ce6Y2ZbAWw3+cxpTXAqSpO2SltqacTARWvSsttGTAoG6Cr2/XZKgEArxC7mbMPfWSzpi4Gnp3KpYuM+DlDuAELNbLRfYp4k6Am1dJZoY2teZ8E3Zutk6io6uI/Kcslt+4AT4ynATomXpTiNwu5wlE/RCUfU+NnqDOYmQGCLmJVrTdAWdhQ8LJNpDBOwfLp4HdPgA== Received: from DM6PR12CA0002.namprd12.prod.outlook.com (2603:10b6:5:1c0::15) by SJ0PR12MB5456.namprd12.prod.outlook.com (2603:10b6:a03:3ae::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Tue, 14 Jun 2022 12:02:01 +0000 Received: from DM6NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:5:1c0:cafe::ab) by DM6PR12CA0002.outlook.office365.com (2603:10b6:5:1c0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.14 via Frontend Transport; Tue, 14 Jun 2022 12:02:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) 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.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.238) by DM6NAM11FT053.mail.protection.outlook.com (10.13.173.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5332.12 via Frontend Transport; Tue, 14 Jun 2022 12:02:00 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 14 Jun 2022 12:02:00 +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.22; Tue, 14 Jun 2022 05:01:56 -0700 From: Spike Du To: , , , CC: , , , , Subject: [PATCH v7] app/testpmd: add Host Shaper command Date: Tue, 14 Jun 2022 15:01:33 +0300 Message-ID: <20220614120134.1828188-1-spiked@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220613025006.1596552-2-spiked@nvidia.com> References: <20220613025006.1596552-2-spiked@nvidia.com> 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: ea730605-25c3-45e5-d060-08da4dfdb06f X-MS-TrafficTypeDiagnostic: SJ0PR12MB5456:EE_ X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: LSJllZf9Ra320LkPAEmcuopPaOAH0R9g6eVjTD+80PlAFN8jm1hcaAznmEctMoDvntEH7DoxAw49nOfEcF4DOOXQ7kXPuuC+Rak+yDA8p3f6gagaljDEWWkGUQxZNCX4OtMHuQDhv9fmi26lo6+dhTEqs7c7k3f2ZYZZndDrcGL/INPPmUvvI54OC8A3wGLF4bq6ybBWIe/TM8RvrrZR2qW3E+NWvoZ44XYFNFudim/UpakrwAhBsAeVOrLlcMoEZsotkSIebGbcuZDs7DhamTnLJM7fhXwjL5Fkk/qs5ThDMsWkj15xhSlkCA924FLW1Gpbi5TNBDef5/Abh4P497wy/evlO2LEqJWTCWRZr/uRZ+dShOdgaLm5O/azFUF1eEj0JCVUpigtKT0TTUPfuySgmcTkv3MwLG8uaotTs7dKi58CIKqfl/OO2G0BuanPhqVz+i2E7OGFqeOWwf2JLMne59UhIFZJxCbAP5PW4upwl3ojaOAhYJqvn3tM1JIqrSt9Bgl6arGc7WpaW3/1FTgBPIqTfPaRH1JZjraT8GcB41KqhRYDbJiWDqlQt9N01lSJLP/muKaZcNewkOGN5IEKHqOpIu+AHVoB6oizMGyMuyf4AwDuoKFvxA4zyLCSRLzRxl6FLw1mm15ikVZ2l1+22w2sEuk60RlFKNcZ5mqCtNzia6Qu/e0GHSXZoXBysa2NNopzI/RN2/LzlBcsuA== X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(36840700001)(40470700004)(46966006)(186003)(336012)(426003)(16526019)(2616005)(107886003)(70206006)(356005)(508600001)(47076005)(110136005)(6666004)(36756003)(8936002)(54906003)(4744005)(316002)(1076003)(2906002)(7696005)(70586007)(82310400005)(86362001)(4326008)(8676002)(81166007)(36860700001)(55016003)(6286002)(40460700003)(5660300002)(26005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2022 12:02:00.6497 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ea730605-25c3-45e5-d060-08da4dfdb06f 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.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5456 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 this patch is taken out from series of "introduce per-queue available descriptor threshold and host shaper" to simplify the review, and it's the last one for non-PMD change. However it depends on a PMD commit for host shaper config API, should be merged after PMD patches. -- v7: - remove some test code. Spike Du (1): app/testpmd: add Host Shaper command app/test-pmd/testpmd.c | 7 ++ doc/guides/nics/mlx5.rst | 46 +++++++++ drivers/net/mlx5/meson.build | 4 + drivers/net/mlx5/mlx5_testpmd.c | 206 ++++++++++++++++++++++++++++++++++++++++ drivers/net/mlx5/mlx5_testpmd.h | 26 +++++ 5 files changed, 289 insertions(+) create mode 100644 drivers/net/mlx5/mlx5_testpmd.c create mode 100644 drivers/net/mlx5/mlx5_testpmd.h -- 1.8.3.1