From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 869B1A046B for ; Thu, 27 Jun 2019 08:00:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CA0B7F64; Thu, 27 Jun 2019 08:00:23 +0200 (CEST) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id 9346BDED for ; Thu, 27 Jun 2019 08:00:22 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 813B6A0613; Thu, 27 Jun 2019 08:00:22 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 27 Jun 2019 06:00:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 18.02 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: lavaraj@gmail.com X-Bugzilla-Status: CONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 297] max_rx_pkt_len issues with i40e dpdk SRIOV driver net_i40e_vf. 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D297 Bug ID: 297 Summary: max_rx_pkt_len issues with i40e dpdk SRIOV driver net_i40e_vf. Product: DPDK Version: 18.02 Hardware: x86 OS: All Status: CONFIRMED Severity: major Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: lavaraj@gmail.com Target Milestone: --- Created attachment 41 --> https://bugs.dpdk.org/attachment.cgi?id=3D41&action=3Dedit patch file for the workaround solution When deployed an SRIOV setup with Intel 40GB NIC, we noticed the traffic wi= th default mtu (1500) is not working. The maximum MSS which was worked is 1456 ( instead of the default value 146= 0). On debugging, it is found that the driver is actually setting the dev_data->dev_conf.rxmode.max_rx_pkt_len to 1518(ETHER_MAX_LEN) which is wr= ong. The max len is not including the vlan tag len( also not including QinQ). The ETH Overhead is defined as below #define I40E_ETH_OVERHEAD \ (ETHER_HDR_LEN + ETHER_CRC_LEN + I40E_VLAN_TAG_SIZE * 2)=20=20=20=20 which is equal to 26 So for supporting an MTU size of 1500, the max_rx_pkt_len should be 1526 instead of 1518. The i40evf_dev_mtu_set API also wrongly checking the framesize against ETHER_MAX_LEN(1518) to set the jumbo_frame mode. The attached patch resolved the issue for our testing.=20 Please verify and fix the issue. Thanks and Regards, Lava --=20 You are receiving this mail because: You are the assignee for the bug.=