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 A43E0456BE for ; Fri, 26 Jul 2024 21:30:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87866427C7; Fri, 26 Jul 2024 21:30:02 +0200 (CEST) Received: from mx0a-00196b01.pphosted.com (mx0a-00196b01.pphosted.com [67.231.149.170]) by mails.dpdk.org (Postfix) with ESMTP id 0BB604279A for ; Fri, 26 Jul 2024 21:30:00 +0200 (CEST) Received: from pps.filterd (m0096263.ppops.net [127.0.0.1]) by mx0a-00196b01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46QIqB38023393 for ; Fri, 26 Jul 2024 15:29:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netscout.com; h= content-type:date:from:message-id:mime-version:subject:to; s= netscout.com.09.24.2020; bh=Egqdrrkc/cFZwSRSvkeWQ9JjMIoA9vSvgpPZ UOAYfWs=; b=hrLLZoW8zwxgQLGtn2Xym/imqXVOzca2TcI69YgJIyvzRhIGDN1j 5RfFL1e0PcesWs923Ou4TToYBU87A/vNxdmqP9jh84bU9p2TguCUoiC/clbQ+xxk Uep53JAW2BldOytsWXJN928dstwsYNKDK/Q110nuohneLALZdYz+y9iYqDWWP9/y bwIj9MB7ecH5rwJpwh/dWNHZN8de5EpGW3gU6ye4AsL03JPwcJWAGMM8elWClx0f 20ckdW8zSA03o2wwAnp5TUn3RfbCXFZA1bmxVgDPEhA5tvEC6N/kHzMilNk8+bG+ l/yitGM9E092Mx7SwZKYBKVaSy8HwTwwfQ== Received: from bn1pr04cu002.outbound.protection.outlook.com (mail-eastus2azlp17010002.outbound.protection.outlook.com [40.93.12.2]) by mx0a-00196b01.pphosted.com (PPS) with ESMTPS id 40m1r10x8h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 26 Jul 2024 15:29:58 -0400 (EDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=m6KYYYd0YMOXsLlJW6KHWHCaYQlVjKmdDY8dWGr9wzFQytojExzjnTz2yatzkOvb834E6yoQhjkEEsK1F8VLknbVT3kiHnAHj3cxE4nbwHD1eWMMc2LELc77Pl8s2Fx2eIPniq6DwTtE77EGe1l8EpbcyuZ+VRr8KHIY+vqaR50lr3ATx5b9mTmTeaY4BeW0m+6CS79Ozimo5KBN9XOC4Cf6p/LZ3CYYsdp+fBAtZvdIrnFnhSo3KuysZ9BjEf2kOJgb/xaMYc31fDYOVQybAf2ep8XdOfU3lp4P48v2jfIwlzC9lIzQgosVTEV60HHlmnH0alpiCmJp/LfSUvuxEw== 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=Egqdrrkc/cFZwSRSvkeWQ9JjMIoA9vSvgpPZUOAYfWs=; b=PVDO+qOfa60tEnkflGcN3L51OW+yh74P4p5di+3UCSikPkA1eEKmpAS0/r6734jzVUh9367KpO9sOF0sw+gcMEACMS8hTrJ3dUCUvSHTXydgE6CyFeSa7T8Aji/cQpoeyiJnq5JGnvXpffC9JsFXr60NFsN3C3BCnUamVTPON8NL9HJMZ5aekO97pbpC/5nDc6IgLyxMIUSX4/BtRA4L3TeKerQR4C2COFEh3O+5QcABHu/y1cIHtbIQx6jtKp0RLV3ARu2vN2wshR9KB+IAkRpPrUbxqm41JI2OiN9XeAjyVawxMzmQAjwOGwEHdkOJc2zwo9U6ttYsQ051r/2rsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netscout.com; dmarc=pass action=none header.from=netscout.com; dkim=pass header.d=netscout.com; arc=none Received: from CH3PR01MB8470.prod.exchangelabs.com (2603:10b6:610:1a4::21) by SJ2PR01MB8484.prod.exchangelabs.com (2603:10b6:a03:565::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.19; Fri, 26 Jul 2024 19:29:54 +0000 Received: from CH3PR01MB8470.prod.exchangelabs.com ([fe80::80c4:7216:f070:e5fd]) by CH3PR01MB8470.prod.exchangelabs.com ([fe80::80c4:7216:f070:e5fd%4]) with mapi id 15.20.7784.017; Fri, 26 Jul 2024 19:29:54 +0000 From: "Lombardo, Ed" To: "users@dpdk.org" Subject: prepend mbuf to another mbuf Thread-Topic: prepend mbuf to another mbuf Thread-Index: AdrfX6nlTHOASj5sTl2m3Ro5v88gqg== Date: Fri, 26 Jul 2024 19:29:54 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR01MB8470:EE_|SJ2PR01MB8484:EE_ x-ms-office365-filtering-correlation-id: 7d6fa3a2-2811-4e67-d18c-08dcada95396 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?uKMI6Nm6JOTQqfZE2DtkpEYRzufAxt+/S9s/mlb0zbtTKBfMiW5wNdSgJF0f?= =?us-ascii?Q?0j8De/AP8D98kWFdF6XTuqTMucGZUG62/0E6m0+M0tplwCH8vEaEsyz8mA9Q?= =?us-ascii?Q?W28HysqVtZj4nrCfyRzluKjLbhNav8nVhE2MAeggb9aa6Mn9DX0OSNtdJe3G?= =?us-ascii?Q?HsLK2T6JtoN50jljOz4dZwkLEMUPhnl69dRSos51TXUyrGrfZ0vZpDTsLHEa?= =?us-ascii?Q?nETKoBjEHwEz8mIuG0+QcEmB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?Q?fgr5eImhJJ+XmyQXMnekfsH3QdexjIpUmOSs5B43b/20oDQItKRraPeAspMA?= =?us-ascii?Q?P+mbNNKzDNtqOZhoGdO2gOq6n3yikBMbqNdLYI74WjuD7/6z34BfxT+kycMO?= =?us-ascii?Q?xK1K6JMDt18ZGPiSsdGyHAf+C8vx0viymZ/6+rYYxiKPqfTXQR7JQLKKsZ7d?= =?us-ascii?Q?Hi9JRU3Vb6p44SEaG8Zm6mudUk/QK0naDD9q69AinwpaWR7qVZ4CRSbG2tWe?= =?us-ascii?Q?p+9AWM/SV2CnYwnYU6g6TxCd7vT7LG1A+5r6CAKxUGitdpL88w=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR01MB8470.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8U7xNZ6x/82iOqbE6OU7asuDz6jfpzBsDbeQXMcr/50cZ4mYJm1K5R9EHSg8?= =?us-ascii?Q?jhurDfSiv9Wnh9L+lPzaN5INu20ln16V4FlaL9ROCZnd4Klsd2I8toJxL2ic?= =?us-ascii?Q?13ehoanfxmi3mqL/pdgbBqxtW+0D8cNLLxs7wustjCy1mNH41GA3aszrKR42?= =?us-ascii?Q?LzgVkvFML9tj2QUPGU+9cUs53CcRG8ISSPRDKKwTXbUddr5Vp8lZzd0I7QzL?= =?us-ascii?Q?jNHsxtgZdvQEcS4qmmL32jWn21zWuyxBWigLLbBQZo7EPonNGhTt6fFvt9oz?= =?us-ascii?Q?gjMTdHUZXmvTu6l/vfFHFfWyAsi6GqRb3TX2Dz9nIZUm7yJeTVT1gl2dm9av?= =?us-ascii?Q?Wi9Wh6+UGk0NMcPkPxtV1+RQMg0hxpkXg7RISAdD069VsActJMj+SmYv2g3Y?=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WZrZAkeqcyi5Rlfe?= =?us-ascii?Q?cyXPQ1eXrDjESkHyxvNfmlarUQHII7ucJzujtQYE0v4vojf/1rwDk0IZMUVY?= =?us-ascii?Q?NYZMJPzwYohEMQmhrTbdpxZ8/QLH9e5Z++07e2xGrqoas+KZRWvh/A8aIUz3?= =?us-ascii?Q?9NtaBnOjJKobjvi9xVgbB8zPzkymOvmy7L3hPst6NDGoMtCcd/ZkwOlIXtPy?= =?us-ascii?Q?oVur5AQL3NC+7qwfggDGBz81C6OnqzIkHivlY8Izm/dJUuk60YdrvfO2Mjxj?= =?us-ascii?Q?pxtI/iLwqnhOl5HcUy0IiwkeLxu4yQO4VbxN7EFO?= Content-Type: multipart/alternative; boundary="_000_CH3PR01MB8470A9C23BE98292BC45D0BB8FB42CH3PR01MB8470prod_" MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: vPqGT+ZOuodHnT4xqxxoCfX3gFfaeGCF9GITnMc5LJLApJuSFME6FQltlHTK7ieh3sbowbA331/zcsoC2vHJN7ZWn1rRIdi4Ls2AU7hSNpnqPPZqIfQoWkY7NW+WSCoAn0mDbfnsefESotx0FnwSU8zmHtRBP6bB1iCtufNLCvEpW7jj+XC3poA7T6mYrKauObDrWH5UjFSQAwldWhUsX7ubCt5B6IRhdtsYAIoLen6f8ipqqFkpug9T9UD6S5ff8XHSZ76rsniwpkTFfIQ4sGQw6xl96ZLHMLYNUFeloTVBg6ikXVlckDXS89Ida3Z46HUhrEkF8Rg2GLULsTlU3WCI7w11RGww9+hzC1mn88+KLcbHz30sQNa8CVBJj9U0whc9uR8H9BhXHZcPvw5naTTtsoEQOE2Ctt4t0TW2pfzaWzZ6W2ZV/NzxtLmZi7pvEuMrinUlF3AdbGRR8PMvRSWMUw/KW9KXOsRGbJF3HuapCM+/s/d5wPB2Sgslb/R/3h3c38OM2ugiA4tCIXkAdk/8Kb4IvlaqkEo/bgE/xHWzCLLuWco7JG3p6qxRNQM5X9aSuUDQKbseX01Y59tbUeD8GwR+LvJIjL7YLrHVT70c58PSJ0/YuhwaLG3QS4hq X-OriginatorOrg: netscout.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR01MB8470.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d6fa3a2-2811-4e67-d18c-08dcada95396 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2024 19:29:54.3028 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 54f11205-d4aa-4809-bd36-0b542199c5b2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: e+Tg8An5UQVL1YDk1nh+/NbRoAjQ7dz2YzFdbRFvEeKZRjI+Rf46AP7z6wwY5Ne0T8Sv4OZKFZouMZiVxozwfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR01MB8484 X-Proofpoint-ORIG-GUID: 24Fe-pMoLVlVsck7PYXImRd8orP_HpXE X-Proofpoint-GUID: 24Fe-pMoLVlVsck7PYXImRd8orP_HpXE X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 suspectscore=0 phishscore=0 adultscore=0 mlxlogscore=657 mlxscore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 spamscore=0 bulkscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.21.0-2407110000 definitions=main-2407260132 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_CH3PR01MB8470A9C23BE98292BC45D0BB8FB42CH3PR01MB8470prod_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have an issue with retransmitting a received packet with encapsulation he= aders prepended to original received packet when using E810 NIC for transmi= t. I have received a packet and is stored in one or more mbufs. To do encapsu= lation I am acquiring a mbuf from free pool. The new mbuf is where I add t= he L2 Header, IPv4 header and GRE header. I update the mbuf with rte_mbuf_= refcnt_set(new_mbuf, 1) and rte_mbuf_refcnt_update(mbuf, 1); and then fill = in the new mbuf metadata like (nb_segs, pkt_len, port, mbuf->next, etc) fro= m the original mbuf. When I test this feature in VMWare with VMXNET3 vnic it works perfectly, th= e packet is transmitted with the encapsulation headers ahead of the origina= l packet seen at the endpoint. When I test same on Intel E810 only the first mbuf of data is transmitted, = the original packet data from remaining mbufs is not transmitted. I compared the mbufs just prior to transmit, byte by byte, in the VMXNET3 a= nd E810 NIC cases and they are identical, the code path is the same. I also tried dpdk 17.11 and dpdk 22.11 versions with same results. Also same test fails with Intel X710 and X540 NICs similar to way E810 fail= s. I modified the code to insert the encapsulation headers in the headroom of = the original mbuf and it worked perfectly. What could be the issue with the Intel NICs when transmitting a chain of mb= ufs, where the first mbuf has only the L2 header, IPv4 header and GRE heade= r and remaining mbuf(s) contain the original packet data? Thanks, Ed --_000_CH3PR01MB8470A9C23BE98292BC45D0BB8FB42CH3PR01MB8470prod_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

I have an issue with retransmitting a received packe= t with encapsulation headers prepended to original received packet when usi= ng E810 NIC for transmit.

 

I have received a packet and is stored in one or mor= e mbufs.  To do encapsulation I am acquiring a mbuf from free pool.&nb= sp; The new mbuf is where I add the L2 Header, IPv4 header and GRE header.&= nbsp; I update the mbuf with rte_mbuf_refcnt_set(new_mbuf, 1) and rte_mbuf_refcnt_update(mbuf, 1); and then fill in the new mbuf meta= data like (nb_segs, pkt_len, port, mbuf->next, etc) from the original mb= uf.

 

When I test this feature in VMWare with VMXNET3 vnic= it works perfectly, the packet is transmitted with the encapsulation heade= rs ahead of the original packet seen at the endpoint.

 

When I test same on Intel E810 only the first mbuf o= f data is transmitted, the original packet data from remaining mbufs is not= transmitted.

 

I compared the mbufs just prior to transmit, byte by= byte, in the VMXNET3 and E810 NIC cases and they are identical, the code p= ath is the same.

I also tried dpdk 17.11 and dpdk 22.11 versions with= same results.

Also same test fails with Intel X710 and X540 NICs s= imilar to way E810 fails.

 

I modified the code to insert the encapsulation head= ers in the headroom of the original mbuf and it worked perfectly.

 

What could be the issue with the Intel NICs when tra= nsmitting a chain of mbufs, where the first mbuf has only the L2 header, IP= v4 header and GRE header and remaining mbuf(s) contain the original packet = data?

 

Thanks,

Ed

--_000_CH3PR01MB8470A9C23BE98292BC45D0BB8FB42CH3PR01MB8470prod_--