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 0BE9DA0A03 for ; Mon, 18 Jan 2021 11:13:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8515A140D1B; Mon, 18 Jan 2021 11:13:48 +0100 (CET) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by mails.dpdk.org (Postfix) with ESMTP id A1187140D17 for ; Mon, 18 Jan 2021 11:13:47 +0100 (CET) Received: from HKMAIL104.nvidia.com (Not Verified[10.18.92.100]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 18 Jan 2021 18:13:46 +0800 Received: from HKMAIL104.nvidia.com (10.18.16.13) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 18 Jan 2021 10:13:45 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 18 Jan 2021 10:13:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dk7D9QAHDSEvWPByn39cN0GHD0rZdnpHlb4joBGUtWvFd5/ZQmA9GcaXwtTHE97b/5KMHbiglTNWN683B+F1BOGs6aXmy8JBb5YFvZaCMblqVP6Jb3FxMQOfXqEEO8HfxwPgJ7p9ZS8JTc4wDgT5Kk8meoQ6X/5UzoF4zMftjYbzfSGDAKHuHZsL5W5DcQOkJcFdTANmMxbYOaC3omHrJ9/9P65Jd0AFwyYLu2Oln1TsyMlQpqUmbT3ZE+bYoBKRrgTp4XlGmINy/x7jZNoK02/NTetwwGlslWlgfcC8estu0rbNQeBx5oPuh3OH2ZE414liIJwht0+dyG/C9KDDaA== 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=EN40+a0lQUeZTX/wBgLk5+OKzYXNiwiA5wvRkUjh4Io=; b=NZ+YuAdQ2eZWdUrTIC0nnDIY4hL5nOgw2+zeM4y4VhKGtK0Htpaa7JU9ETV0D7DLqm2pTkCu6oOWWaiVO6ojzrjOJrGib+XK+ugW0llvZ4oKyAiwoc5LcMiRLgv9IYHblcsDdDKdM+V4Xa0UuFgvqwr/bdFgTIRk6tU2sFon0Tmz+uJAxdLPmE+PWEgGyw0RnLKgsWpJ8cjz5/LYYOuITFEHZhA0Mo65CNwIVn0JPfK7rj2i0FOwq2IhIFzLli8rIS13xvGw5ZRHGIfOyaKRWCMkVX3b9MUw8sECJTSrZPLPWsaT4qVUPkyT4UOs9Ltf36PzsF3OzZ+Ath4sPQgg7w== 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 Received: from DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM6PR12MB3353.namprd12.prod.outlook.com (2603:10b6:5:3d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.13; Mon, 18 Jan 2021 10:13:43 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::759a:fb10:c6af:87a3%7]) with mapi id 15.20.3742.012; Mon, 18 Jan 2021 10:13:43 +0000 From: Raslan Darawsheh To: NBU-Contact-Thomas Monjalon , raktim bhatt CC: "users@dpdk.org" , Slava Ovsiienko , Asaf Penso Thread-Topic: [dpdk-users] DPDK: MPLS packet processing Thread-Index: AQHW7RzmOuB19VSmZ0e+qGhvWCFygaotELTQgAAYnQCAAAFD4A== Date: Mon, 18 Jan 2021 10:13:43 +0000 Message-ID: References: <4894382.B7aiEbNCBK@thomas> In-Reply-To: <4894382.B7aiEbNCBK@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [188.161.230.12] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a526ec0d-2e20-4331-e1a8-08d8bb99bc48 x-ms-traffictypediagnostic: DM6PR12MB3353: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1llbRox+L3pPkxNLO0+gFzJ0C4pSR5JbaD+/oB//hJd5iPI3l/InSFhb4zKl8PJVegOtGKvOpaYYmPcmrij5Q/kzsjk/2U6g6n+j8yQOM3eqt7SNaMLVz/Musne5zAWn5biepKG4hzTR8MfqS7SJ6AO+70w+3W4Wy6HUYXKw+F4wxNow0BMN5AbLOg/6+MU/uHMxZPrOwodF6f5ZcD6VtX7ay2LC68Pa+dVBgehVt2zQJbVULPj1/yjyvLjSAGjaDR/MeRQe7uXs7CanJRgkNkIXU/MwYkIS48WXpzS2bNqIP/eeNZwzBDr144xsyazwt8NCvfnzUVolngZq3QEJsJoH05Klzfb0bJETX50pPmO4U2EA+/GjAztF550z2wh45Wy7MlilM8CEOpJGJ7DuKsAwi8FAaOmoXs/nUGSW0Whb2IQr2V02twj829mi9eg/VaxmNQ14g6KxqTUHRjYx17UBeTlEq5t0hZzEwxAAXiAFa/TAiGLMTlYdfImstn+GYJjbQivRgT/h459tbw78+Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(39860400002)(366004)(346002)(136003)(33656002)(52536014)(5660300002)(76116006)(66556008)(66946007)(66476007)(64756008)(66446008)(4326008)(83380400001)(86362001)(478600001)(107886003)(71200400001)(6506007)(53546011)(2906002)(8676002)(8936002)(7696005)(316002)(54906003)(110136005)(186003)(26005)(9686003)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?vRiZedNmJYqB7ZVDZD2tHx12itnn7gLntcb0GoKAVSMlxBpUwY8BcAUrkYjL?= =?us-ascii?Q?BfaYelO1ZSn1CnKoGZqeXZDIeZNILnYdQOf+oGLe2/A6wAGB6TQvw8XB1RSw?= =?us-ascii?Q?cXznOyI/tSzc8QzTo3S9BufUl3ArfjHT+KItu7xHI5nqj3ajGJHQRikU3TGw?= =?us-ascii?Q?52lFTE8qcZKZEbpnqladEuhA2A6AXC6pgCLWSdWZW7axkycpBO6/aJ0wgivH?= =?us-ascii?Q?wD795ihY2/xeD8lEZjd62VY6Bz7Fv+rB5/PjE2QEEmXkENARuJ+101gJJMH3?= =?us-ascii?Q?3x2+cAgKUPCSUCryBIhRuK5EKFjO9WT2fWQsoRGQtwWEVq417LOkAqXzu2vi?= =?us-ascii?Q?pym7w8vrqr2tPemh1h+BS7SSWS1n7JOMfqOExLtRmR3W1ZEwky8XQEa0as0u?= =?us-ascii?Q?b32/BSb0tYLsd7MafwgjfyjnwFu0O6qxSoMSH+dqBq3BGH6VfCp6M0CUzgja?= =?us-ascii?Q?YIXr+4FfZtmYAQmRCk0dk4RMeFdeiwpJxfaJZ3FVYR0Z0jtZwktmKK16aaZF?= =?us-ascii?Q?UvqNpt7qGXkyATi95qK5baRQmVsfgr/lVK3eHv5KNHyshMkhYf5JBaZ+1EqV?= =?us-ascii?Q?rA1ksYXGYJXF5uqUli/cJ4f4fabkm8sXyJ8mGTLmGnY2GvUSS2OkWmtpYi93?= =?us-ascii?Q?9xSSwQBpueM8SufSNcvrWY5UTEvpNZ8uHao4JL7Z2PFEdvwUdSVQwj1RuzuM?= =?us-ascii?Q?sCKMLU2QOnyQkcqRfC1lHvlh50QbcY3k/3+LY8d9W7agKiR522pGPhP8HzRh?= =?us-ascii?Q?J1rwCxdwUOPoCSxUqC87zEufK9VpGl5zGOR2OcLd8WFeJfBbwncJifc075aT?= =?us-ascii?Q?3kKWhPy59QiBOX7kf90fjR8lhuB4gO3USD3JPSbBsAuCcwzQk4l5o4NSqDkm?= =?us-ascii?Q?lXE90QHLiIsARRcuOlrfXWzq7IB6KBWsZOVKXyegwrQ50bzsWUiQYUHvK6TI?= =?us-ascii?Q?bF2Wpn22CT/8dMx0ii2ZwneyVIaQLAQoFFuk7pE+CbY=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a526ec0d-2e20-4331-e1a8-08d8bb99bc48 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2021 10:13:43.5329 (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: LT601alYh+DUW717TQDp29/ivDgKMFXuyTnhNTdIUIBRKaJn9Qbk30NQ2emdMTuyFn33at4nFwjyCoYqRj9JJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3353 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610964826; bh=EN40+a0lQUeZTX/wBgLk5+OKzYXNiwiA5wvRkUjh4Io=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=I77txgnbYU/0xinBoD5yA16cW7pV/luK3ldZcEP3AJ+oWBEcUpYk3GG82horjeNPh rBPzmo1wJ9QlysanwNulZt726CZGyXC0LVu8hDD/HQQGbV7Kdf9NQBQ3ntrSirPvMK Y6aFPRlmr+kul3OXrpcnP/G5FANvmJ3zA5phBStLziDhpCXDMV7xfzfpDGo+jqiTbm 51gBGUhio3Yoto1i17y5IrmnJtFGOsDE1XVqfLeJLRtbX8a8NCSj+7Nd/QmNjFGFxn 5xecImCPqYNGocJ3X6wcwYsigV1usNdZ5xZ0XFI8g8gKe2I60DMwI2TOt20KvPiNY8 Kt7HvfLibmmCg== Subject: Re: [dpdk-users] DPDK: MPLS packet processing 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 Sender: "users" > -----Original Message----- > From: Thomas Monjalon > Sent: Monday, January 18, 2021 12:08 PM > To: raktim bhatt ; Raslan Darawsheh > > Cc: users@dpdk.org; Slava Ovsiienko ; Asaf Penso > > Subject: Re: [dpdk-users] DPDK: MPLS packet processing >=20 > 18/01/2021 09:46, Raslan Darawsheh: > > From: raktim bhatt > > > > > Hi All, > > > > > > I am trying to build a multi-RX-queue dpdk program, using RSS to spli= t the > > > incoming traffic into RX queues on a single port. Mellanox ConnectX-5 > and > > > DPDK Version 19.11 is used for this purpose. It works fine when I use= IP > > > over Ethernet packets as input. However when the packet contains IP > over > > > MPLS over Ethernet, RSS does not seem to work. As a result, all packe= ts > > > belonging to various flows (with different src & dst IPs, ports over = MPLS) > > > are all sent into the same RX queue. > > > > > > > > > My queries are > > > > > > 1. Is there any parameter/techniques in DPDK to distribute MPLS packe= ts > to > > > multiple RX queues? > > > > > I've tried it over my setup with testpmd: > > ./build/app/dpdk-testpmd -n 4 -w 0000:08:00.0 -- --mbcache=3D512 -i --n= b- > cores=3D27 --rxq=3D4 --txq=3D4 --rss-ip > > testpmd> set verbose 1 > > testpmd> start > > > > then tried to send two MPLS packets with different src IP: > > packet1 =3D Ether()/MPLS()/IP(src=3D'1.1.1.1') > > packet2 =3D Ether()/MPLS()/IP(src=3D'1.1.1.2') > > > > and I see that both packets are being spread over the queues, see the > bellow testpmd dump output: > > testpmd> port 0/queue 3: received 1 packets > > src=3D00:00:00:00:00:00 - dst=3DFF:FF:FF:FF:FF:FF - type=3D0x8847 - l= ength=3D60 - > nb_segs=3D1 - RSS hash=3D0x43781943 - RSS queue=3D0x3 - hw ptype: L2_ETHE= R > L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER - l2_len=3D14 - > Receive queue=3D0x3 > > ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_UNKNOWN > PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN > > port 0/queue 1: received 1 packets > > src=3D00:00:00:00:00:00 - dst=3DFF:FF:FF:FF:FF:FF - type=3D0x8847 - l= ength=3D60 - > nb_segs=3D1 - RSS hash=3D0xb8631e05 - RSS queue=3D0x1 - hw ptype: L2_ETHE= R > L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER - l2_len=3D14 - > Receive queue=3D0x1 > > ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_UNKNOWN > PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN > > > > first packet was received on queue 3 and the second one was received > over queue 1, > > by the way, this is with both 19.11.0 and v19.11.6 > > > > > 2. Is there any way to strip off MPLS tags (between Eth and IP) in > > > hardware, something like hw_vlan_strip? > > > > > For this I'm not sure we have such thing in dpdk maybe Thomas can confi= rm > this here? >=20 > Look for "POP_MPLS" in rte_flow. >=20 Thanks, for pointing to it, I've just noticed it.=20 But unfortunately, we don't have support for this action in MLX5 PMD. Kindest regards Raslan Darawsheh