From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 6C4176A6E; Fri, 17 Mar 2017 10:45:39 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 17 Mar 2017 02:45:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,176,1486454400"; d="scan'208";a="1123943751" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 17 Mar 2017 02:45:38 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 17 Mar 2017 02:45:38 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 17 Mar 2017 02:45:37 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Fri, 17 Mar 2017 17:45:35 +0800 From: "Zhang, Helin" To: Thomas Monjalon CC: "Zhang, Qi Z" , "techboard@dpdk.org" , "dev@dpdk.org" , "Wu, Jingjing" , "Yigit, Ferruh" , "Liang, Cunming" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: enable statistic reset for VF Thread-Index: AQHSnm7qLNr9KRpWrkuo4DM+d+diN6GYXQuQ///Jt4CAAKDGkA== Date: Fri, 17 Mar 2017 09:45:34 +0000 Message-ID: References: <1487874421-11934-1-git-send-email-qi.z.zhang@intel.com> <2062537.uIRGRt8aVp@xps13> <6289634.vIM6mFEBdc@xps13> In-Reply-To: <6289634.vIM6mFEBdc@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: enable statistic reset for VF 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: , X-List-Received-Date: Fri, 17 Mar 2017 09:45:41 -0000 >-----Original Message----- >From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]=20 >Sent: Friday, March 17, 2017 4:03 PM >To: Zhang, Helin >Cc: Zhang, Qi Z ; techboard@dpdk.org; dev@dpdk.org; = Wu, Jingjing ; Yigit, Ferruh >Subject: Re: [dpdk-dev] [PATCH] net/i40e: enable statistic reset for VF >2017-03-17 03:28, Zhang, Helin: >> From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] >> > 2017-02-23 13:27, Qi Zhang: >> > > static void >> > > +i40evf_dev_stats_reset(struct rte_eth_dev *dev) { >> > > + struct i40e_vf *vf =3D I40EVF_DEV_PRIVATE_TO_VF(dev->data- >> > >dev_private); >> > > + /* only DPDK PF support this */ >> > > + if (vf->version_major =3D=3D I40E_DPDK_VERSION_MAJOR) { >> > > + if (i40evf_reset_statistics(dev)) >> > > + PMD_DRV_LOG(ERR, "Reset statistics failed"); >> > > + } >> > > +} >> >=20 >> > One more SR-IOV feature not supported with a Linux PF. >> > The basic stats feature must be marked as partially supported in >> > doc/guides/nics/features/i40e_vf.ini >> > See also this email: >> > http://dpdk.org/ml/archives/dev/2017-March/060063.html >> >=20 >> > I wonder whether we should allow such divergence between PF=20 >> > implementations. Intel committed to avoid such fragmentation and=20 >> > keep the SR-IOV messaging standard but it does not happen. >> > It is said that we must allow fast innovation in DPDK space. >> > I agree but we should also target a good usability of the VF=20 >> > drivers, allowing to replace the PF implementations as needed. >>=20 >> Hi Thomas >>=20 >> I think I need to clarify a little bit here. >> I think we will try our best, but I don't think we can commit. As they=20 >> are on totally different community, and of cause code repositories. >>=20 >> >=20 >> > Here is my suggestion: let's accept a VF feature only if the PF=20 >> > support is submitted to both dpdk.org and kernel.org mailing lists. >> > I ask to add this topic to the next techboard meeting. >>=20 >> Sorry, technically I disagree with this suggestion, as I don't understan= d why! >> I was told DPDK is not Linux, and Linux is not DPDK. Why we want to=20 >> add this dependency on Linux PF host driver? And why just on PF/VF drive= r feature only? >> I think if we can have any good innovative idea on DPDK first, why not=20 >> just have it on DPDK? Then Linux or even other OS/community/Company=20 >> can learn from DPDK and develop their own. > > It is really a general problem. > Here you are adding a feature in a VF driver. But it does not work with s= ome PF drivers.We have the same problem when adding a feature which does no= t work on BSD or on a CPU architecture. > Generally speaking, we have a usability issue when a feature works only w= ith a given environment. > And it is worst in the SR-IOV case because a VM can migrate from an hyper= visor (with a given PF) to another (and different) one. Yes, I understood that's the reality and the issue. But I don't think we ca= n address it with your suggestion. Linux is just one of the OS, as you said, FreeBSD, Windows, VMWare, ... I'd suggest to start another discussion on the tech board to solve that pro= blem, but not limit adding new features. They are different topics and things, based on my unde= rstanding. Thank you very much for your answers and have a nice day! Regards, Helin