From patchwork Wed Feb 20 15:57:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Stokes X-Patchwork-Id: 50387 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D21872862; Wed, 20 Feb 2019 16:58:19 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 848BE20BD for ; Wed, 20 Feb 2019 16:58:18 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2019 07:58:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,391,1544515200"; d="scan'208";a="123906782" Received: from sivswdev08.ir.intel.com (HELO localhost.localdomain) ([10.237.217.47]) by fmsmga007.fm.intel.com with ESMTP; 20 Feb 2019 07:58:16 -0800 From: Ian Stokes To: dev@dpdk.org Cc: stephen@networkplumber.org, Ian Stokes Date: Wed, 20 Feb 2019 15:57:49 +0000 Message-Id: <1550678275-4959-1-git-send-email-ian.stokes@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [RFC 0/6] ethdev: add min/max MTU to device info 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" Building upon the discussion around [1], this series introduces MTU min and MTU max variables. It also provides updates to PMD implementations for ixgbe, i40e and IGB devices so that these variables are populated for use when retrieving device info. This series was tested with OVS DPDK and functions as expected for the drivers listed below. But a wider selection of PMD drivers would have to adopt this to ensure jumbo frames functionality remains for drivers not modified in the series. There is also ongoing discussion in [2] regarding overhead to be considered with MTU and how this may change from device to device, this series uses existing overhead assumptions. There are also some tasks missing such as updating ethdev version and documentation that can be implemented in non RFC series if the approach is acceptable. [1] http://mails.dpdk.org/archives/dev/2018-September/110959.html [2] http://mails.dpdk.org/archives/dev/2019-February/124457.html Ian Stokes (5): net/i40e: set min and max MTU for i40e devices net/i40e: set min and max MTU for i40e VF devices net/ixgbe: set min and max MTU for ixgbe devices net/ixgbe: set min and max MTU for ixgbe VF devices net/e1000: set min and max MTU for igb devices Stephen Hemminger (1): ethdev: add min/max MTU to device info doc/guides/rel_notes/deprecation.rst | 12 ------------ drivers/net/e1000/e1000_ethdev.h | 6 ++++++ drivers/net/e1000/igb_ethdev.c | 7 +++++-- drivers/net/i40e/i40e_ethdev.c | 2 ++ drivers/net/i40e/i40e_ethdev_vf.c | 2 ++ drivers/net/ixgbe/ixgbe_ethdev.c | 7 +++++-- drivers/net/ixgbe/ixgbe_ethdev.h | 3 +++ lib/librte_ethdev/rte_ethdev.c | 7 +++++++ lib/librte_ethdev/rte_ethdev.h | 2 ++ 9 files changed, 32 insertions(+), 16 deletions(-)