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 9DB2D41CBA; Fri, 17 Feb 2023 07:45:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88F95410F6; Fri, 17 Feb 2023 07:45:58 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2078.outbound.protection.outlook.com [40.107.220.78]) by mails.dpdk.org (Postfix) with ESMTP id 1C18C40A8B for ; Fri, 17 Feb 2023 07:45:57 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IUrln0W3obsTcGw+sejTuK+lSNkKhVKoEhYcC1M/wDOyFmgYwjWXQnkKUatlE7rIS4INNd9iq2/4fB/LxkaLXS3uGzYsMLP1gpJnBLEnV+Q+Jq/0xumlplyVSEf/PV3cK3psWU1m3w+a7rb3QQAzUOZiivmftlzuV8RNzANRJaXKf8SEtrS9CAW1Qs3AxCHG4ao82QyCbFXFV4P3u/D2oaJC1CcC9v0mFbk/CB4PQ77hynpv2e2Ngh4qysYx6EbdvqFMXZgv762M7/ajrWbPfNWZ3fvH1xfECj3yUYb/CXkw3HZ3gfWYnaD0/9DToxG8Ou3NGFOxWERqEM41Nn2ZeQ== 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=Q2WParBwG/VYhE/9fC43X04EOZY/bxDjC9Z/l3f4vpY=; b=d5QOJmbnTz2l2h/sY8xgWgPZiOPEgLWSFZzCtu9/00EiQfW5K7tjCal1JhXM6lvSuBKcN4AKsFKdDH3vR/38Lw7ENnu+oiMWV3ZAf8cQMqcjbeiTeS8BhR9F4j51Rj0ua7gylkAi1KwK072OTs8a2+Ut5dZ/Qkc9ir2WUKgfWbiOmnCamw4kBPZjPeRTQIaWGJ2UE79I6AEOC+2gp3JumjqLqoGewQkvQocCOg/RtCB1CICUKfci5wrIDNEODJmuoVmT5VfhQ29A4trsD/7qo9UZcvMReFOayNrTMYfz9USo0r+OWg22/FG5dzPNHXjQdHtvQV48RoUL8KW2/jcXog== 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=Q2WParBwG/VYhE/9fC43X04EOZY/bxDjC9Z/l3f4vpY=; b=QnROe8rvrgagiND7gSTq9XPKvyDvPa0kbwdGCxIdc3vXmfFIzLscnUNQa78AdAJN9qqRopFl4nIthGeRV4B7rpiBU/J0Th9TSgRRdDQdaZ6hUd7nCtmBARCM+gLrkyNWdGGkrflrLczSMzilair3wpjQfwB5LTAJ4Z0nHKpqNJ0VaOZ8/kX7a87o3IjwtM/HEWQeQbfJLhRgEj7WUbr+/ddFTNWyYo25/BuMATaAxKAU4edqfburIo96zDbwNbAeiKPxXMkeugmy9SbYww8PfylUQEBGaWm+Zyz8+zzSg431NxS/1j7BIbPBLlPwZV0eYOxH/z0l9XeQEKPzpjwNuQ== Received: from PH0PR12MB5451.namprd12.prod.outlook.com (2603:10b6:510:ee::20) by PH7PR12MB8105.namprd12.prod.outlook.com (2603:10b6:510:2b7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.15; Fri, 17 Feb 2023 06:45:55 +0000 Received: from PH0PR12MB5451.namprd12.prod.outlook.com ([fe80::eda3:8be9:a0a7:9f53]) by PH0PR12MB5451.namprd12.prod.outlook.com ([fe80::eda3:8be9:a0a7:9f53%6]) with mapi id 15.20.6111.015; Fri, 17 Feb 2023 06:45:55 +0000 From: "Jiawei(Jonny) Wang" To: "NBU-Contact-Thomas Monjalon (EXTERNAL)" CC: Slava Ovsiienko , Ori Kam , "andrew.rybchenko@oktetlabs.ru" , Aman Singh , Yuying Zhang , Ferruh Yigit , "dev@dpdk.org" , Raslan Darawsheh Subject: RE: [PATCH v5 1/2] ethdev: introduce the Tx map API for aggregated ports Thread-Topic: [PATCH v5 1/2] ethdev: introduce the Tx map API for aggregated ports Thread-Index: AQHZQIvoaV4NNsu3U06E/+QndlyGba7R2tkAgADa7zA= Date: Fri, 17 Feb 2023 06:45:55 +0000 Message-ID: References: <20230203050717.46914-1-jiaweiw@nvidia.com> <20230214154836.9681-1-jiaweiw@nvidia.com> <20230214154836.9681-2-jiaweiw@nvidia.com> <1879381.g5d078U9FE@thomas> In-Reply-To: <1879381.g5d078U9FE@thomas> 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-traffictypediagnostic: PH0PR12MB5451:EE_|PH7PR12MB8105:EE_ x-ms-office365-filtering-correlation-id: 3f965450-6bac-445e-095c-08db10b29e7b x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0zUTPevxmpWpvQE9o8xX+qtGvAEPKm/8L6aCwM0otjQzy1MwQPXWV6VIKt039UDoeJUUYLlYtLkpJv90jvgLVIYdx8PBh46PXzhnEqcknBjmqgNHPoDPfle/Xiq147u6oGQAp+lAcVNgJgq+Ku/dv+mGxp2WjLzUI6J5MRd1/EQVM/CQlA5PeLVTuGDjkGbJAyEUGCmMuLZZOglKXNruG54GI4i4K1ehWdIyBHJ3zkB693rlju2sAax0WldfTvJ+Keo5yonYZqIosJ7AgmyqBds0GdYC1HxTpCnTKCMa7BfhOSh6XCcmOu9lQ0IXX5XOGCRJe3aThPZj8I2z60+LS5ScBp8e0CMZaN/NvnMw+G0qJ/slMBiG+rmMwjylh6w4U2AJ6Y01/6ZKZv8XVzafnpQE3GrIq/eCEie3kneouJC+mnmpBgTR4DemMU8LdLiLnuoF8U3zaTaIt3y+jJDe1+rUNAwPz8dUYO4+bwBTupJOPUQAve0LEvN3AesQ8qUMLRalpejQMVuUkEvvwSP4wzLeMutBR+IHzd8nR1R6A16i5/FkI2aUWZ1IsO/yKVKcz04NB2GQuEgaF6N0zJllFT/h2IrV12gtEGcr/NgABfZJc7TCOckkdVpccwWfRsV2GWodYoUCs/aBIY5a/hEwYh9DrkWgjiFxMmAJIna8Uxsnac5fzBLk76cjYJzqV68PWWvxYJTerr5hANR18sMuoA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR12MB5451.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(366004)(346002)(376002)(39860400002)(136003)(396003)(451199018)(54906003)(8936002)(52536014)(8676002)(6916009)(66946007)(76116006)(66446008)(66476007)(66556008)(4326008)(64756008)(316002)(5660300002)(2906002)(71200400001)(41300700001)(478600001)(55016003)(7696005)(107886003)(26005)(186003)(9686003)(6506007)(53546011)(83380400001)(33656002)(122000001)(38100700002)(86362001)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1uNr3kfp2t0JFrhP1+vtzq0xSIr4brTKba3Sg7yKB3GGyGBMBPlkO/aQVUiP?= =?us-ascii?Q?2KUhpVXpXtNEodFbH14zrQ/MI08MerMLg5rV9TVZrvapJXmTgitqD6DBWn2l?= =?us-ascii?Q?kVQW3g6am+4MfaZeK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= =?us-ascii?Q?kyM2npoa2/8KTNQ2iyIoXOnP+oVdyNTXfigkRGyHE2bL5dx/JPgIsiIhjuLd?= =?us-ascii?Q?aOY0ckECHwuwahbSytKV1S1a5XDg1LwEdAHm24OR3qMOyyKTXNMAIPF1LTtB?= =?us-ascii?Q?J28vFS5Uzl63FUDVcqf1pGHnSyni5EGtm7uhkTeWg9WVBA73OhETcDlKI9t2?= =?us-ascii?Q?lq4+Q+aKSARavuN6559c8E2EAfZeakVlI8C/9/Yh6+mKO/+IucjItMAqkTVU?= =?us-ascii?Q?4fvY1OsFuBqyGSRBQsIiwJTXgqXJnRdefQo2qAZg2LQ/rUTWaahf8PwIoXhD?= =?us-ascii?Q?sMHrpgEIKNS4+gv8iN55+zFTVTtZcG9XjizzbH1LTrOnG7yuMr5y45TLoGkQ?= =?us-ascii?Q?6gPHzS2ejzqYEcdytmQaT1SYbyEDcqd+PevY4wA6IX4yJ84II1dEVTtb7+Jp?= =?us-ascii?Q?eRvvOEicez/amoRNVc7wHTZaMprtlSABEhPLygCEJxg8mOgLqCJjAndBj1G8?= =?us-ascii?Q?0218Y413E/MVRN38Wf2xHUDvtkiy+eJ5hNbnVSx5FfJt49nGu6iF5MSlomtS?= =?us-ascii?Q?neyz9lUKlc976A+A0eYH0KkLyoZnSzj6XY84MVL7?= 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: PH0PR12MB5451.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f965450-6bac-445e-095c-08db10b29e7b X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2023 06:45:55.1674 (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: aFcURcq25hBJu0VKUJ0p1YDYLwmtQa+ebAUAFGmCfRvXyPv71pvqz1+Mr2Y6d8EbY9ZVlPgOcDYcsDErvc1/hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8105 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 > -----Original Message----- > From: Thomas Monjalon > Sent: Friday, February 17, 2023 1:42 AM > To: Jiawei(Jonny) Wang > Cc: Slava Ovsiienko ; Ori Kam ; > andrew.rybchenko@oktetlabs.ru; Aman Singh ; > Yuying Zhang ; Ferruh Yigit ; > dev@dpdk.org; Raslan Darawsheh > Subject: Re: [PATCH v5 1/2] ethdev: introduce the Tx map API for aggregat= ed > ports >=20 > For the title, I suggest > ethdev: add Tx queue mapping of aggregated ports >=20 > 14/02/2023 16:48, Jiawei Wang: > > When multiple ports are aggregated into a single DPDK port, > > (example: Linux bonding, DPDK bonding, failsafe, etc.), we want to > > know which port use for Tx via a queue. > > > > This patch introduces the new ethdev API > > rte_eth_dev_map_aggr_tx_affinity(), it's used to map a Tx queue with > > an aggregated port of the DPDK port (specified with port_id), The > > affinity is the number of the aggregated port. > > Value 0 means no affinity and traffic could be routed to any > > aggregated port, this is the default current behavior. > > > > The maximum number of affinity is given by rte_eth_dev_count_aggr_ports= (). > > > > Add the trace point for ethdev rte_eth_dev_count_aggr_ports() and > > rte_eth_dev_map_aggr_tx_affinity() functions. > > > > Add the testpmd command line: > > testpmd> port config (port_id) txq (queue_id) affinity (value) > > > > For example, there're two physical ports connected to a single DPDK > > port (port id 0), and affinity 1 stood for the first physical port and > > affinity 2 stood for the second physical port. > > Use the below commands to config tx phy affinity for per Tx Queue: > > port config 0 txq 0 affinity 1 > > port config 0 txq 1 affinity 1 > > port config 0 txq 2 affinity 2 > > port config 0 txq 3 affinity 2 > > > > These commands config the Tx Queue index 0 and Tx Queue index 1 with > > phy affinity 1, uses Tx Queue 0 or Tx Queue 1 send packets, these > > packets will be sent from the first physical port, and similar with > > the second physical port if sending packets with Tx Queue 2 or Tx > > Queue 3. > > > > Signed-off-by: Jiawei Wang >=20 > Acked-by: Thomas Monjalon >=20 OK, update the title next patch, thanks for Ack.