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 C4583A00C5 for ; Tue, 19 Jul 2022 15:08:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4500240A8B; Tue, 19 Jul 2022 15:08:44 +0200 (CEST) Received: from esa.commscope.iphmx.com (esa.commscope.iphmx.com [68.232.148.24]) by mails.dpdk.org (Postfix) with ESMTP id 2CA2440A8A for ; Tue, 19 Jul 2022 15:08:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=commscope.com; i=@commscope.com; q=dns/txt; s=cs1; t=1658236123; x=1689772123; h=from:to:subject:date:message-id:references:in-reply-to: mime-version; bh=9DYkptuf+tTmvnsO9mHl/yYaX3JEUkwLcf9xRnGcySU=; b=wOA6MF6kCEmj7G32Q3WZjQsIvdjfat5BU8oAUP/Bf14V8mDT4YMWiHWT oHYKFQwt3MCUiV3XCxakhdjFsoAQt7Dx0sUzD10yHsEyHces/6VDqOjnG MD2btYGSb0JE1lTzy2VoYRnWqtTeY1swNBvNVKiIC8tGTqqZ6t/3k8Y0A iFqMCiobWNUn8byoQ5BiWXDAGJpFeIHfK4S/NU6rZ2BhLPp7IDKsf6VLw bqAlEtwb7jIM7/naxKx9KUHvmvg0sBy2kcio7WmCoNAEZCMi4ak0Uadqo Qq+meSpCcTGTZi4MRVw8wGgTqnmFBb3YUpOlpssLvqogNOrXxHat7SkbU Q==; X-IronPort-AV: E=Sophos;i="5.92,284,1650945600"; d="scan'208,217";a="202948268" Received: from mail-bn8nam11lp2169.outbound.protection.outlook.com (HELO NAM11-BN8-obe.outbound.protection.outlook.com) ([104.47.58.169]) by ob1.commscope.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 19 Jul 2022 09:08:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h0L5RuPD57OyynLt8132LOdbe6mN49s2b+J2Zw79fNYLsdz7YBPtga8Njqo1gtL1QQCJ6TmASbBDlthkJNyB7IzsC2cA+pISR50a3xAEI4uPoKRtog49pkMrLPpbj6Smy37Of6MxNQiiQolnf6gaBArIXahOn4GXY1XHI/nA6svYMviMns8GPbiOEb25zHHCvIDecHVBgkt+I5XRWpO2w+Qq128DiZ7F+ncwaMBBwD/urA+9360QtfitRMUcTUTTRT7Z1jRSuMZ8RZvBmJhDFnUg2EoXB0JvWmLD7fUHTzCAKBtaF+N05mamXUWc8r3odyza6GvP9ZRGIJAjgpV5Yg== 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=9DYkptuf+tTmvnsO9mHl/yYaX3JEUkwLcf9xRnGcySU=; b=WCixStIWbQJYSzo2y7vbI6F6tHjy+0zumI3DZE9clMni+BagB56nEeBvhr2lCPeNTOWwV6+jRR4nA6EechPtQYEiW2aize+Ei0nmrpTrZzLkTMCZvy0IwfUsMhmp1LdMz+DNTo4h4BSHqSY1e4SjyXPDAZ8VX6oVWpRWFjeLWODGtI+ANBUnsQlyoYgZryS5y5VLYwhXRLm2xls2mZs6VbszWLjWtX/yV95ZkjTk9qjVmREZsnDgV2HH5MXXLwp0aF/FgQ2COBzTEgji0UoZ6LWSBEA8bL/5PkAqDd3BqSrscGJxRVd2cBYIQigN3r1cGXzFjHfaQsixuwR7HRkxog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 3.132.208.199) smtp.rcpttodomain=dpdk.org smtp.mailfrom=commscope.com; dmarc=temperror action=none header.from=commscope.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=commscope.onmicrosoft.com; s=selector2-commscope-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9DYkptuf+tTmvnsO9mHl/yYaX3JEUkwLcf9xRnGcySU=; b=1pyckEdAvaFDC7LzcNRL+gY0mX/YnpsQNs3ySMbOpvXiVW/ATZEaoK/Y1CgxwLR5TNy/L1yy638gP7kRiymeMtFphT9YhdwhMvpJybZeVFa50rDW13j3oKE1lFItYgXqIy/MQ5VD5kic9kidvblgmqxRz8YxrrOVfejI8eg7nPw= Received: from MW4P220CA0029.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::34) by MN2PR14MB4160.namprd14.prod.outlook.com (2603:10b6:208:198::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.14; Tue, 19 Jul 2022 13:08:35 +0000 Received: from MW2NAM10FT033.eop-nam10.prod.protection.outlook.com (2603:10b6:303:115:cafe::63) by MW4P220CA0029.outlook.office365.com (2603:10b6:303:115::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Tue, 19 Jul 2022 13:08:34 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 3.132.208.199) smtp.mailfrom=commscope.com; dkim=none (message not signed) header.d=none;dmarc=temperror action=none header.from=commscope.com; Received: from obx-outbound.inkyphishfence.com (3.132.208.199) by MW2NAM10FT033.mail.protection.outlook.com (10.13.154.195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Tue, 19 Jul 2022 13:08:33 +0000 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2046.outbound.protection.outlook.com [104.47.73.46]) by obx-inbound.inkyphishfence.com (Postfix) with ESMTPS id A693C17D475 for ; Tue, 19 Jul 2022 13:08:31 +0000 (UTC) Received: from DM6PR14MB3597.namprd14.prod.outlook.com (2603:10b6:5:20c::16) by BL0PR14MB3875.namprd14.prod.outlook.com (2603:10b6:208:1ca::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.17; Tue, 19 Jul 2022 13:08:30 +0000 Received: from DM6PR14MB3597.namprd14.prod.outlook.com ([fe80::dcbd:141a:5a76:c585]) by DM6PR14MB3597.namprd14.prod.outlook.com ([fe80::dcbd:141a:5a76:c585%8]) with mapi id 15.20.5438.024; Tue, 19 Jul 2022 13:08:30 +0000 From: "Purnima, Kompella V" To: Balakrishnan K , "users@dpdk.org" Subject: RE: track the physical port in the pipeline Thread-Topic: track the physical port in the pipeline Thread-Index: AdibLCcLJnzLwKUJTWKl/n8J18gWoQABKcQg Date: Tue, 19 Jul 2022 13:08:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_ActionId=5a405828-59e7-4de7-9559-8b1fe2ac56ba; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_ContentBits=0; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_Enabled=true; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_Method=Privileged; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_Name=General-Test; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_SetDate=2022-07-19T05:09:50Z; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_SiteId=20210462-2c5e-4ec8-b3e2-0be950f292ca; X-MS-Office365-Filtering-Correlation-Id: 2d83a643-cc0b-4c10-769e-08da6987c8c6 x-ms-traffictypediagnostic: BL0PR14MB3875:EE_|MW2NAM10FT033:EE_|MN2PR14MB4160:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: +19KceejQIV/HkoQHBFpgZERCBqWiSPoJijAswfqUmM4AgMa57w2CplEHS5YMmCxZQaaxda4f4m1o3InM1hzAJcupk+KQQ1pqzcbuVJboRdLXZeLSeT1EgLF4MdTHRARfkYP79D49sZIWoZFq43tzgp0JdIoQK4FliKkSkoK5W4pR2zuAJvMKoNFiuq2zzJG280pfJmVgMDbPVzamXI4CjSWRGfSoo0xi0QsaDASEMNIiavQdxAy7sLzsaSQwJDFXJI9izzE9Z5wi539n75hmVTqixz8edr8XqNpu7qntoCc33KyQIPbE1d5fs30Dro3aKtsg4r2zqqPn98xlnWmLu4Ac1yXO2HlB7/QuUIeGKLpHU2u5+teHWHK9iEbdT7dsS2ApWfg+mAVg4WVedXkYvkknRHu1dZ3dLiE/rA6Oyia+70JqoLe8Zfe6IHOPKmVMW9rtAVURH6tLVC1HCWY5zUci1amVda52g3bhh6LkbcC0ig4ooAV/L3dlTqi2uYnvfx3iA3m3vlaKsrD0xzPFOcMuy7rGHnGXOClJj3lzT7Rak0pAZnARzipuohdihS9U7n4Sc1sIv8JjrfnxpmhxYOusBPTzPMisZq/1MRWBDNw80StqustpbXjwb7LP/hFgCXvgM8K7R4umn7YATrslQyp22Zz7JpJi2F5I+j3DWD61XXMYningii269t+6/+XbAp6ya/zi7fkM9f+IoMTzcy0sTOOpCPe0z2PAE0xoLDxtlJUcmwVzOXgXgQlYAdLwklsyeQcFYa1oCO8hUfxyTY2pFIKAhuctvCthjnQfAsgi1Aw14t/s+1JqeLClqskzPeX/IoYaWMpHh5eOXNNxvgw16t8AmwDDhxHL3nyjBoAxEzGhHDdyMd+FGnZwe2M X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR14MB3597.namprd14.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(396003)(376002)(366004)(136003)(39860400002)(8936002)(5660300002)(52536014)(33656002)(2906002)(66446008)(76116006)(66946007)(110136005)(8676002)(86362001)(64756008)(316002)(66556008)(55016003)(66476007)(186003)(53546011)(41300700001)(7696005)(122000001)(6506007)(71200400001)(478600001)(9686003)(38070700005)(166002)(26005)(38100700002); DIR:OUT; SFP:1101; Content-Type: multipart/alternative; boundary="_000_DM6PR14MB3597A38C44FD6EADF69E65D49C8F9DM6PR14MB3597namp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR14MB3875 X-Inky-Outbound-Processed: True X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: MW2NAM10FT033.eop-nam10.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 24128073-b686-4ffb-d324-08da6987c6e9 X-IPW-GroupMember: False X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ir6PqNVia9jKCkLPcr3IC9w43QbkhW8NSNwDHubW8OZN1rK6wf41xCHTUCekPilyS/oyT+4UoqdMKhQCRDqsbsdUOKv+0fDcy+8lnbE7OtQFeEPdOnrbiC90odpo7gNg+TaOESax6v1jUYVacpKUG7WuctGkCagfGAU3mnO4t8XwzOhTDLMRjomVgx2O7OTBWRHbOKUdJjIb9D4+TZcwyN2DgqO59U0FfMcBvvFE15yDGq9EHSt92oggvfGV3+mgTlBiG2x2GYT6d5Iq/3cTIfwfZ6UhMBf+dpagonBURuV5jZCnEG45X8A6rYpuq8ci5W3KVmXGPDzDS6Xx4BfOuye0PqFhy1K34WWjBeJXri0qeMvmAMAoCDnaBBg6NAfdcx4JTaQQUiDQ7X1/0s+BcE0Bff2sWG9Qq3G02z95FoQ/qqXtI1MbvoaoIUQ1h71/hD33jyII/A6n+Njn94k32pXR/4ae0TiYg/5qa3pi7jdJnkl4veoth/4ENiZoSQzXWwwdAZhPNz5hKndW4FlkiL/d5Q6LPLVCTc+Oz4nFaKiTCDkRcqtLMmavjkdkYpg1fHjfi8yD33w+Rkui7cvykJSmjFwGvYj2k8/34GlxvHfdyUT6/291lmsBuXbRzd7mpUifPqVTGmLVp20JNqPnGk7mHnz9QO4Uyuh6hglc/RUV0KZjYXHKr7ppuUPHNxvSVfKXcgdQJ6ZBKMU5gdi38ecZcC2u3Jjrb8OabWL31zd1+JCLbVBou9LQ5yUlwS69wLuK+zHeVHucWJ09/tlDlRUH9IUFyU4lHaC/4B7r4Bxpm2iU8YheKYlQQOSykfQZffVjU8GUb/bAeQVaYNY502gED5a+W4hbRjuqJ521tONCR7VvrLrE4XF0mo00vN4h X-Forefront-Antispam-Report: CIP:3.132.208.199; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:obx-outbound.inkyphishfence.com; PTR:obx-outbound.inkyphishfence.com; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(39860400002)(396003)(136003)(40470700004)(46966006)(36840700001)(7696005)(7596003)(7636003)(8676002)(356005)(36860700001)(110136005)(6506007)(82310400005)(82740400003)(63370400001)(70206006)(63350400001)(316002)(55016003)(5660300002)(26005)(478600001)(9686003)(52536014)(8936002)(33656002)(40460700003)(2906002)(336012)(53546011)(186003)(86362001)(40480700001)(47076005)(41300700001); DIR:OUT; SFP:1101; X-OriginatorOrg: commscope.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 13:08:33.4422 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2d83a643-cc0b-4c10-769e-08da6987c8c6 X-MS-Exchange-CrossTenant-Id: 31472f81-8fe4-49ec-8bc3-fa1c295640d7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=31472f81-8fe4-49ec-8bc3-fa1c295640d7; Ip=[3.132.208.199]; Helo=[obx-outbound.inkyphishfence.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MW2NAM10FT033.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR14MB4160 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_DM6PR14MB3597A38C44FD6EADF69E65D49C8F9DM6PR14MB3597namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable struct rte_mbuf in DPDK 19.11 has a field called port When packets are received using rte_eth_rx_burst API, struct rte_mbuf::port= will be filled with index value of the ethernet port on which the packet w= as received. This works with MLX ConnectX4. Hope this helps. Regards Purnima From: Balakrishnan K Sent: July 19, 2022 10:40 AM To: users@dpdk.org Subject: track the physical port in the pipeline Hi All, Is there any configuration or struct store the physical port where = the packet is comes in. Trying below scenario: I have two pipeline in pipel= ine1 reading the packets from two links. Link 0 bo External (balakrishnan.k1@tatacommunications.com) Report This Email FAQ Protection by INKY Hi All, Is there any configuration or struct store the physical port where the = packet is comes in. Trying below scenario: I have two pipeline in pipeline1 reading the packets from two links. Link 0 bound to port 0 and link 1 bound to port 1. After reading the packets in the pipeline 1 doing the packets match and act= ion using tables. Finally, it will be sent to pipeline2. Pipeline2 forward the packets to another physical port. If packets received in physical port 0 need to forward the traffic to port = 2. If the packets received in physical port 1 need to forward the traffic to p= ort3. I am unable to decide the out port because packets doesn't info about the p= ort in. Is there any option available to track the physical port_in? Any help would be appreciated. Regards, Bala --_000_DM6PR14MB3597A38C44FD6EADF69E65D49C8F9DM6PR14MB3597namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable struct=20rte_mbuf=20in=20DPDK=2019.11=20has=20a=20field=20called port

When=20packets=20a= re=20received=20using=20 rte_e= th_rx_burst=20API, struct=20rte_mbuf::port=20will=20b= e=20filled=20with=20index=20value=20of=20the=20ethernet=20port=20on=20which= =20the=20packet=20was=20received.

 <= /span>

This=20works=20wit= h=20MLX=20ConnectX4.=20Hope=20this=20helps.

 <= /span>

Regards=

Purnima=

 <= /span>

From:=20Balakrishnan=20K=20<Balakrishnan= .K1@tatacommunications.com>
Sent:=20July=2019,=202022=2010:40=20AM
To:=20users@dpdk.org
Subject:=20track=20the=20physical=20port=20in=20the=20pipeline=20

 

 

Hi=20All,

   =20Is=20there=20any=20configurat= ion=20or=20struct=20store=20the=20physical=20port=20where=20the=20packet=20= is=20comes=20in.

Trying=20below=20scenario:

I=20have=20two=20pipeline=20in=20pipeline1=20readi= ng=20the=20packets=20from=20two=20links.

Link=200=20bound=20to=20port=200=20and=20link=201= =20bound=20to=20port=201.

After=20reading=20the=20packets=20in=20the=20pipel= ine=201=20doing=20the=20packets=20match=20and=20action=20using=20tables.

Finally,=20it=20will=20be=20sent=20to=20pipeline2.=

Pipeline2=20forward=20the=20packets=20to=20another= =20physical=20port.

If=20packets=20received=20in=20physical=20port=200= =20need=20to=20forward=20the=20traffic=20to=20port=202.

If=20the=20packets=20received=20in=20physical=20po= rt=201=20need=20to=20forward=20the=20traffic=20to=20port3.

 

I=20am=20unable=20to=20decide=20the=20out=20port= =20because=20packets=20doesn’t=20info=20about=20the=20port=20in.=

Is=20there=20any=20option=20available=20to=20track= =20the=20physical=20port_in?

Any=20help=20would=20be=20appreciated.<= /p>  

 

Regards,

Bala=20

 

 

 

--_000_DM6PR14MB3597A38C44FD6EADF69E65D49C8F9DM6PR14MB3597namp_--