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 3E31545C22; Fri, 1 Nov 2024 03:52:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5FA943283; Fri, 1 Nov 2024 03:52:16 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2044.outbound.protection.outlook.com [40.107.96.44]) by mails.dpdk.org (Postfix) with ESMTP id B498640265 for ; Fri, 1 Nov 2024 03:52:14 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gajFRjfhCMSqVaTVYttihfexk3ZyNherxnNlnDgJ3vwrs3UKAidst0arJpsTvntsxlJ/9XikNnJ3PE9mXDdtVHNFuFaDbl6m0DU4YavMYEPb8Yt32X9dXixSM5kzEvOuMKZpo9ZxLPX78U8PtxwZJAznMSONVsjqOjCbIoJ5Dw/8B76gmnLQQewqm9oFWdL7W069fuVXd6tDldWhnwO2VuSTd9VtNp4DF7aROuDsr71yUQLTWG5O3PWFy++6iDAlfRNkNIqETyjCSZPfBdQG25y8BUl9eyIbFYS90qdpfBUBpE47Jc5LmS4xC+/elGOakSAZaxzebitIN19zfYHI3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=oHlM7g3Kwvlkw5wjp2bICHnw4CW6T9xMEWLw6wwOyL0=; b=mtmotS7SnXOCgTGzJCQPVnLS/8mQt4Z+AL835iSDRyhJQCdV9pbK3zIDQxAeaVK6Y342k2DjogbWwtUvQUTy6R7+slEMJiKiCUYz4YB+00aFzj2euCQNRI5M5Qv6YUeU0NZznBeTABVjXdXuxd+09rCagBeC2ogT6iYGUAS08oLyZg3EYuNnjGaVPsCgmMGu7/BqPnJTBbv4oDyb52TRLjoFu8tgSAliqEcR8E8ybLavH8DoRIrnqCUBetVwuutTBtf39HYeJAk0q9V1IygW7NBjyaiUPd6Rqv2pGmgFPmEuwP4TXF4tB5aUTdqv3QZq61tF2Ri6pfLRsrFR2IMuiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oHlM7g3Kwvlkw5wjp2bICHnw4CW6T9xMEWLw6wwOyL0=; b=wYst530AUatb2zniSW69ZGYbSxTlwG6gqx1lnEUiOLIwd6FwCMiqshDpBqaGSnq7NyvVP613Xjd2vq2p9NPS3FVq85mQ0Ogdkp8zvxRPntt+8ywV8Bj6xLNbL2yCpJlcMzsgVPWFeAeQoVV6WtEGPAm/LwU9wX52o+NhzCfTqhU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) by SN7PR12MB6929.namprd12.prod.outlook.com (2603:10b6:806:263::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Fri, 1 Nov 2024 02:52:11 +0000 Received: from SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055]) by SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055%4]) with mapi id 15.20.8093.024; Fri, 1 Nov 2024 02:52:11 +0000 Message-ID: Date: Fri, 1 Nov 2024 02:52:05 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7] testpmd: add hairpin map parameter To: Stephen Hemminger , Gregory Etelson Cc: aman.deep.singh@intel.com, david.marchand@redhat.com, dev@dpdk.org, dsosnowski@nvidia.com, mkashani@nvidia.com, thomas@monjalon.net, yuying.zhang@intel.com References: <20240922065053.996568-1-getelson@nvidia.com> <20241031045817.10497-1-getelson@nvidia.com> <20241031085141.5aee5ed4@hermes.local> Content-Language: en-US From: Ferruh Yigit In-Reply-To: <20241031085141.5aee5ed4@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0194.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::19) To SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8830:EE_|SN7PR12MB6929:EE_ X-MS-Office365-Filtering-Correlation-Id: 43e6f663-2c44-4b57-13c3-08dcfa202f14 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?eVpYbHhjMStVTlFVOW40cW5KQ2JlUXVkanl2ajdBQmVWRlRpSUdteUx0RlNp?= =?utf-8?B?ZmdwTnR4Vis0Rkd1UnpmSnlGOW9IVldXTFVFV1A1S2EySFA4bnY0blNVWjBl?= =?utf-8?B?SEpsQnBKT2FvaEtSdGJ3WG1FdWRpNy83R3VvdVFlcGR1cmZGSmNZRERENmVO?= =?utf-8?B?cEhYeW9GdnhyYSs3cDlPVlZia2g2dnd5UlJ1cnBRc3k1L2lrUzZlRFRjN0t4?= =?utf-8?B?RWxtMEx2bVRnL2RGSWVJaGI3T1FBM3ROVXlNWnduWllRS0x2ZW4rZ3E0Q1N4?= =?utf-8?B?bnF0dDRPSjYrbWtGTk5NY2tuc1kzcW1xUjIyWHFpczYvcER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dVdKVjdlVEJDUU1xUUdzWlNu?= =?utf-8?B?SmNuUjNiMWJzQy9SYkNna1VPV3VmalFnL2JZeTFvOEdrL2Uza1BHRWF6c1pH?= =?utf-8?B?NkRFcXRJaEZMQmlKTDA2UzBsWTBEL2RUQ25PM3I4RTJHSE1LTlkwSENEdjly?= =?utf-8?B?UmVkL2IvM2NSenNSWis0cnBnaTdlVExSMW9aay9xQlplclFjdWxOenNOdHdu?= =?utf-8?B?VlZVQW5sOEVmUjNjSmRxa1FNUjErbm0rR0JBdmpNNXBzTE9OenVOZVZUcEpP?= =?utf-8?B?NG1XWmJiT3VudzhKNzlCNnFkU1A4VnpiMlZSaUVvNmR1Y1YxMG02elg0aklR?= =?utf-8?B?a29NNC9XRmxJYzd2TzRpNCtIODRRR1JPUTRiSGxyUnpPYW9KaEdpRlNJbjBY?= =?utf-8?B?cWoxRWFhc2p0MTErOVQwb0tSTGVxS0p6ZEVoS0MvZjRBY2g1elpGMXFicjIr?= =?utf-8?B?ZzM4U1JVT2p2ZGU5ZzEydEF2dWNSSURpQnVSQXV5dkVUZlh4R1A3YlJxMjE1?= =?utf-8?Q?AG4gQdlixaoxWPaMz0NXQcODjQAZnNb9DtFX6co?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR12MB8830.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bDI0c3FBdEdWQUl4KzhEUzI5bEJrQzdWQWtuM0lSTTNrMVJDL3FLdzNnK2Rn?= =?utf-8?B?c2ErUkc2V3V4M1YwejFYcWNqbE42VTNEUW5IK1NjaVNMbFJnY2hDY3RaSUpv?= =?utf-8?B?KzBCY2ZJRld1UWQyei85UWJ3YzIrMXQ2MnJtRDM0RE9VSi83S1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s0L0V2a1c5SmRIcU40ZGVDN054ZEVCUUpzRmdOZ1ErZXBURldj?= =?utf-8?B?NzdKYllsSmFWMC83Mllza1kyNlAyQ2tUQkIwOE1HZ3JackdIdEZ5c2pQdDBw?= =?utf-8?B?bllEeDJEbXN1aXg3cE11QXRGdzl5SHlodGJXaStSTDBDb0J5U2M0TTVGMDFi?= =?utf-8?Q?D2XLQLzW0LfnIgl7759t+RuKq?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 43e6f663-2c44-4b57-13c3-08dcfa202f14 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8830.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2024 02:52:11.7630 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2CMpaxb8QUpSpxpWeQOp68blrgJgwJ9ykmhHwPgRvY4rMx3S08BuTAYJ8jq39RbO X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6929 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 On 10/31/2024 3:51 PM, Stephen Hemminger wrote: > On Thu, 31 Oct 2024 06:58:17 +0200 > Gregory Etelson wrote: > >> Hairpin offloads packet forwarding between ports. >> Packet is expected on Rx port , Rx queue and is forwarded >> to Tx port Tx queue . >> >> Testpmd implements a static hairpin configuration scheme. >> >> 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 `:` >> >> `--hairpin-map=Rx port id:Rx queue:Tx port id:Tx queue:queues number` >> >> Testpmd operator can provide several `hairpin-map` parameters for >> different hairpin maps. >> Example: >> >> dpdk-testpmd -- \ >> \ >> --rxq=2 --txq=2 --hairpinq=2 --hairpin-mode=0x12 \ >> --hairpin-map=0:2:1:2:1 \ # [1] >> --hairpin-map=0:3:2:2:3 # [2] >> >> 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. >> >> The new `hairpin-map` parameter is optional. >> If omitted, testpmd will create "default" hairpin maps. >> >> Signed-off-by: Gregory Etelson >> Acked-by: Dariusz Sosnowski > > Acked-by: Stephen Hemminger > Applied to dpdk-next-net/main, thanks.