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 56B6FA04DD; Thu, 22 Oct 2020 10:50:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8EE086CAC; Thu, 22 Oct 2020 10:50:25 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 9032E6CAB for ; Thu, 22 Oct 2020 10:50:24 +0200 (CEST) IronPort-SDR: zodR/Kod9MospbYOvRoeMq6ymXsNDSuq64qIHD3P3kzWtzP/ZkcTE4yn0pbZ/gUkmqbZevanxB 2gjlr+jiV9TA== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="229124186" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="229124186" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 01:50:22 -0700 IronPort-SDR: ukQt4i9ExWIsvOUZj10QdpOMiY4kjNAEMMOmkNiumqhF6B1OE95fe1p/WGIQcBi7o+YarE+2iU SVPw5h0kZ/jA== X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="466608992" Received: from intel-npg-odc-srv01.cd.intel.com ([10.240.178.136]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 01:50:19 -0700 From: SteveX Yang To: dev@dpdk.org Cc: ferruh.yigit@intel.com, konstantin.ananyev@intel.com, beilei.xing@intel.com, wenzhuo.lu@intel.com, bernard.iremonger@intel.com, thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, qiming.yang@intel.com, qi.z.zhang@intel.com, SteveX Yang Date: Thu, 22 Oct 2020 08:48:49 +0000 Message-Id: <20201022084851.35134-1-stevex.yang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201014091945.1934-1-stevex.yang@intel.com> References: <20201014091945.1934-1-stevex.yang@intel.com> Subject: [dpdk-dev] [PATCH v6 0/2] 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" For testpmd, increase the max rx packet length when size of mtu and overhead exceeds max_rx_pkt_len. For generic ethdev, readuce the mtu size to ensure the rx frame size is larger than size of mtu and overhead. v6: * change the max_rx_pkt_len in the init_config of testpmd; * change the mtu value in the rte_ethdev; v5: * update comments and commit messages; 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 (2): app/testpmd: fix max rx packet length for VLAN packets librte_ethdev: fix MTU size exceeds max rx packet length app/test-pmd/testpmd.c | 52 +++++++++++++++++++++++++--------- lib/librte_ethdev/rte_ethdev.c | 14 +++++++++ 2 files changed, 52 insertions(+), 14 deletions(-) -- 2.17.1