From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690057.outbound.protection.outlook.com [40.107.69.57]) by dpdk.org (Postfix) with ESMTP id 4D1282BF7 for ; Wed, 22 Aug 2018 10:59:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1etg1tKWvXgFQNCNWS822ZBwEFKxh+huBwyRlbDodHU=; b=d8hxz7euCbUgwn6rr8N0Oi7JQNMny/IbiPQFTC26DK+t4T5aqxga49hkGr4XxQkjkZlTzCWDjPOD6peehEc4V8xeN2J0JpWyroiW2bNi1/JawIbu4QUtO3QAT2IrfB/7CFGYP+kY7B6DLsUatkDOuxYtgnxkgkD3kJ1MK0fmBVc= Received: from BYAPR07MB5141.namprd07.prod.outlook.com (20.176.254.206) by BYAPR07MB4424.namprd07.prod.outlook.com (52.135.224.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.22; Wed, 22 Aug 2018 08:59:06 +0000 Received: from BYAPR07MB5141.namprd07.prod.outlook.com ([fe80::74f3:8d55:b397:2a]) by BYAPR07MB5141.namprd07.prod.outlook.com ([fe80::74f3:8d55:b397:2a%3]) with mapi id 15.20.1059.023; Wed, 22 Aug 2018 08:59:06 +0000 From: "Sharma, Yash" To: "dts@dpdk.org" Thread-Topic: Jumbo Frame Test Cases failing On NIC Adapters Thread-Index: AdQ59VQu+TcBamAGRgWtTcnz0vTpEw== Date: Wed, 22 Aug 2018 08:59:05 +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=Yash.Sharma@cavium.com; x-originating-ip: [114.143.122.132] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR07MB4424; 6:sLc5Ho47oZ3SLaLeqfrRKCxoFQt6aj8Osg457rGdhoETYuXi/eP5hII5I++jUnYtP335kZabZ/Hn6cX2rHOWr32c1hB2tnBrlAFFJpkcjs3VpEAV4SBoeTRgULGGEAo/qhApoBffRtNk76PUF5S5sDXya1TLtaRH23uUhw9pSTnZwUuBEfA+WX3/BlU6O4UUcitwiOTlxTpu0VjndP9AmgKeGnkwKZ9GjeglYZnp7030Pnx7wxMtJ5+/mwHyEydn4HDtSSEZisTOlqCB3j8eNN4bTYzHNXYTgUPrUtasO6xra49cST3UckDQb3gFQ4ByguVnD9uDj1EspohaVl9Af6hC1uhuMFwue7rm/WlfD8I0sZL9sucF4Y/5apK9cqEQtOy9cmhe2VL5+ikY97oLDqWdBAUopCMtcuoEJJX2RWJIIPnZrHiKTIU8PFz/RiO3DQpjUMaIE+Z9pgiEgSjfJA==; 5:qoSUWy4q7xlJvxNqIpp7GYF7hNVnD2VOMg/kYRckb6IY1+1UlcLLXwBzDi4ra8yFvjt2iRR7bkYzEVCTDkP/yHTEVHmwzm2ALzp+d2Uc08fRW64EwKa1DOdHt7wB1hrhzKPzr/j+boJ2yqVnm3DzcT4Du+lMsGNlJ2BLJEOVPm8=; 7:tr5rTIF3Ri0D3PX+k/1WwtlBl8LoKiE/b6l+Gx4Gs/T9iA19hBKnGn00YqOJ+5fj7Xi135ZFmBQwWzui1aJnQwMjCGVV+c8aEgBE5wPyz+InMk4VRREqe+ak3vt33JVQhMQHdxknyosb9S6oFfl/WxY3KY6jMZiy2KSP3SWKF54NWpFiFRdIS9xfoRuxCbbxk70wRjBTHkCG4ADNrPrHJPMMbZMhp24Ful06xH05zKhkjrNuII1y5wpmuRUn9yRT x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: cde60946-446f-47df-8196-08d6080d83ef x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4424; x-ms-traffictypediagnostic: BYAPR07MB4424: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155)(17755550239193); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699016); SRVR:BYAPR07MB4424; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4424; x-forefront-prvs: 0772E5DAD5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(39860400002)(396003)(346002)(136003)(53754006)(189003)(199004)(102836004)(81156014)(25786009)(26005)(81166006)(186003)(316002)(8936002)(2906002)(2900100001)(7736002)(1730700003)(2501003)(476003)(8676002)(7696005)(6116002)(53936002)(6506007)(3846002)(5250100002)(99286004)(486006)(33656002)(9686003)(790700001)(6436002)(6306002)(97736004)(5630700001)(106356001)(2351001)(5640700003)(68736007)(54896002)(5660300001)(14444005)(105586002)(14454004)(72206003)(74316002)(66066001)(6916009)(575784001)(256004)(86362001)(55016002)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4424; H:BYAPR07MB5141.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UbkO+SC0p/vTy74b8yl2LeekMaPBgUflNXQ7sZEAuJi3800QzIjFpwR8XtMpH/27pyqqf4VpYjb3aKK4zu/sr4xfd0XeaTVcMLrdK/b8F9GNrnqs+e9fJF38QmHaq9SW4DqK1IbPRe0Aaxykk4q1XOHbGcWFYlEUx3IB7p7eGZfYWYqqDiXMtlRuZcwWrt5yV6B6xelRNY/qoZHOQFnXycx2BvpGXNebaCGIxqskPxPPbqExmFbWYKgdNPQ1y3b/kb5Ao1bSW1/UqOQH2JDd3LIoPe0coMbT2XHph5x7WsrgoVbqPL39Va4vW2yqyWvIe7MSyGgwqWZ7zNfD5XBiQfIrLTNVadBG8Naj/V/0W3I= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BYAPR07MB51419FCDBF18D169A048FF6A99300BYAPR07MB5141namp_" MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: cde60946-446f-47df-8196-08d6080d83ef X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2018 08:59:05.9674 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4424 Subject: [dts] Jumbo Frame Test Cases failing On NIC Adapters X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 08:59:09 -0000 --_000_BYAPR07MB51419FCDBF18D169A048FF6A99300BYAPR07MB5141namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I am using dts 18.02 and dpdk 18.08.Trying to test JumboFrame On 100G(4x25)= adapter. JumboFrame test cases are failing and giving this Exception : Tes= tJumboframes: Test Case test_jumboframes_jumbo_jumbo Result FAILED: 'packet= pass assert error' In TestSuite_jumboframes.py TestCase "test_jumboframes_jumbo_jumbo". Here in the definition of "jumboframes_send_packet". Inside verify() funct= ion while calling" self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))" and= "((rx_bytes + 4) =3D=3D pktsize)", It is adding 4 bytes to tx_bytes and 4 bytes to rx_bytes.Can anyone Please = explain me why these extra 4 bytes are veing added. Adding these 4 bytes is getting the condition false and test cases are fail= ing. If I don't add these 4 bytes to both tx_bytes and rx_bytes then the te= st cases are passing successfully. In the def of "test_jumboframes_bigger_jumbo", It is mentioned that: "On 1= G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 900= 4." Is this the reason why extra 4 bytes are being added? def jumboframes_send_packet(self, pktsize, received=3DTrue): """ Send 1 packet to portid """ tx_pkts_ori, _, tx_bytes_ori =3D [int(_) for _ in self.jumboframes_= get_stat(self.rx_port, "tx")] rx_pkts_ori, rx_err_ori, rx_bytes_ori =3D [int(_) for _ in self.jum= boframes_get_stat(self.tx_port, "rx")] itf =3D self.tester.get_interface(self.tester.get_local_port(self.t= x_port)) mac =3D self.dut.get_mac_address(self.tx_port) # The packet total size include ethernet header, ip header, and pay= load. # ethernet header length is 18 bytes, ip standard header length is = 20 bytes. pktlen =3D pktsize - ETHER_HEADER_LEN padding =3D pktlen - IP_HEADER_LEN self.tester.scapy_foreground() self.tester.scapy_append('nutmac=3D"%s"' % mac) self.tester.scapy_append('sendp([Ether(dst=3Dnutmac, src=3D"52:00:0= 0:00:00:00")/IP(len=3D%s)/Raw(load=3D"\x50"*%s)], iface=3D"%s")' % (pktlen,= padding, itf)) out =3D self.tester.scapy_execute() sleep(5) tx_pkts, _, tx_bytes =3D [int(_) for _ in self.jumboframes_get_stat= (self.rx_port, "tx")] # p0tx_pkts, p0tx_err, p0tx_bytes rx_pkts, rx_err, rx_bytes =3D [int(_) for _ in self.jumboframes_get= _stat(self.tx_port, "rx")] tx_pkts -=3D tx_pkts_ori tx_bytes -=3D tx_bytes_ori rx_pkts -=3D rx_pkts_ori rx_bytes -=3D rx_bytes_ori rx_err -=3D rx_err_ori if received: self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts) and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pkt= size )) and ((rx_bytes + 4) =3D=3D pktsize), "packet pass assert error") Thanks, Yash --_000_BYAPR07MB51419FCDBF18D169A048FF6A99300BYAPR07MB5141namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

Hi all,

 

I am using dts 18.02 and dpdk 18.08.Trying to test J= umboFrame On 100G(4x25) adapter. JumboFrame test cases are failing and givi= ng this Exception : TestJumboframes: Tes= t Case test_jumboframes_jumbo_jumbo Result FAILED: 'packet pass assert erro= r'

 

In  TestSuite_jumboframes.py   TestCa= se  “test_jumboframes_jumbo_jumbo”.

 

Here in the definition of  “jumboframes_s= end_packet”. Inside verify() function while calling” self.pmdou= t.check_tx_bytes(tx_byte= s + 4, pktsize ))” and “((rx_bytes + 4) =3D=3D pktsize)”,

It is adding 4 bytes to tx_bytes and 4 bytes to rx_bytes.Can anyone Please explain me why these extra 4 bytes= are veing added.

 

Adding these 4 bytes is getting the condition false = and test cases are failing. If I don’t add these 4 bytes to both tx_b= ytes and rx_bytes then the test cases are passing successfully.<= /p>

In the def of “test_jumboframes_bigger_jumbo&#= 8221;, It is mentioned that:  “On 1G NICs, when the jubmo frame MTU set as 9000, the= software adjust it to 9004.”

Is this the reason why extra 4 bytes are being added= ?

 

def jumboframes_send_packet(self, pktsize, received= =3DTrue):

        "&qu= ot;"

        Send 1 pa= cket to portid

        "&qu= ot;"

        tx_pkts_o= ri, _, tx_bytes_ori =3D [int(_) for _ in self.jumboframes_get_stat(self.rx_= port, "tx")]

        rx_pkts_o= ri, rx_err_ori, rx_bytes_ori =3D [int(_) for _ in self.jumboframes_get_stat= (self.tx_port, "rx")]

 

        itf =3D s= elf.tester.get_interface(self.tester.get_local_port(self.tx_port))

        mac =3D s= elf.dut.get_mac_address(self.tx_port)

 

        # The pac= ket total size include ethernet header, ip header, and payload.<= /p>

        # etherne= t header length is 18 bytes, ip standard header length is 20 bytes.

        pktlen = =3D pktsize - ETHER_HEADER_LEN

        padding = =3D pktlen - IP_HEADER_LEN

 

        self.test= er.scapy_foreground()

        self.test= er.scapy_append('nutmac=3D"%s"' % mac)

        self.test= er.scapy_append('sendp([Ether(dst=3Dnutmac, src=3D"52:00:00:00:00:00&q= uot;)/IP(len=3D%s)/Raw(load=3D"\x50"*%s)], iface=3D"%s"= )' % (pktlen, padding, itf))

 

        out =3D s= elf.tester.scapy_execute()

        sleep(5)<= o:p>

 

        tx_pkts, = _, tx_bytes =3D [int(_) for _ in self.jumboframes_get_stat(self.rx_port, &q= uot;tx")]

        # p0tx_pk= ts, p0tx_err, p0tx_bytes

        rx_pkts, = rx_err, rx_bytes =3D [int(_) for _ in self.jumboframes_get_stat(self.tx_por= t, "rx")]

 

        tx_pkts -= =3D tx_pkts_ori

        tx_bytes = -=3D tx_bytes_ori

        rx_pkts -= =3D rx_pkts_ori

        rx_bytes = -=3D rx_bytes_ori

        rx_err -= =3D rx_err_ori

 

        if receiv= ed:

        &nbs= p;   self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts)

        &nbs= p;            &= nbsp;   and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize ))

        &nbs= p;            &= nbsp;   and ((rx_bytes + 4) =3D=3D pktsize),

        &nbs= p;            &= nbsp;  "packet pass assert error")

 

Thanks,

Yash

 

--_000_BYAPR07MB51419FCDBF18D169A048FF6A99300BYAPR07MB5141namp_--