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 868A5A0A02; Wed, 28 Apr 2021 01:11:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C0AA40F35; Wed, 28 Apr 2021 01:11:44 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60043.outbound.protection.outlook.com [40.107.6.43]) by mails.dpdk.org (Postfix) with ESMTP id A814B40147 for ; Wed, 28 Apr 2021 01:11:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lvdkP6dYfDjEs6a1YCEr6zNR6dWGL0SDbN1T/HGx68Q=; b=PK7H788ZulBNQD1zmapKyWurxND9OyocaxjcKlD78XRjqrzx6SyUvc1Sd1Qtjhg1mOfSB8cLxrPOauWiAtYBfqWLidVwe5ywuR/o6tmyH6nEwnPr83SudCfLHn9R2Mjp536L7cTT7DTA/Hl7a7rO4OQMI429aFhXi+o8E1oaujI= Received: from AM5PR0701CA0018.eurprd07.prod.outlook.com (2603:10a6:203:51::28) by VI1PR08MB2958.eurprd08.prod.outlook.com (2603:10a6:803:3d::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Tue, 27 Apr 2021 23:11:40 +0000 Received: from AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:51:cafe::3d) by AM5PR0701CA0018.outlook.office365.com (2603:10a6:203:51::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.19 via Frontend Transport; Tue, 27 Apr 2021 23:11:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT005.mail.protection.outlook.com (10.152.16.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Tue, 27 Apr 2021 23:11:39 +0000 Received: ("Tessian outbound b610e7b4d771:v90"); Tue, 27 Apr 2021 23:11:39 +0000 X-CR-MTA-TID: 64aa7808 Received: from 6b68a94ef8cf.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1F85EE05-9339-4A05-804C-D97EED769CF8.1; Tue, 27 Apr 2021 23:11:29 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 6b68a94ef8cf.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 27 Apr 2021 23:11:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bMGfaLIYklovhDfje59TLe1g/dKzXaj6l3+tqBJ+Zhf/Uj2T86lv/mJCfEgZ4U5Sv6moAZ4rKvLAsotWtrjwsdxayjeHQc45hDJW8i34xcaAr19aIlHBynAnKazvyPSFREuClDPFkQS+p3yMCbx5/tCxeuycfP656+ceuyIziqImKvjSrKbFxOkkJa5UG2Jd4BBcnp+S2m29w74C/6hA6p2z1I+Lo/pimkAm2I6LR7NTIMeNigzmmnEXG4gqETynxtDAKgyr5ajKZE2bFQRss+FTNJ0XRTeG2toVyQ93Qyks/zYRGZ3c5AyAcJVmpSlqbWfFvJ7Fo6PmDQ9XkPnc/A== 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-SenderADCheck; bh=lvdkP6dYfDjEs6a1YCEr6zNR6dWGL0SDbN1T/HGx68Q=; b=BfnX3zHFMOBrwtWqjeiAr2BwXc6/pt5BzSuNuOasiWX8RbhbcTKXdZcAJubiJyxOgntXAFXV+gwCX2MYcrh9TA5DDwE94YsR8ZPA+MF9rRqPyR6jxgsrdx356gkJ2312sR3LHwbVRIfC9CoDYD8VGUnjZnP/UQ4oI2n62MOzkzWRdRaG1G6bCKgU2jYPCEjX/byqV0JhPpnCPdyVhNfcLHIIOUSVCk1Nc1rSOvjtT/p3kiS/2+qddyyz3A9o/GFixpYlsaHMCYIwPY1kJJJL1bGcJGnxoQvz0TVuqLl9mvKbDB0NI3UbBuM/HoXPGAZEowVeZ2TfyauabaFtR3Zr0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lvdkP6dYfDjEs6a1YCEr6zNR6dWGL0SDbN1T/HGx68Q=; b=PK7H788ZulBNQD1zmapKyWurxND9OyocaxjcKlD78XRjqrzx6SyUvc1Sd1Qtjhg1mOfSB8cLxrPOauWiAtYBfqWLidVwe5ywuR/o6tmyH6nEwnPr83SudCfLHn9R2Mjp536L7cTT7DTA/Hl7a7rO4OQMI429aFhXi+o8E1oaujI= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DBBPR08MB4629.eurprd08.prod.outlook.com (2603:10a6:10:f4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.25; Tue, 27 Apr 2021 23:11:25 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::2994:a01e:2de:f94e]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::2994:a01e:2de:f94e%7]) with mapi id 15.20.4065.027; Tue, 27 Apr 2021 23:11:25 +0000 From: Honnappa Nagarahalli To: "Ananyev, Konstantin" , Stephen Hemminger , "Yigit, Ferruh" CC: Jerin Jacob , Kathleen Capella , "thomas@monjalon.net" , "dev@dpdk.org" , Dharmik Thakkar , Ruifeng Wang , "david.marchand@redhat.com" , "Richardson, Bruce" , "jerinj@marvell.com" , "hemant.agrawal@nxp.com" , Stephen Hemminger , nd , Honnappa Nagarahalli , nd Thread-Topic: [dpdk-dev] L3fwd mode in testpmd Thread-Index: AdcV2H0Bhkmz7z6QTBeC8FixZy3dngAaQ6AAABIFuOAAAQNCAAAAQNqgA/efEhAAAYi7gAAF6HhgAAl7GoAEe3+OoAB4fPWAABDYiwAABc478AAb06kAAAz1JoAABPozEAAH+U1gAAHMiTA= Date: Tue, 27 Apr 2021 23:11:24 +0000 Message-ID: References: <2273212.ItJIoklBD0@thomas> <20210426104720.2b892045@hermes.local> <81781e97-735c-f584-4148-ff07dedc5cb4@intel.com> <20210427090121.4f6f0089@hermes.local> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: BCE3E05B33274740AB5338201C637BFC.0 x-checkrecipientchecked: true Authentication-Results-Original: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [70.113.13.105] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 8294330d-e4ef-4c99-cb63-08d909d1d067 x-ms-traffictypediagnostic: DBBPR08MB4629:|VI1PR08MB2958: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: bpFFDpfNQ3eu1ralcZPsTfJFm+9GAzTOGRfF5H5naVZUutSyj7CGNF5D5SaUAU+wtuqA49I973H0CPsd/Vw/+/5mOdkLP6pnQ8HlEHGQRBFJYgTHDoY/iMX6iM56HcHG2ZrDqFRXdDuDPNgKG+kkpLmpm3xilB5oWmlN8TRJ+vpGdGfxceNI0uv0QmU89DuYCe2fBAuCEsuVOohX6ROcD+nHWQZ6yflJvU+qc7o67bSMsaGMTx3j230KhvH0OEE5K7iRgH1shrTMusTEwY23+yf2jlwuhQc4xvK8YOp/zceNW6yI7ZSZgnhHeQ2I0/jBo7/yBgfZqawAZMdltG+JzdFwrMEGQ2v8dtuZ0E2nMRNJ68yu0rbA6XGADazCPNZLx+YNt2tBaRSRZS0TTsBW/p86UbM4XproBTDW63UPVSCbuEN8Mwi+thaQSO67EVQdnBDz0cRVy+6JLgGiWR1UEqBfSQWWw+6UV+zNW2BR78YIFNjJFIR4YBAWiT3EhnahgCpZ7OVS8bu85Yq9DvMfBJNXfZmZfiaYwvPIm8vQJyG3/i+M6uPtU8/Y2gZdsa5h6DleksubCc/xfsOrnbQu75qTe32sFTnTm/95sFsWiXeskDoqkarVlBY5FOtFLTrCbfzw6ExWulH61tF82o2jzg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(39860400002)(366004)(396003)(136003)(66476007)(66446008)(8676002)(4326008)(54906003)(110136005)(8936002)(316002)(86362001)(71200400001)(122000001)(66556008)(2906002)(33656002)(55016002)(38100700002)(64756008)(52536014)(6506007)(76116006)(7416002)(66946007)(26005)(7696005)(478600001)(186003)(5660300002)(9686003)(32563001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?zqyyrGJG2XpfLpmI67NiCanUMyBP0L+xS6XRG0nem5RYC2shhPSo3D55+IKx?= =?us-ascii?Q?vUoiJK9DAxL6dbPs2TsiNuB8+bivIv75B3o/XWIIq71UXjWMOydBsyO5bsIk?= =?us-ascii?Q?leNnIfiERNNW75VmxeZlZyhcrxtzqKC3xR+5DXZ+75mjgltWdYfjTWT6fHF1?= =?us-ascii?Q?Y7pJKKNpoWuBn+SZRfL6Blg+4ZAxNBoUbl+8Bm9sDQDFyPaaX7VE6G02jMFF?= =?us-ascii?Q?5kH8oQ2SOjOGULQDpW2iC7S2bzniG2Dw4UGSu/O9uZi6rFXpLSZMAHDW6YLX?= =?us-ascii?Q?pQpcs57PzySnJeB5jXrZZbpiPv+0N9hFiXyXhvKvTiJrjrn9ljJ2K6Na4YM9?= =?us-ascii?Q?6rA8kn18Aw4RSb7JwR2C9/dnwBcn0YqCw3xyGHd+dbXuMzBleMn9SxQe3SqZ?= =?us-ascii?Q?m5CBeGGsPgU8BpDH4lUg6aCQU4NpoiVKITk0cU+Iv9xJUgkRLdkRTowBRv89?= =?us-ascii?Q?zvdZeswxkAp/CSOh7UPXSwMBb/iMU10RfSYIp7s9g2yjLIMDSwpd+RLC9pFr?= =?us-ascii?Q?wKxXyjiv4wSDwC+jLGpBFhc1OPGk+lAKSi3dfCDVFdbNa8DHUeDxzlF4tDxF?= =?us-ascii?Q?EwskKt9t116LPQaxDEsClwvAXFizEk7Y9O5hzzG3cBpNAo0gh3zYGwWBy0V5?= =?us-ascii?Q?IMFOxLIovx0W8xuCP6MACkTIxuxTgccqtMbJDDzj85UkHpZ8+5AYHw7TTCuL?= =?us-ascii?Q?zZl8/Zk0r4N+UpSCB6yKJKYyxbf+VPx6oLvl1rjeJ6L/y+XwfNYpdCxX+/fo?= =?us-ascii?Q?Oiqw8JPMu/mIIDvaSV6XzIu1ENvWd9Dvdjr3z/ohNyC+01uNOsa+iFE4RWIn?= =?us-ascii?Q?QAVH/4lLeFG7/6bgHOhZDHzu4cBII0AUK9xncyNcfQMFQUAz2OV9EAEvptnC?= =?us-ascii?Q?U6Dt22GndW3Z2Ai2Ssx3WQTCcuF215F6OUAKjoEPaPvkjdzzTd7QDoWT4R0w?= =?us-ascii?Q?guknKZw1woYdLwYwQ/nFBPIhKXngw85/InFwQ30Jp4/wyaSKl2/tNgbLV+g+?= =?us-ascii?Q?U00fX9gG/8Te/KFh+DgWsXKRsPIKEolwG3IMkK8XGfRrGgrxvZrwHYFQykXx?= =?us-ascii?Q?sFDO8m0eMjTXmh1jITlfxe392oXYvhhPcafCyYf45UWvBvvzPI/G6aQ9X7Ne?= =?us-ascii?Q?nDnag9xrwnbadnYZWJbXE/vtT4gBqov1C3bhDVbev4t2vFXxHo+D93QfqMn4?= =?us-ascii?Q?ItSCxgLRXw7jMDa0MTc1Wppxu4tzb+rx/Tbb4XOodWr7L3RNh9tt86srceMV?= =?us-ascii?Q?Akg8l7bBssLkLWV9fgaC2zmjPhROQdVDDoyGuWX6CvYAT5jsrkQ5KpvfQJc6?= =?us-ascii?Q?jcoJIMIPjHtjejKpHWcoxd82?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4629 Original-Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 475853a8-c5d4-40a9-66c4-08d909d1c78d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bdgDY8knl8cVf4CuEEWBjnUNH36+BMZRiW2ox3AayLdNVF3j+ElOUwf2RnwjyJtimcF2M9Erv+O6BAsw6OcPDmtRgZl5GuM2/BROAc7FlCdkq4MiP+YNB6As/bCnSjozYaVJ0dghuHP5T/OZWg6aIbKdHPHq671wQy4XVmcd7GkzZDq2Cx0+NXNwNI/Pod82S/sJNSUGtaot5CDqsIhgEPWWwtjFDiUOljY+wtgivc+Z9t0yjvT0b5CG4kzGwhnJfMme04sVBfpsNgMawH0MKuGxFBgWIdHE/+2kXQOJwCqcs6M8Qi/4aePVhVhRDft/P2sxaXBT78etSAmBuTjpgBN38sRYwnSd8EbI0XA3lW46Ph4slK+zp8NhSPZnJJrR1IohGqaqTbeQwngOacW3+H3h61fM/GItweDg09mQRkYf355+ciDCFMNEobiAn3oD+o5lPgJTolqPheBEe4dFZbdmk9v9FxQwM32v7j2cATZPP7ki2zlBVnuSlRi41SR1+Zn7oXJJk2YF816JoCwERtq9mQeiQK7lcdCI2M3Zd/7dBe0BqGXRrGm5TnZWQvxD1aHeN4axqn1aRx6sCiiO1Nw30ZgDNzA7aC5E38ggFsRoja8oHfPWUslYt9DBGNHI+VVFxulFt/9xaU4NSFKZcS8LGKh4gh3zKZUqm91idzO/MUjTwSRINYeYfl9Ag+n0rvKO20lUCwyVPbdmRjEdyQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(346002)(396003)(39860400002)(136003)(376002)(46966006)(36840700001)(186003)(82310400003)(34020700004)(5660300002)(8676002)(9686003)(110136005)(52536014)(54906003)(33656002)(55016002)(26005)(6506007)(86362001)(478600001)(316002)(2906002)(8936002)(81166007)(82740400003)(47076005)(356005)(336012)(4326008)(36860700001)(70206006)(7696005)(70586007)(32563001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2021 23:11:39.8274 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8294330d-e4ef-4c99-cb63-08d909d1d067 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT005.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2958 Subject: Re: [dpdk-dev] L3fwd mode in testpmd 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 Sender: "dev" >=20 > > > > > > On Tue, 27 Apr 2021 10:50:20 +0100 > > > Ferruh Yigit wrote: > > > > > > > Agree that it may help testing to have l3fwd support on the testpmd= . > > > > > > > > Two concerns, > > > > 1) Testpmd already too complex. > > > > 2) Code duplication. > > > > > > > > For 1), if the l3fwd can be implemented in testpmd as new, > > > > independent forwarding mode, without touching rest of the testpmd, > > > > I think it can be > > > OK. > > > > > > > > Not sure how to address 2), also lets say we want to add new > > > > feature to l3fwd, where it should go, to the sample or to the testp= md? > > > > > > The original purpose of l3fwd seems to be getting lost here. > > > It was intended as an example, not a complete test or real life appli= cation. > > The issue is, this app has become an industry standard for performance > comparison between platforms (whether we like it or not). > > But, it > > does not have a whole lot of debugging capabilities. >=20 > Ok, could you list what exactly you think is missed? > If we are talking about extra stats, then I still think it is probably ea= sier to add > it into l3fwd, then pull whole l3fwd code into test-pmd. In stats it is missing hardware, software stats, burst stats. >From run time configuration capability, it is missing burst size, rx/tx que= ue depth, number of queues we can assign to a core. >=20 > > I think adding a L3fwd mode to testpmd will be helpful to keep the > > sample application simpler. >=20 > Hmm, not sure how these 2 things are linked... > Why let say adding fib-fwd into test-pmd will help to decrease l3fwd code > complexity? >From my perspective, L3fwd example application should showcase how to use D= PDK, various packet processing models in DPDK. Anyone new to DPDK should be= able to take this code and start creating their application. However, this application has LPM, Exact match and FIB. I am not sure how E= xact Match and FIB modes help the user. I suggest removing LPM from L3fwd example application as FIB is added (or v= ice versa).