From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20070.outbound.protection.outlook.com [40.107.2.70]) by dpdk.org (Postfix) with ESMTP id 6029C3230 for ; Tue, 26 Sep 2017 02:46:06 +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=LLlx3LaUpMLJqRTan5MF/5ijx9O1SuOf6pLitncLqi0=; b=pVtmR2Gj08qWOPcUMaClnfQMl1vd3UD6dfh+cvhlOY+xc1OSrEInGji9SV4tprq9yIbSdFX8yhSo/4Vxd3AppTT49YT3t10muDmbTQq+BiDTRypFePStt7ulT2MSXW3fiwmD+4J97PyHCKkNtwEEh0PiIRyr336xDAZbGzp8qlU= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 26 Sep 2017 00:46:04 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::84ed:9505:3e7f:9722]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::84ed:9505:3e7f:9722%13]) with mapi id 15.20.0077.011; Tue, 26 Sep 2017 00:46:04 +0000 From: Yongseok Koh To: Damien Clabaut CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] Issue with pktgen-dpdk replaying >1500bytes pcap on MCX4 Thread-Index: AQHTNiLe7IxZ+Y59IU+J6Arh2Ok8DqLGVWKA Date: Tue, 26 Sep 2017 00:46:04 +0000 Message-ID: References: <5f5aba8a-0dd2-fd64-891b-569d2a4627c8@corp.ovh.com> In-Reply-To: <5f5aba8a-0dd2-fd64-891b-569d2a4627c8@corp.ovh.com> 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=yskoh@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2045; 6:iH4R4rTq9wuGqzhf//T2xDjUnbYJFRF2Y8I3u0vN3qs0/kEh1eCUM3nFBRHBzF54k0uWtfxlPmaMR5rOQaHej3Y+ZMDnE+qO/vn2Z7dW5np6+0itcn8iOTDhxSgnhMEMIvwNEXvk65fkxFP44UeBNDoh994qbcOoU8lqroOS6qPRl5+KxWxf/BtRuLv0n7qqsr9n+shl2K5WXVbsDKeMdqLsrLpOMf1zLLNOb7v/7kIatHSd0V/hcnizcdzUZ4WllYecKm1c7QLSWay9e0SDEGfavXH2lix7S1GQMJyAVhywrrfGttyD0obvoAF9GucCw0jW2qPqdV61ZWUjqciisA==; 5:W+y5BRoObpOsIxOAJ9eJpdk/ITbV2LiHa2PsQH7Bq/j4g1dTQkiiBibbDCJ9QPwE7buikg+CHn7S83XSryWrJ8QsDElA7+G7rw9cvGChioWsSUjBNhHc182os24X4yYnGLSEertNXxsgg0134+DrBA==; 24:ubeZKcr3c9giOHV3y+aUCjA8kqrW8uILHztDjDnCanIMcC+UurYqmIOvTDGLHV2k/13V31okiW1HRw/R0Zbj+Zf1SaZndHbYRbldFj1E5ZE=; 7:WoOB0dVmO5jGaoCyfyVRvAPrILEh0odN9MvOiHJX8bA3iEkLgbgbiZJ/P7HdKQfZpJD2MaTydRsj2ju601H+Qu/FFjlX/n2MfwjP6NUaXZXZsq0fMWpHMRjR9jVIB5J4ZBgD1KIww/ENBQSiO8z/tW2EitQ99wbia+HRf0Cz2vuHlVf5GGGtHi5i4+MqzBqt0zMJ6A4S0aZdNdZUD7xBw2SM8rICfo+i6ygTGJjmDxA= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 484234d9-f517-4cbc-125e-08d50477f7cc x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR0501MB2045; x-ms-traffictypediagnostic: VI1PR0501MB2045: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0501MB2045; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0501MB2045; x-forefront-prvs: 0442E569BC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(377454003)(189002)(199003)(24454002)(101416001)(5250100002)(82746002)(316002)(8676002)(68736007)(81156014)(2950100002)(2900100001)(36756003)(4326008)(6916009)(86362001)(66066001)(2906002)(25786009)(6486002)(102836003)(53936002)(3280700002)(6246003)(33656002)(3846002)(97736004)(14454004)(81166006)(8936002)(50986999)(6116002)(5660300001)(478600001)(54356999)(6512007)(83716003)(6436002)(189998001)(76176999)(229853002)(7736002)(53546010)(6506006)(3660700001)(305945005)(105586002)(106356001)(99286003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2045; H:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <1A3C8890704C2C44A5C690B990CF8F5D@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2017 00:46:04.6688 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2045 Subject: Re: [dpdk-dev] Issue with pktgen-dpdk replaying >1500bytes pcap on MCX4 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 00:46:06 -0000 Hi, Damien Can you please let me know the versions of your SW - pktgen-dpdk, DPDK and = MLNX_OFED? Also Firmware version if available. Thanks, Yongseok > On Sep 25, 2017, at 10:19 AM, Damien Clabaut wrote: >=20 > Hello DPDK devs, >=20 > I am sending this message here as I did not find a bugtracker on the webs= ite. >=20 > If this is the wrong place, I would kindly apologize and ask you to redir= ect me to the proper place, >=20 > Thank you. >=20 > Description of the issue: >=20 > I am using pktgen-dpdk to replay a pcap file containing exactly 1 packet. >=20 > The packet in question is generated using this Scapy command: >=20 > pkt=3D(Ether(src=3D"ec:0d:9a:37:d1:ab",dst=3D"7c:fe:90:31:0d:52")/Dot1Q(v= lan=3D2)/IP(dst=3D"192.168.0.254")/UDP(sport=3D1020,dport=3D1021)/Raw(RandB= in(size=3D8500))) >=20 > The pcap is then replayed in pktgen-dpdk: >=20 > ./app/app/x86_64-native-linuxapp-gcc/pktgen -l 0-7 -- -m [1-7].0 -s 0:pca= p/8500Bpp.pcap >=20 > When I run this on a machine with Mellanox ConnectX-4 NIC (MCX4), the swi= tch towards which I generate traffic gets a strange behaviour >=20 > #sh int et29/1 | i rate > 5 seconds input rate 39.4 Gbps (98.4% with framing overhead), 0 packets= /sec >=20 > A capture of this traffic (I used a monitor session to redirect all to a = different port, connected to a machine on which I ran tcpdump) gives me thi= s: >=20 > 19:04:50.210792 00:00:00:00:00:00 (oui Ethernet) > 00:00:00:00:00:00 (oui= Ethernet) Null Unnumbered, ef, Flags [Poll], length 1500 > 19:04:50.210795 00:00:00:00:00:00 (oui Ethernet) > 00:00:00:00:00:00 (oui= Ethernet) Null Unnumbered, ef, Flags [Poll], length 1500 > 19:04:50.210796 00:00:00:00:00:00 (oui Ethernet) > 00:00:00:00:00:00 (oui= Ethernet) Null Unnumbered, ef, Flags [Poll], length 1500 > 19:04:50.210797 00:00:00:00:00:00 (oui Ethernet) > 00:00:00:00:00:00 (oui= Ethernet) Null Unnumbered, ef, Flags [Poll], length 1500 > 19:04:50.210799 00:00:00:00:00:00 (oui Ethernet) > 00:00:00:00:00:00 (oui= Ethernet) Null Unnumbered, ef, Flags [Poll], length 1500 >=20 > The issue cannot be reproduced if any of the following conditions is met: >=20 > - Set the size in the Raw(RandBin()) to a value lower than 1500 >=20 > - Send the packet from a Mellanox ConnectX-3 (MCX3) NIC (both machines ar= e indentical in terms of software). >=20 > Is this a known problem ? >=20 > I remain available for any question you may have. >=20 > Regards, >=20 > --=20 > Damien Clabaut > R&D vRouter > ovh.qc.ca >=20