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 74E9DA04C7; Wed, 16 Sep 2020 07:57:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACD021C1A5; Wed, 16 Sep 2020 07:57:39 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B8B851C1A2 for ; Wed, 16 Sep 2020 07:57:37 +0200 (CEST) IronPort-SDR: Deyc97yP43PIcWytypGlbkfwDLWs7h0+TOu4sBXzs/GS0QwjYpRnTwm3vrQ9QI9AnsJGR1l8Li RSq6yCZUdyWg== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="223591998" X-IronPort-AV: E=Sophos;i="5.76,431,1592895600"; d="scan'208";a="223591998" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2020 22:57:36 -0700 IronPort-SDR: xPOz3kZ8+aYckXmiGzRvMF4KBJ2hsoTYB7nDU91Zjvef/+TeCJFsg9tWBYn0UiXuNuan6ckhyn a8Ds9TAtq0cw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,431,1592895600"; d="scan'208";a="319722680" Received: from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136]) by orsmga002.jf.intel.com with ESMTP; 15 Sep 2020 22:57:34 -0700 From: SteveX Yang To: dev@dpdk.org Cc: wei.zhao1@intel.com, jia.guo@intel.com, qiming.yang@intel.com, qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com, SteveX Yang Date: Wed, 16 Sep 2020 05:52:07 +0000 Message-Id: <20200916055212.25019-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1 0/5] fix default max mtu size when device configured 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" testpmd will initialize default max packet length to 1518 which does't include vlan tag size in ether overheader. Once, send the max mtu length packet with vlan tag, the max packet length will exceed 1518 that will cause packets dropped directly from NIC hw side. configure the correct default max packet size in dev_config ops. SteveX Yang (5): net/e1000: fix max mtu size packets with vlan tag cannot be received by default net/igc: fix max mtu size packets with vlan tag cannot be received by default net/ice: fix max mtu size packets with vlan tag cannot be received by default net/iavf: fix max mtu size packets with vlan tag cannot be received by default net/i40e: fix max mtu size packets with vlan tag cannot be received by default drivers/net/e1000/em_ethdev.c | 11 +++++++++++ drivers/net/i40e/i40e_ethdev.c | 10 ++++++++++ drivers/net/i40e/i40e_ethdev_vf.c | 11 +++++++++++ drivers/net/iavf/iavf_ethdev.c | 13 +++++++++++-- drivers/net/ice/ice_ethdev.c | 14 ++++++++++++-- drivers/net/igc/igc_ethdev.c | 10 ++++++++++ 6 files changed, 65 insertions(+), 4 deletions(-) -- 2.17.1