DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhang, Helin" <helin.zhang@intel.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>
Cc: "Zhang, Qi Z" <qi.z.zhang@intel.com>,
	"techboard@dpdk.org" <techboard@dpdk.org>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"Wu, Jingjing" <jingjing.wu@intel.com>,
	"Yigit, Ferruh" <ferruh.yigit@intel.com>,
	"Liang, Cunming" <cunming.liang@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: enable statistic reset for VF
Date: Fri, 17 Mar 2017 09:45:34 +0000	[thread overview]
Message-ID: <F35DEAC7BCE34641BA9FAC6BCA4A12E71AA066B0@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <6289634.vIM6mFEBdc@xps13>



>-----Original Message-----
>From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] 
>Sent: Friday, March 17, 2017 4:03 PM
>To: Zhang, Helin <helin.zhang@intel.com>
>Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; techboard@dpdk.org; dev@dpdk.org; Wu, Jingjing <jingjing.wu@intel.com>; Yigit, Ferruh <ferruh.yigit@intel.com>
>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 = I40EVF_DEV_PRIVATE_TO_VF(dev->data-
>> > >dev_private);
>> > > +	/* only DPDK PF support this */
>> > > +	if (vf->version_major == 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.
>> 
>> > 
>> > Here is my suggestion: let's accept a VF feature only if the PF 
>> > support is submitted to both dpdk.org and kernel.org mailing 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'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.

Thank you very much for your answers and have a nice day!

Regards,
Helin

  reply	other threads:[~2017-03-17  9:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-23 18:27 Qi Zhang
2017-03-16 16:03 ` Thomas Monjalon
2017-03-17  2:06   ` Zhang, Qi Z
2017-03-17  3:28   ` Zhang, Helin
2017-03-17  8:02     ` Thomas Monjalon
2017-03-17  9:45       ` Zhang, Helin [this message]
2017-03-17 10:15         ` Thomas Monjalon
2017-03-17 20:14           ` Vincent Jardin
2017-03-17 23:03             ` Thomas Monjalon
2017-03-18 10:34               ` Vincent Jardin
2017-03-20  2:47           ` Zhang, Helin
2017-03-20  9:14             ` Thomas Monjalon
2017-03-22  9:48               ` Zhang, Helin
2017-04-01  0:50 ` Zhang, Helin
     [not found]   ` <039ED4275CED7440929022BC67E706115307CC65@SHSMSX103.ccr.corp.intel.com>
2017-04-12 11:19     ` Zhang, Qi Z

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F35DEAC7BCE34641BA9FAC6BCA4A12E71AA066B0@SHSMSX103.ccr.corp.intel.com \
    --to=helin.zhang@intel.com \
    --cc=cunming.liang@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=jingjing.wu@intel.com \
    --cc=qi.z.zhang@intel.com \
    --cc=techboard@dpdk.org \
    --cc=thomas.monjalon@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).