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 12B1DA0548; Wed, 15 Jun 2022 09:51:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE20B40221; Wed, 15 Jun 2022 09:51:39 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2089.outbound.protection.outlook.com [40.107.237.89]) by mails.dpdk.org (Postfix) with ESMTP id AE89E40220 for ; Wed, 15 Jun 2022 09:51:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zk6h/D0Kx8g21myifg2necrJn3hNVM2Q2UvaxWLe/Dh1Esqq8mjMoHNW7k8ezqNt7QDXlQ85r3V5wamd65W5TkjDAxjzTsqKEQm8jt0MCrbrjacngK3AYnyDjJkTjb+oByOuP4+NZ611rFp5wfF1dzxTmagUwctgBQ/C7iIZmTTdtmlZoFUndq7AWWMAjKn9/Oc2o1TpLZ+FjuBz2rvh+ItWy3Kdspt2Et6SQgldSLG7RfuWx+aqFIEuLKaxT2Q2Kt5zh+svSOMUJWhvV87cnXS+05T+qbsLSdFW9zJvgxtbCfA5zrykWoU9GDewH31tcmqY5fryjwNeqlV2PDw/6w== 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=adqAyt4MT/duJsfez89tkbQlVvRnNyimWFnxJUvIzrw=; b=IqJ9kmqFS4RcRiLNwNpSwrrVgCYGfT+GQUpQJqurpeSdfAUagMSlf854U9bbGDjL0UAg4mOBoNpVgNyFXirLRYEaO+cJY8pubsdZzfD8/94L5/6WMhEg3FaDIxKcVKg+M4BsgG61ndiL3lXmD16DEv4yqtg6lLtpg4Ksgd1YL6VEJUtzPCLTM3pSi+RuEXHtdElXq3TH+GyqHevx4VKuRNlEFFMOXSN7He6BX8FmZlwGZ+147STYHNTcEV6HPGIdcrWBEhDJMRhzvXqJBPWrAH01zUoFhK2Uqj5TyfhVLm5oeFV1P1qo9X4t5sKQibNhmNRpxTT3p4VdFuhidkVkAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=adqAyt4MT/duJsfez89tkbQlVvRnNyimWFnxJUvIzrw=; b=udrVA1to0aWPIjFaf4XZlC0MbHiRklwW6ijM4EJLCK4YsM3xIUOzVd7XksXjALa1c1cJUCLw4QhpIQpw6upPfaYydRkybkNR+gTH9Pp03RYLb5nFp+9+zA8+H2+dXDDq7OrAeOeyeRKYp/CHS+XcwjyAOXMqPVe9+XntALYcTFWpx+7+MxNlzHWQKVjgtv7NF6y/UASRjlJo8qLm2YLUAwvE2i8sVKF8nCqpvxcvp2m5LhSR4kzEZrBFJ2rXU3xkhuQzUJxUHsnkx2VdmWzd39lC//qR16fPAwJtqYHJqGOse01+Vv74LHOT9QOef0LIMp5Gl6jf8BJGtLxocl3r6g== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39e::8) by DM6PR12MB4958.namprd12.prod.outlook.com (2603:10b6:5:20a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Wed, 15 Jun 2022 07:51:37 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::202f:4817:3698:ea4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::202f:4817:3698:ea4%4]) with mapi id 15.20.5332.022; Wed, 15 Jun 2022 07:51:37 +0000 From: Matan Azrad To: Spike Du , Slava Ovsiienko , Ori Kam , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Wenzhuo Lu , Beilei Xing , Bernard Iremonger , Shahaf Shuler CC: "andrew.rybchenko@oktetlabs.ru" , "stephen@networkplumber.org" , "mb@smartsharesystems.com" , "dev@dpdk.org" , Raslan Darawsheh Subject: RE: [PATCH v7] app/testpmd: add Host Shaper command Thread-Topic: [PATCH v7] app/testpmd: add Host Shaper command Thread-Index: AQHYf+aQD+O6+M8C0keknJyeuZRqGq1OzS4AgAFMXAA= Date: Wed, 15 Jun 2022 07:51:37 +0000 Message-ID: References: <20220613025006.1596552-2-spiked@nvidia.com> <20220614120134.1828188-1-spiked@nvidia.com> <20220614120134.1828188-2-spiked@nvidia.com> In-Reply-To: <20220614120134.1828188-2-spiked@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e354666c-cae7-4518-ce07-08da4ea3e003 x-ms-traffictypediagnostic: DM6PR12MB4958: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: MQEN0E5lnSOF3pHaliDQxzjwiDOV6ywyEKjCm1OzVXFrJV9NSihIO4n0GMWjYmqH6hKlhcGKUCU7N8mdvvalxeOL/gpjSBIT50dVpk+LeNyadvfMOoNBCxaxtwX39DrEhSMvok1Ep7pjJUqPeDmCJ1z+lKu751g1CjoQe71uU/gtKSApa91YWpv7+EGQRqQA+I/lUm7TWOwpkzmNTEpDpanabKDhE0cp2UrL7USNPeTw9h4yXvnud5uj6XppCvDBGpjAjJAhh1I+s5PdnchTiEP9Vvru3LqakCMePf0nV1aG7nFcM1jC4fvK3k4GmmcQa9acZrQC++RfcgDAqRiWFHK1MgxoZ/zA0tq1BA19miJSCp/a6ZGfgkQ5aEsaE+kj4ca0Io2Esgfjo1C9VSabraqYM6NSX5kQ5r+jGlIk8tpyNaKeMRfuDrkKe2CvOZKWZ/626TiYySSj/AmTIrp+S6XrH4JRhr+Sae6DnBT1+nTXSimg5fRrCZy+KyiNrEAivZyR6qThINh5hzst6Pw3CgRNZz/OcDkYXz5pFE1/7KzmhNz0U6V/CISt1Ol1iy3OOLTwz7LaD89y6shKAPcWhHmMbuIMT68JNDq7jifMrI7bitzCknORlEgvcpjt41Nr0tNZmC6nWibpLlxhCEdKFRbLkdXV8/dnrUTmj0EpGkR2K9VyBLxCCdGdBNQOUlRJrT/KKdMYzxF67+FXods0nw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(6636002)(54906003)(186003)(122000001)(38070700005)(316002)(66446008)(26005)(64756008)(8676002)(4326008)(86362001)(2906002)(110136005)(4744005)(76116006)(66476007)(66556008)(66946007)(6506007)(9686003)(107886003)(508600001)(71200400001)(7696005)(38100700002)(8936002)(52536014)(55016003)(33656002)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?E92KdwkxMUuiSSGFNVYRwImGfGZZXKeiloeMCKdU/oT+ZW1TLy53SUxRHEq+?= =?us-ascii?Q?ZoDUlTml1WvPkQN/MkU0RfxyXDj8HhIWi0hpTYb3dQYyHRnHq+uWmB+lrK9i?= =?us-ascii?Q?zj/rUSGlz2kYZ9rdG4CQPyYdBDOEVXb1FQbU/9MBWtLkeQp/7JfOoeAvh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t6wdsiPXLXUkRHMJsoLCqK6yFVdNjKs?= =?us-ascii?Q?NyYryqUVF7rJJLYihFazYQr1FraV0/WXU+CVXvoTJ+MXkJyBDHiiIVTuAGaV?= =?us-ascii?Q?ZErmmZsawFqa0pLRnkqbHExtDoE1UdMMG3zss/kRxFnbFPm4ZGp7A2J/l3gd?= =?us-ascii?Q?m8ldtsthJvhz3T2KOb7rHyF6IOzdOlV25UHsfjCNUefFhmSYfLl+Tn3JUShh?= =?us-ascii?Q?vSI5a5dtIC4t8q+Y8mX+v8w19EPc85snZgJNjsTMUGcMKwuOVvxMHMT0xzol?= =?us-ascii?Q?BAiN91KM1d2Ag5mBcuRXwyxJlc7mgPrRDE5OUdTkHGPlN96ab+0Ml/AubcC0?= =?us-ascii?Q?naWXPdM0U3o42jr/0b+Zoj/YT1c7CbPSFql+NyyGjWWyoLHenOxvB3+I6UzG?= =?us-ascii?Q?A2r2/ddr1PzNCGR1LcXaAqGoSYJ0W+LhAVpTpvrm0yMfEKFEnWjGvNvPNits?= =?us-ascii?Q?RMB441LXRPhneyxp1HaUZtX3546T/uJMx28P1mrdspWPnZkR+PsdrybaqDjp?= =?us-ascii?Q?x01/0qvffrRulolg0x+ZWvwxD/Wvfmk63k4JdbB1Hs+Jg+TJT9bsf3NpweZY?= =?us-ascii?Q?JULmo4qiv4H+qJgGkMzFV7rr5ecuopehIe1Xexj1Y6Wln4JPNK22Ad5N7RFa?= =?us-ascii?Q?SxZMx4IXqHr+kNsywyiug5cP/y9thFAf01CfFNVVOR5HP+xc?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e354666c-cae7-4518-ce07-08da4ea3e003 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2022 07:51:37.1015 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VCvolNscIzpy1LYG+CYhn1h9HRC3IGoXWbjI+7pn14tVSNXhCvUIgAxjo+VUZOv6z/0J9HyUs7f+YomBQAB5Pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4958 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 From: Spike Du > Add command line options to support host shaper configure. > - Command syntax: > mlx5 set port host_shaper avail_thresh_triggered <0|1> rate > >=20 > - Example commands: > To enable avail_thresh_triggered on port 1 and disable current host > shaper: > testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 1 rate 0 >=20 > To disable avail_thresh_triggered and current host shaper on port 1: > testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 0 rate 0 >=20 > The rate unit is 100Mbps. > To disable avail_thresh_triggered and configure a shaper of 5Gbps on port= 1: > testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 0 rate 50 >=20 > Add sample code to handle rxq available descriptor threshold event, it de= lays > a while so that rxq empties, then disables host shaper and rearms availab= le > descriptor threshold event. >=20 > Signed-off-by: Spike Du Acked-by: Matan Azrad