From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id D6312A0096 for ; Mon, 6 May 2019 19:39:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EEDD928FD; Mon, 6 May 2019 19:39:18 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 39B611F28 for ; Mon, 6 May 2019 19:39:17 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 May 2019 10:39:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,438,1549958400"; d="scan'208";a="344078556" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga005.fm.intel.com with ESMTP; 06 May 2019 10:39:15 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 6 May 2019 10:39:16 -0700 Received: from fmsmsx120.amr.corp.intel.com ([169.254.15.34]) by fmsmsx116.amr.corp.intel.com ([169.254.2.190]) with mapi id 14.03.0415.000; Mon, 6 May 2019 10:39:15 -0700 From: "Stillwell Jr, Paul M" To: "Zhang, Qi Z" , "Lu, Wenzhuo" , "Yang, Qiming" CC: "Stokes, Ian" , "Yigit, Ferruh" , "dev@dpdk.org" , "Zhang, Qi Z" Thread-Topic: [dpdk-dev] [PATCH] net/ice: set min and max MTU Thread-Index: AQHVAl3khQMC3Ex8YEWr3mOnzvI7a6ZeYF8g Date: Mon, 6 May 2019 17:39:15 +0000 Message-ID: References: <20190504094545.6039-1-qi.z.zhang@intel.com> In-Reply-To: <20190504094545.6039-1-qi.z.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWEwOGJkMDEtMmY2Yy00NWIxLTgzNTEtMjZhZWNmOGRiZjdlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaXVcLzE3TlAxQ09RWG9PNnoyRWRHNEdycGJHWUQ0NVNrQkorM0ZZOEErUE9uQXQyenhnbjQwVUVBaHhrcUVNbmIifQ== dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.1.200.108] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/ice: set min and max MTU 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" Message-ID: <20190506173915.X9N1Q5039H51w7MxbMTVqWpW1WszpPAxU7xOJS5j1Z4@z> > -----Original Message----- > From: dev On Behalf Of Qi Zhang > Sent: Saturday, May 4, 2019 2:46 AM > To: Lu, Wenzhuo ; Yang, Qiming > > Cc: Stokes, Ian ; Yigit, Ferruh ; > dev@dpdk.org; Zhang, Qi Z > Subject: [dpdk-dev] [PATCH] net/ice: set min and max MTU >=20 > This commit sets the min and max supported MTU values for ice devices via= the > i40e_dev_info_get() function. Min MTU supported is set to ETHER_MIN_MTU Should this be ice_dev_info_get()? > and max mtu is calculated as the max packet length supported minus the > transport overhead. >=20 > Signed-off-by: Qi Zhang > --- > drivers/net/ice/ice_ethdev.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c = index > 1f06a2c80..9f5f919f4 100644 > --- a/drivers/net/ice/ice_ethdev.c > +++ b/drivers/net/ice/ice_ethdev.c > @@ -1994,6 +1994,8 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct > rte_eth_dev_info *dev_info) > dev_info->max_tx_queues =3D vsi->nb_qps; > dev_info->max_mac_addrs =3D vsi->max_macaddrs; > dev_info->max_vfs =3D pci_dev->max_vfs; > + dev_info->max_mtu =3D dev_info->max_rx_pktlen - ICE_ETH_OVERHEAD; > + dev_info->min_mtu =3D ETHER_MIN_MTU; >=20 > dev_info->rx_offload_capa =3D > DEV_RX_OFFLOAD_VLAN_STRIP | > -- > 2.13.6