DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: change RSS rule destroy API
@ 2019-11-06  1:36 Simei Su
  2019-11-11  7:55 ` [dpdk-dev] [PATCH v2] net/ice: fix RSS rule destroy Simei Su
  0 siblings, 1 reply; 4+ messages in thread
From: Simei Su @ 2019-11-06  1:36 UTC (permalink / raw)
  To: qi.z.zhang, xiaolong.ye, qiming.yang; +Cc: dev, simei.su

This patch changes RSS rule destroy API from ice_rem_vsi_rss_cfg()
to ice_rem_rss_cfg(). ice_rem_vsi_rss_cfg() removes RSS configurations
associated with VSI. ice_rem_rss_cfg() remove an existing RSS configuration
with matching hashed fields. To support input set change, we should adopt
ice_rem_rss_cfg(). This patch also fixes logic error otherwise
ice_rem_rss_cfg() is never be carried out.

Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS")

Signed-off-by: Simei Su <simei.su@intel.com>
---
 drivers/net/ice/ice_hash.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c
index 3381b45..ba83a12 100644
--- a/drivers/net/ice/ice_hash.c
+++ b/drivers/net/ice/ice_hash.c
@@ -464,6 +464,7 @@ struct ice_hash_match_type ice_hash_type_list[] = {
 				"No memory for filter_ptr");
 		return -ENOMEM;
 	}
+	filter_ptr->symm = 1;
 
 	if (hash_function == RTE_ETH_HASH_FUNCTION_SIMPLE_XOR) {
 		/* Enable registers for simple_xor hash function. */
@@ -528,7 +529,8 @@ struct ice_hash_match_type ice_hash_type_list[] = {
 			(1 << VSIQF_HASH_CTL_HASH_SCHEME_S);
 		ICE_WRITE_REG(hw, VSIQF_HASH_CTL(vsi->vsi_id), reg);
 	} else {
-		ret = ice_rem_vsi_rss_cfg(hw, vsi->idx);
+		ret = ice_rem_rss_cfg(hw, vsi->idx,
+			filter_ptr->hashed_flds, filter_ptr->packet_hdr);
 		if (ret) {
 			rte_flow_error_set(error, EINVAL,
 					RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH v2] net/ice: fix RSS rule destroy
  2019-11-06  1:36 [dpdk-dev] [PATCH] net/ice: change RSS rule destroy API Simei Su
@ 2019-11-11  7:55 ` Simei Su
  2019-11-12  0:09   ` Zhang, Qi Z
  2019-11-12  1:14   ` Ye Xiaolong
  0 siblings, 2 replies; 4+ messages in thread
From: Simei Su @ 2019-11-11  7:55 UTC (permalink / raw)
  To: qi.z.zhang, beilei.xing, xiaolong.ye; +Cc: dev, simei.su

This patch changes RSS rule destroy interface from ice_rem_vsi_rss_cfg()
to ice_rem_rss_cfg(). To coordinate with input set change, it should
destroy a specific flow rule but not all vsi cfg.

Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS")

Signed-off-by: Simei Su <simei.su@intel.com>
---
 drivers/net/ice/ice_hash.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c
index 8dc3146..57e7d55 100644
--- a/drivers/net/ice/ice_hash.c
+++ b/drivers/net/ice/ice_hash.c
@@ -530,7 +530,8 @@ struct ice_hash_match_type ice_hash_type_list[] = {
 			(1 << VSIQF_HASH_CTL_HASH_SCHEME_S);
 		ICE_WRITE_REG(hw, VSIQF_HASH_CTL(vsi->vsi_id), reg);
 	} else {
-		ret = ice_rem_vsi_rss_cfg(hw, vsi->idx);
+		ret = ice_rem_rss_cfg(hw, vsi->idx,
+			filter_ptr->hashed_flds, filter_ptr->packet_hdr);
 		if (ret) {
 			rte_flow_error_set(error, EINVAL,
 					RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] net/ice: fix RSS rule destroy
  2019-11-11  7:55 ` [dpdk-dev] [PATCH v2] net/ice: fix RSS rule destroy Simei Su
@ 2019-11-12  0:09   ` Zhang, Qi Z
  2019-11-12  1:14   ` Ye Xiaolong
  1 sibling, 0 replies; 4+ messages in thread
From: Zhang, Qi Z @ 2019-11-12  0:09 UTC (permalink / raw)
  To: Su, Simei, Xing, Beilei, Ye, Xiaolong; +Cc: dev



> -----Original Message-----
> From: Su, Simei <simei.su@intel.com>
> Sent: Monday, November 11, 2019 3:55 PM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>; Xing, Beilei <beilei.xing@intel.com>;
> Ye, Xiaolong <xiaolong.ye@intel.com>
> Cc: dev@dpdk.org; Su, Simei <simei.su@intel.com>
> Subject: [PATCH v2] net/ice: fix RSS rule destroy
> 
> This patch changes RSS rule destroy interface from ice_rem_vsi_rss_cfg() to
> ice_rem_rss_cfg(). To coordinate with input set change, it should destroy a
> specific flow rule but not all vsi cfg.
> 
> Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS")
> 
> Signed-off-by: Simei Su <simei.su@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] net/ice: fix RSS rule destroy
  2019-11-11  7:55 ` [dpdk-dev] [PATCH v2] net/ice: fix RSS rule destroy Simei Su
  2019-11-12  0:09   ` Zhang, Qi Z
@ 2019-11-12  1:14   ` Ye Xiaolong
  1 sibling, 0 replies; 4+ messages in thread
From: Ye Xiaolong @ 2019-11-12  1:14 UTC (permalink / raw)
  To: Simei Su; +Cc: qi.z.zhang, beilei.xing, dev

On 11/11, Simei Su wrote:
>This patch changes RSS rule destroy interface from ice_rem_vsi_rss_cfg()
>to ice_rem_rss_cfg(). To coordinate with input set change, it should
>destroy a specific flow rule but not all vsi cfg.
>
>Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS")
>
>Signed-off-by: Simei Su <simei.su@intel.com>
>---
> drivers/net/ice/ice_hash.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c
>index 8dc3146..57e7d55 100644
>--- a/drivers/net/ice/ice_hash.c
>+++ b/drivers/net/ice/ice_hash.c
>@@ -530,7 +530,8 @@ struct ice_hash_match_type ice_hash_type_list[] = {
> 			(1 << VSIQF_HASH_CTL_HASH_SCHEME_S);
> 		ICE_WRITE_REG(hw, VSIQF_HASH_CTL(vsi->vsi_id), reg);
> 	} else {
>-		ret = ice_rem_vsi_rss_cfg(hw, vsi->idx);
>+		ret = ice_rem_rss_cfg(hw, vsi->idx,
>+			filter_ptr->hashed_flds, filter_ptr->packet_hdr);
> 		if (ret) {
> 			rte_flow_error_set(error, EINVAL,
> 					RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
>-- 
>1.8.3.1
>

Applied to dpdk-next-net-intel. Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-12  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06  1:36 [dpdk-dev] [PATCH] net/ice: change RSS rule destroy API Simei Su
2019-11-11  7:55 ` [dpdk-dev] [PATCH v2] net/ice: fix RSS rule destroy Simei Su
2019-11-12  0:09   ` Zhang, Qi Z
2019-11-12  1:14   ` Ye Xiaolong

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).