DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Wang, Xiao W" <xiao.w.wang@intel.com>
To: "Chen, Jing D" <jing.d.chen@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "Lin, Xueqin" <xueqin.lin@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/fm10k: fix RSS hash config
Date: Thu, 21 Jul 2016 09:35:39 +0000	[thread overview]
Message-ID: <B7F2E978279D1D49A3034B7786DACF403DC17A43@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <4341B239C0EFF9468EE453F9E9F4604D044DECE4@shsmsx102.ccr.corp.intel.com>

Hi Mark,

> -----Original Message-----
> From: Chen, Jing D
> Sent: Thursday, July 21, 2016 4:48 PM
> To: Wang, Xiao W <xiao.w.wang@intel.com>; dev@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>
> Subject: RE: [PATCH] net/fm10k: fix RSS hash config
> 
> Hi,
> 
> > diff --git a/drivers/net/fm10k/fm10k_ethdev.c
> > b/drivers/net/fm10k/fm10k_ethdev.c
> > index 144b2de..01f4a72 100644
> > --- a/drivers/net/fm10k/fm10k_ethdev.c
> > +++ b/drivers/net/fm10k/fm10k_ethdev.c
> > @@ -2159,8 +2159,8 @@ fm10k_rss_hash_update(struct rte_eth_dev *dev,
> >
> >  	PMD_INIT_FUNC_TRACE();
> >
> > -	if (rss_conf->rss_key_len < FM10K_RSSRK_SIZE *
> > -		FM10K_RSSRK_ENTRIES_PER_REG)
> > +	if (key && (rss_conf->rss_key_len < FM10K_RSSRK_SIZE *
> > +				FM10K_RSSRK_ENTRIES_PER_REG))
> >  		return -EINVAL;
> >
> >  	if (hf == 0)
> 
> It's also possible that app wants to update rss key and not expect to update hash
> function.
> Is that indicate we shouldn't return error in case hf == 0?
> 

If the app just wants to update RSS key, it needs to read out the RSS config first, then
change only the key field. This is what testpmd does for this operation.

hf == 0 will disable RSS feature, I think we should return error to protect multi-queue.

Best Regards,
Xiao

  reply	other threads:[~2016-07-21  9:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-21  8:24 Xiao Wang
2016-07-21  8:48 ` Chen, Jing D
2016-07-21  9:35   ` Wang, Xiao W [this message]
2016-07-22  8:21     ` Thomas Monjalon
2016-07-22  8:23       ` Chen, Jing D
2016-07-22  8:28         ` Thomas Monjalon
2016-07-22  9:05           ` Chen, Jing D
2016-07-22  9:53 ` Thomas Monjalon

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=B7F2E978279D1D49A3034B7786DACF403DC17A43@SHSMSX101.ccr.corp.intel.com \
    --to=xiao.w.wang@intel.com \
    --cc=dev@dpdk.org \
    --cc=jing.d.chen@intel.com \
    --cc=xueqin.lin@intel.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).