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 E04F1436EC; Thu, 14 Dec 2023 09:06:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D29B402E6; Thu, 14 Dec 2023 09:06:33 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2084.outbound.protection.outlook.com [40.107.94.84]) by mails.dpdk.org (Postfix) with ESMTP id C9E79402DE for ; Thu, 14 Dec 2023 09:06:32 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XESoFwW5VU/3CPTBMyg4/JccMyYdSN7Va51dqkSZnmNvaZ6JbOJjz2Qmyfs5S+cBm6JhD84SB+tJUvLlNlUuV5oa5Wp2/nep7XUmitdNtzn/dVpvGC9YhYYES0u23eaRt8ngOmLMCuRqwbEsb99BMXt9FF0RmiNWoBMYQp6hW9eBu4fzzb75AL9BE4/qTpf46mBpNNZHAYeaLf5Tuztqh5B2rhOCuIZVGa+yZYOrQ45XxiESkvB0Q4neWHvU/B1WQrU7+VQkc+4gNlJPK5mAEDAMgjhKjpNG55wziC5NaRdfbDg8Kr+5JpcifHy3GMgN+J1mJmONUqVPBdP0yNiFOQ== 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=8zojTgR8qRYapfW3AuBGPIhsu6HAyUmgZdOFGz5TG+c=; b=fZJY9PGG4zji3tKigIWoA5rUcEwUawWz1OZWjsOjURB/3g5AQgJEt9M/q7T/TJ2CYZ1iOy3ICZSPWnbsYYAYSproH9h31wXBC7ovOg4L1A/CHIvNNf/lzOgwjVjxozfOrcTn/i9qB5FtPa4EIULIKR/5GFMSs0AV5Qc+c0MSzGnJtRNEPH0fTkQMq/SXYis30HCHEcX8ZakXBYVvMEtg0jpyUsxHRUhY/68S4871a2DOwLUyMNaGRg2O1KgSDsp+UcyuxrqeDh46/2gw5n4k4uIC2HUgiK2RgqL0YtTbiy6gh2OKNLYtfOauNgilnx53wYoNRu9b+hnGNneXMnCH9A== 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=8zojTgR8qRYapfW3AuBGPIhsu6HAyUmgZdOFGz5TG+c=; b=Lg2f5rfqAGoRp1XdG6fUKTrhUVkNB0KeSGQc1WJgvRH4GtRtIGdnHRiEGKC/LtBXrGfAZOI87vB5CPW86O8jM7GrHp7QPPt3HWa8MWFNAqCjgRqUYBSB4ZewFkV+rCTlEB4qqcdu/WiXyd++5ML9wX365HFk5JehohDU5mw7MLSKn8TDQRO+3ZQejYbILiVndRJycQymnNzRVbCTfYzOWSFx3d9W+gthfzyvKxWFMS98NLTzf1zhhW2DHBRdLvg9GovD5k/vLTeigKHTJ2RN2EbhGmjlgCRhLtqWLl6HNDAyKReAgjYbBdedAt8W3hCBiSQqWsmuSZKQlXI06W+9mg== Received: from DS7PR12MB8324.namprd12.prod.outlook.com (2603:10b6:8:ec::9) by CH2PR12MB4873.namprd12.prod.outlook.com (2603:10b6:610:63::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28; Thu, 14 Dec 2023 08:06:28 +0000 Received: from DS7PR12MB8324.namprd12.prod.outlook.com ([fe80::3fa:75d:aeb0:6f53]) by DS7PR12MB8324.namprd12.prod.outlook.com ([fe80::3fa:75d:aeb0:6f53%7]) with mapi id 15.20.7068.038; Thu, 14 Dec 2023 08:06:28 +0000 From: Dariusz Sosnowski To: Gregory Etelson , "dev@dpdk.org" CC: Gregory Etelson , Maayan Kashani , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Aman Singh , Yuying Zhang Subject: RE: [PATCH v3] testpmd: add hairpin-map parameter Thread-Topic: [PATCH v3] testpmd: add hairpin-map parameter Thread-Index: AQHZ8iGdgwsreB9Zlku4wrEq1oJYqbCo5CBQ Date: Thu, 14 Dec 2023 08:06:28 +0000 Message-ID: References: <20230919101006.19936-1-getelson@nvidia.com> <20230928153605.759397-1-getelson@nvidia.com> In-Reply-To: <20230928153605.759397-1-getelson@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-traffictypediagnostic: DS7PR12MB8324:EE_|CH2PR12MB4873:EE_ x-ms-office365-filtering-correlation-id: b66ade0e-1352-4b22-c887-08dbfc7b9345 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: KnqAWTvB+NMRkAMQQxaVrEJBKZhr9HGeLI4kyvb0+oKfbJOw3d2B0oqUQfPtxgQV2XTP63+exbI9FzmqDqAHrE840JeTYJKSSJF/nojwrV+UebiL2dRISzBxp+BxNkfweK+xku4GaKffG81rt25gx+4o5iQbTvOLgB2u1OklWCjMG0a2hAbVlJrx2h7Zb7gGnZ8H3EX1vrWHTVqN/rdWUh0mXcwx2IWZGhK64xEyaVLEkAedDQGwwuvVEAEl9qijyjSuSTRdoH0Ld2RdQiirqVpruGt52QNfl1i/Fc2NRLCgOXmJqN/AWt5xCOgAkX9aU/zC7KIv3vZAiAcWdLAhwwklWFLTFS2s4WV/2Z5238IKgLcTfWO+DALWpt63UqDDv+DFzu8gwj9kMc9kzDdNlt4o06p+wEw1pzmCtTyBKYYju4/0zROZQmp6rIbjH0m/r6Ztu90UvXrscFFHkoDn4RU5Od2sI9+PuGt9clF6qhUCGH2fDFQeV5bA3oSLewfp1xkZ9N+HoiLp0PQZ/gbvokwAkM9JkI83cFqUy6zpzgqWKf9TTLNCCZjbEPKFC50SdslzE/isQVd/LR96by21fTmLWn+2W3Srl6SYuAgRKQo5P8kUq8lTWculNcEaoVba x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR12MB8324.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(39860400002)(396003)(346002)(366004)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(52536014)(76116006)(66556008)(64756008)(66446008)(110136005)(54906003)(66476007)(66946007)(8936002)(316002)(8676002)(4326008)(7696005)(6506007)(478600001)(71200400001)(26005)(9686003)(5660300002)(2906002)(41300700001)(33656002)(38070700009)(38100700002)(122000001)(86362001)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8ecEZIlVTOZ75TUu/F/ux+qGOObV7gCmb2hWLTbXCg3jiR7ZVs9C2p2AJ4+x?= =?us-ascii?Q?ahlMUitorKHVJ0cNpKi2cL9m5TZ+wYCl1+6gyz76MYwlrkfvG6FZTaPFFbgo?= =?us-ascii?Q?o4qrLbrLj8sXHiZA/6mU4O76slrbSrcpCYLN6nILUHrMW+HRKQ7LyLZdnMBb?= =?us-ascii?Q?VCjeNWIEk7QNweC8nf9eMYu0bY29JrCOIsR9CMvgMysF2NRsc7WGgv27rr8Z?= =?us-ascii?Q?MjXhl9/wjd9gJcSzUt/Uy+y1GX4Lv55x6udOFgyy/fCBN0Kuy2MVGZ9IDyPn?= =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qVLF0Y7MwgkfwlQjm8OM7LzdGX2/xGt?= =?us-ascii?Q?Pzq8nDoAcnCEusdPWZb6AiNA+pI2V7u0kYfXVh0RFWs4UZw0AQZL1ZBdQ8zI?= =?us-ascii?Q?RxgokuToWhcVAWaQKVkFAnqp9FDiV1jV9QWNskRH6ELJoRZQXtET0scEG2kQ?= =?us-ascii?Q?IkP9JCN2qP8ONhhiAkKe3RD9IYUfxIhATDC1cSFI8ywlwMamxnt3QMAt7dqT?= =?us-ascii?Q?lElrMXJxkt7mtjVAOJstzjxaGoZeBEQrtU5/DMdV5cpoBT1rwUjosFpLMpmi?= =?us-ascii?Q?fMYSwowWb5HcQfWqCpg7V47jMA2hvVjjwq2A/BGdoJc+4dN8Fafnk28Wub5Q?= =?us-ascii?Q?BtBoGxkdOxE1NmZoSartPKwHnHp69iD8Ro1d8P+ox3p+jyfMhoJmFVFTFzz2?= =?us-ascii?Q?Zzx4FyheTyczu/3qWKgSANHKDQW+FwcrLy4IAtcl?= 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: DS7PR12MB8324.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b66ade0e-1352-4b22-c887-08dbfc7b9345 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Dec 2023 08:06:28.4702 (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: SQhngj3K8V05G/PnuxIbs/MOjNE/6GrxgFNnVP/5npCW8/uoBJ+Vjjnodz1zcrKxlpSwHShyuMCUtgegvMbOmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4873 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 > Subject: [PATCH v3] testpmd: add hairpin-map parameter >=20 > Hairpin offloads packet forwarding between ports. > Packet is expected on Rx port , Rx queue and is delivered to Tx = port > Tx queue . >=20 > Testpmd implements a static hairpin configuration scheme. > The scheme implicitly matches next valid port for given or . > That approach can be used in a single or double port setups only. >=20 > The new parameter allows explicit selection of Rx and Tx ports and queues= in > hairpin configuration. > The new `hairpin-map` parameter is provided with 5 parameters, separated = by > `:` >=20 > `--hairpin-map=3DRx port id:Rx queue:Tx port id:Tx queue:queues number` >=20 > Testpmd operator can provide several `hairpin-map` parameters for differe= nt > hairpin maps. > Example: >=20 > dpdk-testpmd -- \ > \ > --rxq=3D2 --txq=3D2 --hairpinq=3D2 --hairpin-mode=3D0x12 \ > --hairpin-map=3D0:2:1:2:1 \ # [1] > --hairpin-map=3D0:3:2:2:3 # [2] >=20 > Hairpin map [1] binds Rx port 0, queue 2 with Tx port 1, queue 2. > Hairpin map [2] binds > Rx port 0, queue 3 with Tx port 2, queue 2, > Rx port 0, queue 4 with Tx port 2, queue 3, > Rx port 0, queue 5 with Tx port 2, queue 4. >=20 > The new `hairpin-map` parameter is optional. > If omitted, testpmd will create "default" hairpin maps. >=20 > Signed-off-by: Gregory Etelson Acked-by: Dariusz Sosnowski Best regards, Dariusz Sosnowski