DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration
@ 2020-10-20  8:50 Junyu Jiang
  2020-10-20 10:25 ` Zhang, Qi Z
  2020-10-23  8:04 ` Xie, WeiX
  0 siblings, 2 replies; 3+ messages in thread
From: Junyu Jiang @ 2020-10-20  8:50 UTC (permalink / raw)
  To: dev; +Cc: Qiming Yang, Simei Su, Junyu Jiang, stable

This patch configured RSS for sctp with IP address
and port as input set.

Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config")
Cc: stable@dpdk.org

Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 0056da78a..63138d3b9 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2987,7 +2987,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
 
 	/* Configure RSS for sctp4 with src/dst addr and port as input set */
 	if (rss_hf & ETH_RSS_NONFRAG_IPV4_SCTP) {
-		ret = ice_add_rss_cfg_wrap(pf, vsi->idx, ICE_FLOW_HASH_IPV4,
+		ret = ice_add_rss_cfg_wrap(pf, vsi->idx, ICE_HASH_SCTP_IPV4,
 				      ICE_FLOW_SEG_HDR_SCTP |
 				      ICE_FLOW_SEG_HDR_IPV4 |
 				      ICE_FLOW_SEG_HDR_IPV_OTHER, 0);
@@ -2998,7 +2998,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
 
 	/* Configure RSS for sctp6 with src/dst addr and port as input set */
 	if (rss_hf & ETH_RSS_NONFRAG_IPV6_SCTP) {
-		ret = ice_add_rss_cfg_wrap(pf, vsi->idx, ICE_FLOW_HASH_IPV6,
+		ret = ice_add_rss_cfg_wrap(pf, vsi->idx, ICE_HASH_SCTP_IPV6,
 				      ICE_FLOW_SEG_HDR_SCTP |
 				      ICE_FLOW_SEG_HDR_IPV6 |
 				      ICE_FLOW_SEG_HDR_IPV_OTHER, 0);
-- 
2.17.1


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

* Re: [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration
  2020-10-20  8:50 [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration Junyu Jiang
@ 2020-10-20 10:25 ` Zhang, Qi Z
  2020-10-23  8:04 ` Xie, WeiX
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, Qi Z @ 2020-10-20 10:25 UTC (permalink / raw)
  To: Jiang, JunyuX, dev; +Cc: Yang, Qiming, Su, Simei, Jiang, JunyuX, stable



> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Junyu Jiang
> Sent: Tuesday, October 20, 2020 4:51 PM
> To: dev@dpdk.org
> Cc: Yang, Qiming <qiming.yang@intel.com>; Su, Simei <simei.su@intel.com>;
> Jiang, JunyuX <junyux.jiang@intel.com>; stable@dpdk.org
> Subject: [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration
> 
> This patch configured RSS for sctp with IP address and port as input set.
> 
> Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>

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

Applied to dpdk-next-net-intel.

Thanks
Qi

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

* Re: [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration
  2020-10-20  8:50 [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration Junyu Jiang
  2020-10-20 10:25 ` Zhang, Qi Z
@ 2020-10-23  8:04 ` Xie, WeiX
  1 sibling, 0 replies; 3+ messages in thread
From: Xie, WeiX @ 2020-10-23  8:04 UTC (permalink / raw)
  To: Jiang, JunyuX, dev; +Cc: Yang, Qiming, Su, Simei, Jiang, JunyuX, stable

Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Junyu Jiang
> Sent: Tuesday, October 20, 2020 4:51 PM
> To: dev@dpdk.org
> Cc: Yang, Qiming <qiming.yang@intel.com>; Su, Simei <simei.su@intel.com>;
> Jiang, JunyuX <junyux.jiang@intel.com>; stable@dpdk.org
> Subject: [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration
> 
> This patch configured RSS for sctp with IP address and port as input set.
> 
> Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>
> ---
>  drivers/net/ice/ice_ethdev.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
> index 0056da78a..63138d3b9 100644
> --- a/drivers/net/ice/ice_ethdev.c
> +++ b/drivers/net/ice/ice_ethdev.c
> @@ -2987,7 +2987,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
> 
>  	/* Configure RSS for sctp4 with src/dst addr and port as input set */
>  	if (rss_hf & ETH_RSS_NONFRAG_IPV4_SCTP) {
> -		ret = ice_add_rss_cfg_wrap(pf, vsi->idx,
> ICE_FLOW_HASH_IPV4,
> +		ret = ice_add_rss_cfg_wrap(pf, vsi->idx,
> ICE_HASH_SCTP_IPV4,
>  				      ICE_FLOW_SEG_HDR_SCTP |
>  				      ICE_FLOW_SEG_HDR_IPV4 |
>  				      ICE_FLOW_SEG_HDR_IPV_OTHER, 0); @@
> -2998,7 +2998,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
> 
>  	/* Configure RSS for sctp6 with src/dst addr and port as input set */
>  	if (rss_hf & ETH_RSS_NONFRAG_IPV6_SCTP) {
> -		ret = ice_add_rss_cfg_wrap(pf, vsi->idx,
> ICE_FLOW_HASH_IPV6,
> +		ret = ice_add_rss_cfg_wrap(pf, vsi->idx,
> ICE_HASH_SCTP_IPV6,
>  				      ICE_FLOW_SEG_HDR_SCTP |
>  				      ICE_FLOW_SEG_HDR_IPV6 |
>  				      ICE_FLOW_SEG_HDR_IPV_OTHER, 0);
> --
> 2.17.1


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

end of thread, other threads:[~2020-10-23  8:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20  8:50 [dpdk-dev] [PATCH] net/ice: fix SCTP RSS configuration Junyu Jiang
2020-10-20 10:25 ` Zhang, Qi Z
2020-10-23  8:04 ` Xie, WeiX

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