From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50043.outbound.protection.outlook.com [40.107.5.43]) by dpdk.org (Postfix) with ESMTP id 43B2E568A for ; Mon, 21 Aug 2017 09:25:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8V/pmaDCDmWfhX3u7AnzTKIsPR1pR6zI9z2gspfNyco=; b=DUsOb0FXSovzNMbx1jkdX1ZoXu0WAesFHjFi8qQ1FQt8PDoH/1QQL2sQRAp1Seiz0pDx5sy6t9Cu5WKYBS7Rt/fj+X0HF8eC+CQAA8KVT21VjbcUbX10lqCiuZPSnKLfd4Gi+b27XsG+iIfrlgY0p3tonGFLlwlmU/H8yrMAr90= Received: from AM3PR05MB307.eurprd05.prod.outlook.com (10.242.247.152) by AM3PR05MB0903.eurprd05.prod.outlook.com (10.161.33.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Mon, 21 Aug 2017 07:25:23 +0000 Received: from AM3PR05MB307.eurprd05.prod.outlook.com ([fe80::d563:ce2f:1468:a939]) by AM3PR05MB307.eurprd05.prod.outlook.com ([fe80::d563:ce2f:1468:a939%17]) with mapi id 15.01.1362.019; Mon, 21 Aug 2017 07:25:23 +0000 From: Wisam Monther To: Thomas Monjalon , "users@dpdk.org" , "jiayu.hu@intel.com" CC: Raslan Darawsheh , Shahaf Shuler Thread-Topic: Unable to merge packets using GRO feature Thread-Index: AdMaTiF+8CYSsq4aQZ+8LenCiQpxYQ== Date: Mon, 21 Aug 2017 07:25:23 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=wisamm@mellanox.com; x-originating-ip: [82.213.2.186] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM3PR05MB0903; 6:aNJ6XSfIb4MY1ZyDlUGXGkcqDwPj7ERzSKmtonwCYviV1FTfiSj4UuvLhz8Sfv25ICvdoLXNF4+yonZC9BkIPpHY3FwjpLUlMgLWWVUAfAlqY3D18oy1ClUYWOcxk6X36oSYF58CDQ3s5iS2spJ/oyQlNq6q8DshUQFDyb/lu4ibD9LtCYgOTuA/AYaohfCvfa/sHdXfG7iy8+cBAcG+jt72eybgnw/2ud6EanHnTv9if5lzZXaDkuqkl7V+qkY3Od+ebyrrojVpL78Lnl1lljnIlU2waPCmg4NK6es6mEMQx2Luqj3qtx/BP8V4aLZccATeChGBbj8E8Hk8eBPBsQ==; 5:ei4CF21LOcQGidbKakBaYJIi2h0ZLyiNk6KLe9OOMjA3v+KNLJbH8f/D70QfT97wCTjUukhDREDy0y/J/kUWRTrNoJNoy4EvXFsYBx9UM7qeWQKXh6hgGNyyvegCQWuAsngMyIq9e8oEJsaKeV1W7w==; 24:doGNsdat14+D8C3ru7kXQlJ0j3viBmTyZ3seCUV3lKTF8EM25LBJADKh2TjjDG+CAH21w1Yms7cyJRobw6D+XNZ0qcr3kC9T4N6iljCAvRg=; 7:w0fWq2xTI4lxaG/C0GkSVrwMZ2sXj+qwqIvf4LgsnaXh6/A91FvKREiu3OhvSM/EngDtX3fKot63qW5RqdbdD4ZiW7pmr4Fz7z6MO6P+eU1MQw3oDBhMHdL3WMKUzEGUAMP7YJgj53DR/ZY4ntyNcVTWSE9JKBLa3qTAmIc9a4QUej1Aj7vCKTCGt+0tFLeo76XF9xT2gNAeWfhy0jqgvjPB+oOWj6tlaffJCJilVQM= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 9aa91f94-165b-4d31-2ab3-08d4e865c974 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM3PR05MB0903; x-ms-traffictypediagnostic: AM3PR05MB0903: x-exchange-antispam-report-test: UriScan:(21748063052155); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM3PR05MB0903; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM3PR05MB0903; x-forefront-prvs: 040655413E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(199003)(189002)(3280700002)(5660300001)(55016002)(101416001)(74316002)(14454004)(106356001)(99286003)(54906002)(105586002)(6506006)(8936002)(54356999)(81166006)(50986999)(8676002)(81156014)(9326002)(6306002)(7736002)(54896002)(53936002)(3660700001)(33656002)(9686003)(86362001)(68736007)(2906002)(478600001)(66066001)(2501003)(5250100002)(6436002)(6116002)(2201001)(25786009)(7696004)(102836003)(790700001)(3846002)(189998001)(2900100001)(107886003)(97736004)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR05MB0903; H:AM3PR05MB307.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Aug 2017 07:25:23.3850 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB0903 X-Mailman-Approved-At: Wed, 23 Aug 2017 10:49:04 +0200 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Unable to merge packets using GRO feature X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 07:25:26 -0000 Hello Guys, I hope this finds you well, I'm trying to test the GRO feature. But I'm stu= ck with this scenario. As you know, GRO is only support TCP_IPV4 packet until now. So I'm trying to test the basic functionality of the feature, as following: Start testpmd: """ ./x86_64-native-linuxapp-gcc/build/app/test-pmd/testpmd -n 4 -w 00:0a.0 -= w 00:09.0 -- --burst=3D64 --mbcache=3D512 --portmask 0xf -i --txd=3D512 -= -rxd=3D512 --nb-cores=3D9 --rxq=3D2 --txq=3D2 --txqflags=3D0 """ Then enable GRO at the two ports: """ Testpmd>gro on 0 Testpmd>gro on 1 """ And trying to send TCP_IPV4 fragmented packet "packet with length 1500 frag= mented to three packets of 500" """ p=3DEther(src=3Dget_if_hwaddr('ens10'), dst=3D '24:8A:07:88:26:6B')/IP()/TC= P() p.add_payload('F'*(1500 - len(p))) frags=3Dfragment(p,fragsize=3D500) for fragment in frags: sendp(fragment, iface=3D'ens10') """ But the testpmd forward the packets as it is, " doesn't do any merge" Tcpdump at the TG side, The sending fragmets using ens10: #tcpdump -I ens10 -vvven 15:45:29.083514 24:8a:07:88:26:5b > 24:8a:07:88:26:6b, ethertype IPv4 (0x08= 00), length 538: (tos 0x0, ttl 64, id 1, offset 0, flags [+], proto Options= (0), length 524) 127.0.0.1 > 127.0.0.1: ip-proto-0 504 15:45:29.115266 24:8a:07:88:26:5b > 24:8a:07:88:26:6b, ethertype IPv4 (0x08= 00), length 538: (tos 0x0, ttl 64, id 1, offset 504, flags [+], proto Optio= ns (0), length 524) 127.0.0.1 > 127.0.0.1: ip-proto-0 15:45:29.147258 24:8a:07:88:26:5b > 24:8a:07:88:26:6b, ethertype IPv4 (0x08= 00), length 492: (tos 0x0, ttl 64, id 1, offset 1008, flags [none], proto O= ptions (0), length 478) 127.0.0.1 > 127.0.0.1: ip-proto-0 #tcpdump -i ens9 -vvven /// here will be received the forwarded packets fr= om testpmd: 15:45:29.083996 24:8a:07:88:26:5b > 24:8a:07:88:26:6b, ethertype IPv4 (0x08= 00), length 538: (tos 0x0, ttl 64, id 1, offset 0, flags [+], proto Options= (0), length 524) 127.0.0.1 > 127.0.0.1: ip-proto-0 504 15:45:29.115425 24:8a:07:88:26:5b > 24:8a:07:88:26:6b, ethertype IPv4 (0x08= 00), length 538: (tos 0x0, ttl 64, id 1, offset 504, flags [+], proto Optio= ns (0), length 524) 127.0.0.1 > 127.0.0.1: ip-proto-0 15:45:29.147492 24:8a:07:88:26:5b > 24:8a:07:88:26:6b, ethertype IPv4 (0x08= 00), length 492: (tos 0x0, ttl 64, id 1, offset 1008, flags [none], proto O= ptions (0), length 478) 127.0.0.1 > 127.0.0.1: ip-proto-0 Am I doing something wrong?! Or it is a bug. ? As you see the tcpdump shows the offset of each fragment, and testpmd pri= nts L4_FRAG, so the both are recognizing that this is a fragmented packet. Best regards, Wisam Jaddo