From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0061.outbound.protection.outlook.com [104.47.33.61]) by dpdk.org (Postfix) with ESMTP id 14FB62C27 for ; Thu, 13 Apr 2017 18:08:50 +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; bh=JSd+ghO4gH73RdN6Xx8uzPaO5XnLDX65Wz82DnZheGk=; b=FFghqoz7suomYEPDPAEuvM8FtSo1OozllTwmqeXwhk3tK3d2RBC7uUqsgRbMcgEnESQ4a6ar5AsFUN59IfjiwszPrbLrv9wjqeVQ9yO3kt0GWw+fqSQNqsQaz2X/ZdsEMSp+LxuB9BL6DYEdjd/nTun1pE5goU+SVrHyU13WRDA= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from [10.0.0.11] (31.172.191.173) by CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Thu, 13 Apr 2017 16:08:48 +0000 To: dts@dpdk.org References: From: Angela Czubak Message-ID: Date: Thu, 13 Apr 2017 18:08:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: DB6PR0202CA0023.eurprd02.prod.outlook.com (10.169.218.33) To CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) X-MS-Office365-Filtering-Correlation-Id: 280cd0c4-5db2-4653-edf0-08d482875eb2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 3:Vrv/4voWuzL6a2XjqRUh4tYhSzd4QW9RlG6VRfH7oE4uB2X9X7X8PWcdCAgdpXY/MD7GZMZiY86BDpN93rMVOp4zVmIOudw/pBaEg9sPmPAY2gSXfJEksnIBaDN9MgBxMJLSJB128wSJ/draNTvqolPAqxZ7Gs3/01/2W95Wiv3vy/kveF/Eqze4Ktk+2M6O/hPapYugrSm1rRFPR3AMrGIhovCRW4uLoZqU2ZLOuMqzsHEoJu8qcVDk09bX/0jJfMKdHe8JrwQnVqRIO/t7KksCc1r63KbKb9GiyCKDJxWNKTBV0kCBV2tyaHeudtGpfkGO0rHqsw00BjrrNWAtmg==; 25:pg+16imc7TB2tjRaDtjzRU14TdOpoyr/L/cPsWxytVpjxKjIG5fhNYXUzy6xWAH9Tb5uJ2V9r3EZNQb/gWj/xD4qBb+fnL+e8VlsBQMedWVjJSv/NWmiMbonokQkP2EVOOenkDkD16jBmRla6D1UHiBEF5o5YBTyKR0Y1h1j0MDPEyQmAV4nwoBYndMLjZ9eY9a+ZG2eYRQDkmfxhPD5yTtiiLNbTG2BRBIFmGSOm3KnEO3YexN033a1+Z4dSMqfEUYm+P5e4hnfu8kZ8RxeKJtaR8n/YZ5m0DTqkKrN8DmbMzxD4TT+3XVImFh+iaTmITBu8Gq+6H6emzVbhrD+/KiPW16GqjeU5FB22vdvuHCo0cO5NKI/heOAO4foCrPhu0XsF0pdp045hOsuf3kwb70DW0WlZh2a5+ruIbB7wJRoYkFOhNEOQpgfMZksmpcFbawyuPjlsml2q0wtW0UwKg== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 31:ws1OrFfopN/15hNOfO86/Mp89W0QLaomzTWWU0q5sa7W2FKo71Fs2fFMx4lNzo2KOiAr7zTSi4cja8cgNORg3yMSkpIVVwHeARYiDR+xA94r4VioCQ43F+SwuXbzYMfPvdjnk1CJFKpEt5Xs8zdZV7M1cp8tzKUO6pRsM+BWX4AyRe7S4ONWwWIm7y7OisbJdWuvpONZKRgMTaDy73gr4E0k/2AHbL7yAw7udVrYyYJ7CurnEJ4YiNMQEs9eHEJ51XbSlQyKgmR4we8HERtk1Y1NobilwOAkgeIHrtuHIqM=; 20:8tmXlX4CzX8qLJBDL33IVIUKEBSQDqWLTqNU64njF/8sU63QATI5TzT8KjL4JWk/9lll8jCAbO+AAyaA8mykBsBAoWbaF2hU34BzeoEmVataR7zlVuHMyLlw0GbcSA3aLGahJhj0mOdAPeeBUJDxo5sEIAGs7lJCrX8y7iajBWPHVHtR5hIelAQVn7lE3FFF0pTcwiGdx6zkP/JtVMMyCYfsR3YdG8BC/6UYrHzaqIysMEpMGFhGJ3lCnnvRindcOoZ3qybUbkJLvnGbOqIQKy58h1Q2YVWT4ekvItNQ31F8Kajg8uBBCHtrFlfuH/KbnLACt6cOKPvKYEjcMhGhDKbxFYlF/LIlC80CjX8RBBDRCfPBzHJZ96mnRGWQYMGCXFd/6v4Fi2KF7vY0VGkUzs3Fn+9jq8iFMPz/8ICYbNZundsSQT5Ld7a8PmPorDr4gT782clBQ+gSyYlsthY+EQugPYPWbrR0v0rq3StfaONLkfddi5QZBW4We00Vw+4TW0cwYsroF73tvfslVgoM1FT9i7W+0yaAl7sYmtATChfjluwoSqaRTOuapxtPVRzjnFDNeku/z+8UdLNK+nKpLkPQIQaw+Zu3UxsCqIVzvjI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(3002001)(10201501046)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123564025)(20161123562025)(6072148); SRVR:CO2PR0701MB805; BCL:0; PCL:0; RULEID:; SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 4:yKSGAnMNbmSGs4nvxbSxt1IOUvFNuCecfbLsxUIrmsgKx9+rWsG61YfD0njlMpSExjDRHxEvaMKeTPD64OPxfCgJyAlgXF1SMKjRCqOnKFsYWICbRPZievjHY3W7urHxWZbAUrRGidSu8t1GETjrPxNIsAtcr32DowhMjXm7NVRl42o0VxoQA3mlm4vulVrHN05F1aWuNAljKBoy6Glvi2hKk/hmWBboIJn+eb0Jec0OF+4YefDca8fPT4u1Epd7ONXCfrazjqlOKrNuO0MPO5oAat5muspTyToyEQ/m78WxsoLAU35t5lfLvJ7He0/8VqJrf67dNY6R9NoOkcU+YH6DSR5/ZSy0eqe5XVMyyL0QCcDvOqb2y6Xjup+T94uq2GB5CZBzjfcJ1Dk/FTz2IBT84meMYiN3tNxMPsAmvC2wQBJppKGYK3hjdF9KFNm4E3myUOtoeu57CUcEEvW8IQnu/i5H+Aov1NOExb1TDonszNBD8uFkOWG3xB1444zS0D8lk2jpa+7VWUfH8g8XlDjKvCHVTG9+tZEm2Pth7KBqKxzwXDdgFoU+TC1dpf3+olAxBCxdk6elqYtc3pZlBmvJx7C9pKudeInDSf5bU4eNRPmLzD3OpYUOI2/cOTOliSMAcoiriNVeCV4osexfI8JQcMWp5a1G2ibzed7QuRFXQj9JdAQXJi8mx72ZU3H+D2HlFEwYQZzUG+ApRIhlpA== X-Forefront-PRVS: 02760F0D1C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(39450400003)(39840400002)(39850400002)(39410400002)(24454002)(42186005)(2950100002)(6666003)(6916009)(2351001)(76176999)(90366009)(50986999)(54356999)(42882006)(31686004)(77096006)(83506001)(47776003)(23676002)(6486002)(189998001)(4001350100001)(7736002)(5660300001)(305945005)(65826007)(53936002)(66066001)(33646002)(64126003)(65956001)(3846002)(6116002)(31696002)(50466002)(230700001)(36756003)(53546009)(6246003)(25786009)(81166006)(229853002)(110136004)(8676002)(38730400002); DIR:OUT; SFP:1101; SCL:1; SRVR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qiaw6HGxhNkmb2jjFiI/pH1Sp1892L39BZeZgv+HOpn3z/tFZbr9mGiDw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2017 16:08:48.1281 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB805 Subject: Re: [dts] TestSuite_shutdown_api.py, test_enable_disablejumbo and MTU questions 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: Thu, 13 Apr 2017 16:08:50 -0000 Ok, partially answering to myself: max-pkt-len is different than MTU, there is no call to rte_eth_dev_set_mtu when calling "port config all max-pkt-len". It is truly setting max_rx_pkt_len of port->dev_conf.rxmode in init_port_config (and then the device is reconfigured with rte_eth_dev_configure when starting the port). This somehow explains, that decreasing by 4 in send_packet might be connected to the fact that NIC may or may not take FCS into frame length. So now I only don't know why HEADER_SIZE['eth'] is 18 (for sure) and why powerville, springville and kawela_4 are treated differently. On 12.04.2017 19:48, Angela Czubak wrote: > Hi, > > > I was reading TestSuite_shutdown_api.py and have some questions about > test_enable_disablejumbo. > > First of all, what are the expectations when it comes to max-pkt-len? > I mean, self.dut.send_expect("port config all max-pkt-len %d" % > jumbo_size, "testpmd> ") (and jumbo_size=2048) calls > rte_eth_dev_set_mtu. How should this function interpret MTU? It > believe it is not clearly stated, however for many drivers MTU is > length of the IP header + its payload. Is there a DPDK convention > saying otherwise? I mean, in send_packet_method padding is calculated > subtracting both IP header size and ether header size. I just want to > know where the border of dropping a packet should lie. > > Secondly, why HEADER_SIZE['eth'] is equal 18? Does it take into > account FCS? Are is there any other reason? And why rx_bytes_exp and > tx_bytes_exp is decreased by at least 4? (send_packet method). > > Last but not least, why for powerville, psringville or kawela_4 > jumbo_size is increased by 4? This happens as well in > test_enable_disablejumbo. > > Thanks in advance for the response. > > > Regards, > > Angela Czubak >