From: Ye Xiaolong <xiaolong.ye@intel.com>
To: Qi Zhang <qi.z.zhang@intel.com>
Cc: qiming.yang@intel.com, simei.su@intel.com, dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] net/ice: ignore error when remove RSS rule
Date: Thu, 14 Nov 2019 11:31:08 +0800 [thread overview]
Message-ID: <20191114033108.GD66623@intel.com> (raw)
In-Reply-To: <20191112142836.10210-1-qi.z.zhang@intel.com>
On 11/12, Qi Zhang wrote:
>Currently, multiple rte_flow RSS rules may mapping to the same
s/mapping/map
>hardware rule if a later rule is just for inputset change or symm
>turn on/off. so after one of the rules be destroyed, we will
>get error ICE_ERR_DOES_NOT_EXIST when destroying any other rules.
In this case, the hardware rule has been destroyed by the first rte_flow RSS
rule removal, right? Do we need a counter or similar to record how
may rte_flow RSS rules are linked to the hardware rule?
>The patch simply fix this by ignore this error. A more sophistic
s/fix/fixes
And I think you mean "sophisticated"?
>fix that remember the sequence and replay properly will be provided
>in future.
>
>Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS")
>
>Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
>---
> drivers/net/ice/ice_hash.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c
>index d88434305..2e9c1bc67 100644
>--- a/drivers/net/ice/ice_hash.c
>+++ b/drivers/net/ice/ice_hash.c
>@@ -536,7 +536,12 @@ ice_hash_destroy(struct ice_adapter *ad,
> ret = ice_rem_rss_cfg(hw, vsi->idx,
> filter_ptr->rss_cfg.hashed_flds,
> filter_ptr->rss_cfg.packet_hdr);
>- if (ret) {
>+ /* Fixme: Ignore the error if a rule does not exist.
>+ * Currently a rule for inputset change or symm turn on/off
>+ * will overwrite an exist rule, while application still
>+ * have 2 rte_flow handles.
>+ **/
>+ if (ret && ret != ICE_ERR_DOES_NOT_EXIST) {
This patch can't be applied cleanly on top of latest dpdk-next-net-intel, please
help do a rebase.
Thanks,
Xiaolong
> rte_flow_error_set(error, EINVAL,
> RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
> "rss flow destroy fail");
>--
>2.13.6
>
next prev parent reply other threads:[~2019-11-14 3:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-12 14:28 Qi Zhang
2019-11-14 3:31 ` Ye Xiaolong [this message]
2019-11-14 4:29 ` 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=20191114033108.GD66623@intel.com \
--to=xiaolong.ye@intel.com \
--cc=dev@dpdk.org \
--cc=qi.z.zhang@intel.com \
--cc=qiming.yang@intel.com \
--cc=simei.su@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).