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 21B01A0543; Mon, 13 Jun 2022 04:50:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA41C400EF; Mon, 13 Jun 2022 04:50:31 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2082.outbound.protection.outlook.com [40.107.220.82]) by mails.dpdk.org (Postfix) with ESMTP id A31144003F for ; Mon, 13 Jun 2022 04:50:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a3kTJythF4iPfHUsE7Y77DNSG7Xusx7vuJlG22u3XU9HrfrTd+CRGS1Cw/llfNA3M7bUPExZSlJ45p8RS/DBaW41k+SeL2aJTUa9DLarojk+hA8hogQ3S2mG8VRAp4BzxmmAANZ4Rs65roAiNvbW8Hcg/nvhel9YPZblYie8TpJ2DiwrsI8FNrszLPTOqtZwTHxr22PoeL0Jk0Ffjkf8zC9PzWsZCwBEVahUwdmIZELjVowTaJCr1XvAMDmFNGQ8TV7HJza1IJKXhl62eGY28EiKMZVxPvjwByrkMGWgHnSqGyYTNfLI6SEreoVHoRX951N/XCDr7ygUPJu+KhSMxA== 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=x2rfij5II5H5XDe66fJT8zjH000Tvq7MvzESOMj3cMc=; b=G+wKCodNWMZH4QZ2L5SzYWc39JHr7v+JDt+Eto2CAfOqNmXckfM6TDNmYaVAviAYZ+waC/PKs8Ah1mcQaSe4sR6Wa6vXZe7YI4g6EQM2TzgZeXYRuc+nDJpIwFEssiKVAe7CA8fhB6IKSSJP4xpDasdZgAzFw12YDVNx8uGJt6S8seoRekG2GQNtSpndq/YUCl79gN66fA1eQNxOUpVl7N9PqOt8tOKE5XbPcQN9N1tIvlDP+Aqf6VBDbOtW06ID7Bk/zjDb7Z8Eod1x4ReEVUkemJFx0309zNeQUZLJW9nn2tsVRF1tZOxotYh2tJp7BJI0q8tPCqkRUJkGH41Tew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) 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=x2rfij5II5H5XDe66fJT8zjH000Tvq7MvzESOMj3cMc=; b=tgk69EBPvnq6lZaEJ/nyS11q3qgHP80KVtOXe1giQq2c2kKyuGCBZS/4c+a2R0FlgKss5jyuik06qQObx71TrYzJUObc7S8wvF6Re1iZBYcq6xSH0Njm3x1B4CoDYoZH/h4SrH5Foi71Xq+azt65unKDwcA6s2MTRvhesnoIFF6FXZAosSpRTBq7WsWrkeUCVrvx7L8M/Oe/6pvKYylxkugjpfw/OxJOQFIIcsizEkIuPOQtBSKYnTLh8UwsrgmyI18pcbPmzg3EHWqR++vjGOsWWakzpYxiJUmk3Jd7dt+B5LCv/Jj1fxhVhFEer9xJ+DtjFXj27XSIzYrc1NZW6w== Received: from DS7PR06CA0006.namprd06.prod.outlook.com (2603:10b6:8:2a::7) by SN1PR12MB2510.namprd12.prod.outlook.com (2603:10b6:802:28::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Mon, 13 Jun 2022 02:50:26 +0000 Received: from DM6NAM11FT005.eop-nam11.prod.protection.outlook.com (2603:10b6:8:2a:cafe::69) by DS7PR06CA0006.outlook.office365.com (2603:10b6:8:2a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13 via Frontend Transport; Mon, 13 Jun 2022 02:50:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by DM6NAM11FT005.mail.protection.outlook.com (10.13.172.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5332.12 via Frontend Transport; Mon, 13 Jun 2022 02:50:25 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Mon, 13 Jun 2022 02:50:24 +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; Sun, 12 Jun 2022 19:50:21 -0700 From: Spike Du To: , , , CC: , , , , Subject: [PATCH v6] app/testpmd: add Host Shaper command Date: Mon, 13 Jun 2022 05:50:05 +0300 Message-ID: <20220613025006.1596552-1-spiked@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220607125942.241379-8-spiked@nvidia.com> References: <20220607125942.241379-8-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: 190d550c-7784-44ad-8235-08da4ce777b9 X-MS-TrafficTypeDiagnostic: SN1PR12MB2510: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: LHoM29OvnK9XSgqw0c7JLIG4u4lfKIDXuHFJDcGd9p9i37J/F8ZaYxqNBDvABOaGZqxIKF9FcNzPVc9wgekFd4c+MGwjHfwrh9UmMzsiCr0GBCLyNcY4dr2DXwJaiGmgi+5tNifd5T24wAQhVLUimW8AtatRbYJ4pNBH/EoC25gSBef3U82Mu6PGcJq63bh3gwqdefYDZz25zu3iUYcpn1DjnF6iaC47OY6bpX1Yoae2Lg2G1Yku4kf09bBRxoaXTeC3SUcTj3vYYJtEWcEtdxML9/x/fYFidbjB9nWrbSBqhyLPE9cGl4g5fHEnmUfF7vLfYgqN5Bar4BVaxfjt8h5OQPEwnJa7HkeWe5fPsaGFepHMCmE6tsNs1D7EwPhFH8Ehitu8EN+vdxzDoMFWwZYw27rXyVkNBUdNJN89a1D7AxtdgQ0/wA16Ll+NM5cWw4tKm1RN+iHqlf5Jwr4hpWPYaB5kakmDL6XSW2qvX7+k382XCdmQKKA91PDc0ey+BTv+PmtNuIZVzk0vWwmfxq8sgKwjV/tJnaam/4aovgdacpnp1LETNuxQJ8DTnPbeo9mC2w394WgU5J1XVpyklLTWd6vZPy+qiwgVKnftsq3uWR0mbv7QR0iA0ItAiceIkkee8vurb59KRzG4Phj/5fywWymPL0fxycVHFeOac8MNDK/iW/h2HvEmc3taHb5VyC352lNmL74vOLEEnhOnYA== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(40470700004)(46966006)(36840700001)(70206006)(70586007)(4326008)(6666004)(2906002)(8676002)(8936002)(508600001)(5660300002)(4744005)(26005)(40460700003)(6286002)(86362001)(7696005)(55016003)(316002)(36756003)(54906003)(36860700001)(356005)(110136005)(81166007)(2616005)(336012)(47076005)(426003)(82310400005)(16526019)(1076003)(107886003)(186003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2022 02:50:25.4899 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 190d550c-7784-44ad-8235-08da4ce777b9 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.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT005.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2510 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. -- v6: - add 'static' keyword for cmdline structs - in AVAIL_THRESH event callback, add check to ensure it's mlx5 port Spike Du (1): app/testpmd: add Host Shaper command app/test-pmd/testpmd.c | 11 +++ 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, 293 insertions(+) create mode 100644 drivers/net/mlx5/mlx5_testpmd.c create mode 100644 drivers/net/mlx5/mlx5_testpmd.h -- 1.8.3.1