From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 373CFCF68; Wed, 22 Mar 2017 10:48:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490176134; x=1521712134; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=fQnf8PPx9UbPiVZxW4IkLdZxqGBAwbPohLjB/YWVAvw=; b=ocs9DmiCV7dDn7XJoWcB2fiGOhjcI5HsaJB0t0vCjNJSsArq2vgsiRly WyGRepHQpNBnPZbcXdHpwQZuCLsEtA==; Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2017 02:48:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,204,1486454400"; d="scan'208";a="79334576" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 22 Mar 2017 02:48:53 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Mar 2017 02:48:52 -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; Wed, 22 Mar 2017 17:48:50 +0800 From: "Zhang, Helin" To: Thomas Monjalon CC: "Zhang, Qi Z" , "techboard@dpdk.org" , "dev@dpdk.org" , "Wu, Jingjing" , "Yigit, Ferruh" , "Liang, Cunming" , "Fastabend, John R" Thread-Topic: [dpdk-dev] [PATCH] net/i40e: enable statistic reset for VF Thread-Index: AQHSnm7qLNr9KRpWrkuo4DM+d+diN6GYXQuQ///Jt4CAAKDGkP//hC+AgAS0ZgD///GegAB177qA Date: Wed, 22 Mar 2017 09:48:49 +0000 Message-ID: References: <1487874421-11934-1-git-send-email-qi.z.zhang@intel.com> <2542450.7LGoSD6xkf@xps13> <2488979.Uu9ExHJGBS@xps13> In-Reply-To: <2488979.Uu9ExHJGBS@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: Wed, 22 Mar 2017 09:48:55 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Monday, March 20, 2017 5:14 PM > To: Zhang, Helin > Cc: Zhang, Qi Z; techboard@dpdk.org; dev@dpdk.org; Wu, Jingjing; Yigit, > Ferruh; Liang, Cunming; Fastabend, John R > Subject: Re: [dpdk-dev] [PATCH] net/i40e: enable statistic reset for VF >=20 > 2017-03-20 02:47, Zhang, Helin: > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > > 2017-03-17 09:45, Zhang, Helin: > > > >From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > > > >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"); > > > > >> > > + } > > > > >> > > +} > > > > >> > > > > > >> > 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 > > > > >> > > > > > >> > I wonder whether we should allow such divergence between PF > > > > >> > implementations. Intel committed to avoid such fragmentation > > > > >> > and 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 > > > > >> > drivers, allowing to replace the PF implementations as needed. > > > > >> > > > > >> Hi Thomas > > > > >> > > > > >> 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 are on totally different community, and of cause code > repositories. > > > > > > What prevent you from submitting your code to the kernel community? > > > Note that your statement does not respect the agreed policy: > > > http://dpdk.org/ml/archives/dev/2017-January/055224.html > > > http://dpdk.org/doc/guides/contributing/design.html#pf-and-vf- > > > considerations > > > > There might be some confusing or misunderstanding. > > I didn't say we will not submit any patches to kernel community. > > We will try to send a few first, and then see what will happen. If it > > will be rejected, or take too much time to be accepted. Then we may giv= e up. > > If it can be accepted by kernel community, then we may continue. > > That's the reality, we will try, but we cannot make any commitment on > > having anything in kernel side. >=20 > Of course you do not know if it will be accepted in Linux. > The agreed policy was just to try: > " > PF functionality should only be added to DPDK for testing and prototyping > purposes while the kernel work is ongoing. > " OK. I understood. I am sure we will try soon with few first. So we are alig= ned. Thanks! >=20 > > > > >> > Here is my suggestion: let's accept a VF feature only if the > > > > >> > PF support is submitted to both dpdk.org and kernel.org mailin= g lists. > > > > >> > I ask to add this topic to the next techboard meeting. > > > > >> > > > > >> Sorry, technically I disagree with this suggestion, as I don't > > > > >> understand > > > why! > > > > >> I was told DPDK is not Linux, and Linux is not DPDK. Why we > > > > >> want to add this dependency on Linux PF host driver? And why > > > > >> just on PF/VF > > > driver feature only? > > > > >> I think if we can have any good innovative idea on DPDK first, > > > > >> why not just have it on DPDK? Then Linux or even other > > > > >> OS/community/Company 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 some PF drivers.We have the same problem when adding a > > > > > feature which does not work on BSD or on a CPU architecture. > > > > > Generally speaking, we have a usability issue when a feature > > > > > works only with a given environment. > > > > > And it is worst in the SR-IOV case because a VM can migrate from > > > > > an hypervisor (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 can > > > address it with your suggestion. > > > > Linux is just one of the OS, as you said, FreeBSD, Windows, VMWare,= ... > > > > > > I am talking about migration from a KVM to another one. > > > So BSD, Windows and VMware are irrelevant. > > > > But as a guest user, he may want to his application running well in > > all the VMs without modifying anything, no matter in KVM, Windows, or > VMWare. > > Do you want to address that issue too? >=20 > That's a different question. DPDK PF is a replacement for Linux PF. > When considering another hypervisor (Windows or VMware), there can be > many things different. I think trying to have the same behaviour, with al= l these > hypervisors, is a nice goal but a smaller priority than DPDK/Linux > standardization. So you are suggesting to have the VF drivers with the same behaviours between kernel host driver and DPDK host driver, right? Nothing about kernel side live migration, nothing about link bonding, right= ? Then I have thoughts as below. - Frist, applications with using that VF should work well no matter with us= ing kernel host or DPDK host driver, as long as the VF application can handle the return value gracefully. For example, if kernel host does not support= a VF request, while DPDK host supports, the kernel driver will return with = an error code to indicate that is not supported, and the VF application shou= ld handle that well and smartly. I don't think it will block anything. Any d= ifferent view on that? - Second, will there really have any desire to move from DPDK host to kerne= l host? I don't see there is any desire to do that, and we can add restriction th= ere. - Third, even two KVMs with different version of kernel driver, it may not = work, as different version of kernel drivers have different features and capabi= lities. So we cannot assume it works the same way between two KVMs with different kernel driver versions. >=20 > > > > I'd suggest to start another discussion on the tech board to solve > > > > that problem, but not limit adding new features. They are > > > > different topics > > > and things, based on my understanding. > > > > > > Helin, you just want to add your new code and hide issues. > > > You don't even bother to document the limitations or the partial > > > support as I have suggested earlier. > > > As a maintainer, I have to check the quality and the usability. > > > I can tell you that I stack the promises "I will fix it later" and > > > we are still waiting for a lot of them. > > > That's why, even if you think it is not related, we need sometimes > > > to block things until they are properly done and completed. > > > > There is no doubt, I appreciate your great job! > > As I said before, we will try to submit a few first, and see what will = happen. > > For your doc requests, I think somebody else already replied you. > > > > Sorry, I don't know that you are thinking about KVM migration. I was > > informed by Vincent that all DPDK PF host features should be > > consistent with kernel host driver, though I am not sure if I missed an= ything. > > OK. Let's focus on the issue. What's the problem statement? What's the > > solution well discussed and accepted widely by the community? > > BTW, do we need to think about that a bit more? For example, do we > > need to think about the similar policy on rte_flow API, ACL and possibl= y other > features? >=20 > Yes homogeneity should be general, so we must keep it in mind for future > works and enhancements of every DPDK areas. > We could write some general guidelines that the techboard would have to > approve. Yes, a lot of issues or limitations even not just on DPDK needs to be addre= ssed. That's the great job the community maintainers and developers are working o= n. Yes, doc update is always we need to do better. Thank you very much! /Helin