Skip to contentSkip to conversation

net/ice: remove RSS for SCTP in PPPoE

PATCH Superseded Qi Zhang 3 participants 4 messages Jul 25, 2020 – Jul 27, 2020 Network drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/ice: remove RSS for SCTP in PPPoE

We don't support SCTP in PPPoE RSS, remove it.

Fixes d117de460035 ("net/ice: fix GTPU/PPPoE packets with no hash value")
Fixes 0b952714e9c1 ("net/ice: refactor PF hash flow")
---
 drivers/net/ice/ice_ethdev.c | 12 ------------
 drivers/net/ice/ice_hash.c   | 14 --------------
 2 files changed, 26 deletions(-)
drivers/net/ice/ice_ethdev.c +0 -12
index a4a0390f8..c4c0e638f 100644
@@ -2666,12 +2666,6 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
 		if (ret)
 			PMD_DRV_LOG(ERR, "%s GTPU_EH_IPV4_SCTP rss flow fail %d",
 				    __func__, ret);
-
-		ret = ice_add_rss_cfg(hw, vsi->idx, ICE_HASH_SCTP_IPV4,
-				ICE_FLOW_SEG_HDR_PPPOE, 0);
-		if (ret)
-			PMD_DRV_LOG(ERR, "%s PPPoE_IPV4_SCTP rss flow fail %d",
-				    __func__, ret);
 	}
 
 	if (rss_hf & ETH_RSS_NONFRAG_IPV6_SCTP) {
@@ -2686,12 +2680,6 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
 		if (ret)
 			PMD_DRV_LOG(ERR, "%s GTPU_EH_IPV6_SCTP rss flow fail %d",
 				    __func__, ret);
-
-		ret = ice_add_rss_cfg(hw, vsi->idx, ICE_HASH_SCTP_IPV6,
-				ICE_FLOW_SEG_HDR_PPPOE, 0);
-		if (ret)
-			PMD_DRV_LOG(ERR, "%s PPPoE_IPV6_SCTP rss flow fail %d",
-				    __func__, ret);
 	}
 }
 
drivers/net/ice/ice_hash.c +0 -14
index e535e4b95..4243f7ce9 100644
@@ -204,10 +204,6 @@ struct rss_type_match_hdr hint_eth_pppoes_ipv4_tcp = {
 	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV4 |
 	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_TCP,
 	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV4_TCP};
-struct rss_type_match_hdr hint_eth_pppoes_ipv4_sctp = {
-	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV4 |
-	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_SCTP,
-	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV4_SCTP};
 struct rss_type_match_hdr hint_eth_ipv4_esp = {
 	ICE_FLOW_SEG_HDR_IPV4 | ICE_FLOW_SEG_HDR_IPV_OTHER |
 	ICE_FLOW_SEG_HDR_ESP,
@@ -313,10 +309,6 @@ struct rss_type_match_hdr hint_eth_pppoes_ipv6_tcp = {
 	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV6 |
 	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_TCP,
 	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV6_TCP};
-struct rss_type_match_hdr hint_eth_pppoes_ipv6_sctp = {
-	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV6 |
-	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_SCTP,
-	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV6_SCTP};
 struct rss_type_match_hdr hint_eth_pppoes = {
 	ICE_FLOW_SEG_HDR_PPPOE,
 	ETH_RSS_ETH | ETH_RSS_PPPOE};
@@ -398,10 +390,6 @@ static struct ice_pattern_match_item ice_hash_pattern_list_comms[] = {
 		&hint_eth_pppoes_ipv4},
 	{pattern_eth_pppoes_ipv4_udp,	    ICE_INSET_NONE,
 		&hint_eth_pppoes_ipv4_udp},
-	{pattern_eth_pppoes_ipv4_tcp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv4_tcp},
-	{pattern_eth_pppoes_ipv4_sctp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv4_sctp},
 	{pattern_eth_ipv4_esp,		    ICE_INSET_NONE,
 		&hint_eth_ipv4_esp},
 	{pattern_eth_ipv4_udp_esp,	    ICE_INSET_NONE,
@@ -452,8 +440,6 @@ static struct ice_pattern_match_item ice_hash_pattern_list_comms[] = {
 		&hint_eth_pppoes_ipv6_udp},
 	{pattern_eth_pppoes_ipv6_tcp,	    ICE_INSET_NONE,
 		&hint_eth_pppoes_ipv6_tcp},
-	{pattern_eth_pppoes_ipv6_sctp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv6_sctp},
 	{pattern_eth_pppoes,		    ICE_INSET_NONE,
 		&hint_eth_pppoes},
 };
Signature · 1 line
2.13.6
Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Qi Zhang
Sent: Saturday, July 25, 2020 8:59 PM
To: Yang, Qiming <[email protected]>
Cc: Su, Simei <[email protected]>; Guo, Jia <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [dpdk-dev] [PATCH] net/ice: remove RSS for SCTP in PPPoE

We don't support SCTP in PPPoE RSS, remove it.

Quoted 9 lines
Fixes d117de460035 ("net/ice: fix GTPU/PPPoE packets with no hash value")
Fixes 0b952714e9c1 ("net/ice: refactor PF hash flow")
---
 drivers/net/ice/ice_ethdev.c | 12 ------------
 drivers/net/ice/ice_hash.c   | 14 --------------
 2 files changed, 26 deletions(-)
Quoted 2 lines

--
2.13.6

#2 lore raw
In reply to Qi Zhang

hi, qi

Quoted 68 lines · Qi Zhang

We don't support SCTP in PPPoE RSS, remove it.

Fixes d117de460035 ("net/ice: fix GTPU/PPPoE packets with no hash value")
Fixes 0b952714e9c1 ("net/ice: refactor PF hash flow")
---
  drivers/net/ice/ice_ethdev.c | 12 ------------
  drivers/net/ice/ice_hash.c   | 14 --------------
  2 files changed, 26 deletions(-)
drivers/net/ice/ice_ethdev.c +0 -12
index a4a0390f8..c4c0e638f 100644
@@ -2666,12 +2666,6 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
  		if (ret)
  			PMD_DRV_LOG(ERR, "%s GTPU_EH_IPV4_SCTP rss flow fail %d",
  				    __func__, ret);
-
-		ret = ice_add_rss_cfg(hw, vsi->idx, ICE_HASH_SCTP_IPV4,
-				ICE_FLOW_SEG_HDR_PPPOE, 0);
-		if (ret)
-			PMD_DRV_LOG(ERR, "%s PPPoE_IPV4_SCTP rss flow fail %d",
-				    __func__, ret);
  	}
 
  	if (rss_hf & ETH_RSS_NONFRAG_IPV6_SCTP) {
@@ -2686,12 +2680,6 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
  		if (ret)
  			PMD_DRV_LOG(ERR, "%s GTPU_EH_IPV6_SCTP rss flow fail %d",
  				    __func__, ret);
-
-		ret = ice_add_rss_cfg(hw, vsi->idx, ICE_HASH_SCTP_IPV6,
-				ICE_FLOW_SEG_HDR_PPPOE, 0);
-		if (ret)
-			PMD_DRV_LOG(ERR, "%s PPPoE_IPV6_SCTP rss flow fail %d",
-				    __func__, ret);
  	}
  }
 
drivers/net/ice/ice_hash.c +0 -8
index e535e4b95..4243f7ce9 100644
@@ -204,10 +204,6 @@ struct rss_type_match_hdr hint_eth_pppoes_ipv4_tcp = {
  	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV4 |
  	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_TCP,
  	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV4_TCP};
-struct rss_type_match_hdr hint_eth_pppoes_ipv4_sctp = {
-	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV4 |
-	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_SCTP,
-	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV4_SCTP};
  struct rss_type_match_hdr hint_eth_ipv4_esp = {
  	ICE_FLOW_SEG_HDR_IPV4 | ICE_FLOW_SEG_HDR_IPV_OTHER |
  	ICE_FLOW_SEG_HDR_ESP,
@@ -313,10 +309,6 @@ struct rss_type_match_hdr hint_eth_pppoes_ipv6_tcp = {
  	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV6 |
  	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_TCP,
  	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV6_TCP};
-struct rss_type_match_hdr hint_eth_pppoes_ipv6_sctp = {
-	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV6 |
-	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_SCTP,
-	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV6_SCTP};
  struct rss_type_match_hdr hint_eth_pppoes = {
  	ICE_FLOW_SEG_HDR_PPPOE,
  	ETH_RSS_ETH | ETH_RSS_PPPOE};

drivers/net/ice/ice_hash.c static struct ice_pattern_match_item ice_hash_pattern_list_comms[] = { · line 402

Quoted 5 lines
drivers/net/ice/ice_hash.c +0 -2
@@ -398,10 +390,6 @@ static struct ice_pattern_match_item ice_hash_pattern_list_comms[] = {
  		&hint_eth_pppoes_ipv4},
  	{pattern_eth_pppoes_ipv4_udp,	    ICE_INSET_NONE,
  		&hint_eth_pppoes_ipv4_udp},
-	{pattern_eth_pppoes_ipv4_tcp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv4_tcp},

The tcp should not be removed. Need a new version please.

Quoted 14 lines
drivers/net/ice/ice_hash.c +0 -4
-	{pattern_eth_pppoes_ipv4_sctp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv4_sctp},
  	{pattern_eth_ipv4_esp,		    ICE_INSET_NONE,
  		&hint_eth_ipv4_esp},
  	{pattern_eth_ipv4_udp_esp,	    ICE_INSET_NONE,
@@ -452,8 +440,6 @@ static struct ice_pattern_match_item ice_hash_pattern_list_comms[] = {
  		&hint_eth_pppoes_ipv6_udp},
  	{pattern_eth_pppoes_ipv6_tcp,	    ICE_INSET_NONE,
  		&hint_eth_pppoes_ipv6_tcp},
-	{pattern_eth_pppoes_ipv6_sctp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv6_sctp},
  	{pattern_eth_pppoes,		    ICE_INSET_NONE,
  		&hint_eth_pppoes},
  };
#3 lore raw
Quoted 90 lines

-----Original Message-----
From: Guo, Jia <[email protected]>
Sent: Monday, July 27, 2020 10:39 AM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: Su, Simei <[email protected]>; [email protected]
Subject: Re: [PATCH] net/ice: remove RSS for SCTP in PPPoE

hi, qi

drivers/net/ice/ice_ethdev.c ice_rss_hash_set(struct ice_pf *pf, uint64_t

Quoted 17 lines · Qi Zhang

We don't support SCTP in PPPoE RSS, remove it.

Fixes d117de460035 ("net/ice: fix GTPU/PPPoE packets with no hash

value")

Fixes 0b952714e9c1 ("net/ice: refactor PF hash flow")
---
  drivers/net/ice/ice_ethdev.c | 12 ------------
  drivers/net/ice/ice_hash.c   | 14 --------------
  2 files changed, 26 deletions(-)
(quoted diff) +0 -0

b/drivers/net/ice/ice_ethdev.c index a4a0390f8..c4c0e638f 100644

drivers/net/ice/ice_ethdev.c +0 -0
@@ -2666,12 +2666,6 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t

rss_hf)

drivers/net/ice/ice_ethdev.c ice_rss_hash_set(struct ice_pf *pf, uint64_t · line 2667

Quoted 2 lines
drivers/net/ice/ice_ethdev.c +0 -0
  		if (ret)
  			PMD_DRV_LOG(ERR, "%s GTPU_EH_IPV4_SCTP rss flow

fail %d",

drivers/net/ice/ice_ethdev.c ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)

Quoted 10 lines
drivers/net/ice/ice_ethdev.c +0 -6
  				    __func__, ret);
-
-		ret = ice_add_rss_cfg(hw, vsi->idx, ICE_HASH_SCTP_IPV4,
-				ICE_FLOW_SEG_HDR_PPPOE, 0);
-		if (ret)
-			PMD_DRV_LOG(ERR, "%s PPPoE_IPV4_SCTP rss flow fail %d",
-				    __func__, ret);
  	}
 
  	if (rss_hf & ETH_RSS_NONFRAG_IPV6_SCTP) { @@ -2686,12 +2680,6

@@

Quoted 3 lines

ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf)
if (ret)
PMD_DRV_LOG(ERR, "%s GTPU_EH_IPV6_SCTP rss flow

fail %d",

drivers/net/ice/ice_hash.c struct rss_type_match_hdr

Quoted 15 lines

__func__, ret);

drivers/net/ice/ice_ethdev.c +0 -6
-
-		ret = ice_add_rss_cfg(hw, vsi->idx, ICE_HASH_SCTP_IPV6,
-				ICE_FLOW_SEG_HDR_PPPOE, 0);
-		if (ret)
-			PMD_DRV_LOG(ERR, "%s PPPoE_IPV6_SCTP rss flow fail %d",
-				    __func__, ret);
  	}
  }
drivers/net/ice/ice_hash.c +0 -0
index e535e4b95..4243f7ce9 100644
@@ -204,10 +204,6 @@ struct rss_type_match_hdr

hint_eth_pppoes_ipv4_tcp = {

drivers/net/ice/ice_hash.c struct rss_type_match_hdr hint_eth_pppoes_ipv4_tcp = { · line 206

Quoted 3 lines
drivers/net/ice/ice_hash.c +0 -0
  	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV4 |
  	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_TCP,
  	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV4_TCP};

-struct

drivers/net/ice/ice_hash.c struct rss_type_match_hdr

Quoted 8 lines
drivers/net/ice/ice_hash.c +0 -3
 rss_type_match_hdr hint_eth_pppoes_ipv4_sctp = {
-	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV4 |
-	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_SCTP,
-	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV4_SCTP};
  struct rss_type_match_hdr hint_eth_ipv4_esp = {
  	ICE_FLOW_SEG_HDR_IPV4 | ICE_FLOW_SEG_HDR_IPV_OTHER |
  	ICE_FLOW_SEG_HDR_ESP,
@@ -313,10 +309,6 @@ struct rss_type_match_hdr

hint_eth_pppoes_ipv6_tcp = {

drivers/net/ice/ice_hash.c struct rss_type_match_hdr hint_eth_pppoes_ipv6_tcp = { · line 311

Quoted 3 lines
drivers/net/ice/ice_hash.c +0 -0
  	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV6 |
  	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_TCP,
  	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV6_TCP};

-struct

drivers/net/ice/ice_hash.c static struct ice_pattern_match_item

Quoted 8 lines
drivers/net/ice/ice_hash.c +0 -3
 rss_type_match_hdr hint_eth_pppoes_ipv6_sctp = {
-	ICE_FLOW_SEG_HDR_PPPOE | ICE_FLOW_SEG_HDR_IPV6 |
-	ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_SCTP,
-	ETH_RSS_ETH | ETH_RSS_PPPOE | ETH_RSS_NONFRAG_IPV6_SCTP};
  struct rss_type_match_hdr hint_eth_pppoes = {
  	ICE_FLOW_SEG_HDR_PPPOE,
  	ETH_RSS_ETH | ETH_RSS_PPPOE};
@@ -398,10 +390,6 @@ static struct ice_pattern_match_item

ice_hash_pattern_list_comms[] = {

Quoted 8 lines

drivers/net/ice/ice_hash.c static struct ice_pattern_match_item ice_hash_pattern_list_comms[] = { · line 402

Quoted 5 lines
drivers/net/ice/ice_hash.c +0 -2
  		&hint_eth_pppoes_ipv4},
  	{pattern_eth_pppoes_ipv4_udp,	    ICE_INSET_NONE,
  		&hint_eth_pppoes_ipv4_udp},
-	{pattern_eth_pppoes_ipv4_tcp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv4_tcp},

The tcp should not be removed. Need a new version please.

Will fix in v2, thanks

Quoted 17 lines

drivers/net/ice/ice_hash.c static struct ice_pattern_match_item

Quoted 8 lines
drivers/net/ice/ice_hash.c +0 -2
-	{pattern_eth_pppoes_ipv4_sctp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv4_sctp},
  	{pattern_eth_ipv4_esp,		    ICE_INSET_NONE,
  		&hint_eth_ipv4_esp},
  	{pattern_eth_ipv4_udp_esp,	    ICE_INSET_NONE,
@@ -452,8 +440,6 @@ static struct ice_pattern_match_item

ice_hash_pattern_list_comms[] = {

Quoted 8 lines
drivers/net/ice/ice_hash.c +0 -2
  		&hint_eth_pppoes_ipv6_udp},
  	{pattern_eth_pppoes_ipv6_tcp,	    ICE_INSET_NONE,
  		&hint_eth_pppoes_ipv6_tcp},
-	{pattern_eth_pppoes_ipv6_sctp,	    ICE_INSET_NONE,
-		&hint_eth_pppoes_ipv6_sctp},
  	{pattern_eth_pppoes,		    ICE_INSET_NONE,
  		&hint_eth_pppoes},
  };