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 1D526A04C0; Mon, 28 Sep 2020 09:07:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D66971C119; Mon, 28 Sep 2020 09:07:07 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id E9B951C0D2 for ; Mon, 28 Sep 2020 09:07:05 +0200 (CEST) IronPort-SDR: d+CwP+DKB3GFyoTVoP5qXBElsXwoxCv8oW8igNSX5ViZBrJyvucgtwiJrwVhOBnZsubBwOAvK1 ARDUYWOVCpPA== X-IronPort-AV: E=McAfee;i="6000,8403,9757"; a="141966816" X-IronPort-AV: E=Sophos;i="5.77,313,1596524400"; d="scan'208";a="141966816" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 00:07:01 -0700 IronPort-SDR: RYdQzdQ3xHG8u9oIELeTLUeu8lUyHraJKxV+E3KfHhj+RYBAosK5vaZWLTE6SNuxW5Kwa2oH5A 9VveSBVAtX5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,313,1596524400"; d="scan'208";a="414895721" Received: from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136]) by fmsmga001.fm.intel.com with ESMTP; 28 Sep 2020 00:06:56 -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, konstantin.ananyev@intel.com, SteveX Yang Date: Mon, 28 Sep 2020 06:55:36 +0000 Message-Id: <20200928065541.7520-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200923040909.73418-1-stevex.yang@intel.com> References: <20200923040909.73418-1-stevex.yang@intel.com> Subject: [dpdk-dev] [PATCH v4 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. v4: * add the adjust condition for max_rx_pkt_len; v3: * change the i40evf relative code; v2: * change the max_rx_pkt_len via mtu_set 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/i40e: 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 drivers/net/e1000/em_ethdev.c | 12 ++++++++++++ drivers/net/i40e/i40e_ethdev.c | 11 +++++++++++ drivers/net/i40e/i40e_ethdev_vf.c | 13 ++++++++++++- drivers/net/iavf/iavf_ethdev.c | 12 ++++++++++++ drivers/net/ice/ice_ethdev.c | 11 +++++++++++ drivers/net/igc/igc_ethdev.c | 13 ++++++++++++- 6 files changed, 70 insertions(+), 2 deletions(-) -- 2.17.1