net/ice: fix GTPU/PPPoE packets with no hash value
PATCH 1/1 net/ice: fix GTPU/PPPoE packets with no hash value
When RSS init, because of profile overlap, the GTPU_IPV4 packets don't hit GTPU_INNER_IPV4 profile which causes no hash value. Because of no PPPoE profile, the PPPoE packets also has no hash value. This patch solves this issue by pulling GTPU_IPV4 profile into inner ipv4 group and creating related PPPoE profile at the same time.
--- drivers/net/ice/ice_ethdev.c | 80 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+)
drivers/net/ice/ice_ethdev.c +80 -0
@@ -2533,6 +2533,86 @@ static int ice_parse_devargs(struct rte_eth_dev *dev)PMD_DRV_LOG (ERR ,"%s SCTP_IPV6 rss flow fail %d" , __func__, ret); } + +if (rss_hf Ð_RSS_IPV4 ) { + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_FLOW_HASH_IPV4 , +ICE_FLOW_SEG_HDR_GTPU_IP ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s GTPU_IPV4 rss flow fail %d" , + __func__, ret); + + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_FLOW_HASH_IPV4 , +ICE_FLOW_SEG_HDR_PPPOE ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s PPPoE_IPV4 rss flow fail %d" , + __func__, ret); + } + +if (rss_hf Ð_RSS_IPV6 ) { + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_FLOW_HASH_IPV6 , +ICE_FLOW_SEG_HDR_GTPU_IP ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s GTPU_IPV6 rss flow fail %d" , + __func__, ret); + + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_FLOW_HASH_IPV6 , +ICE_FLOW_SEG_HDR_PPPOE ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s PPPoE_IPV6 rss flow fail %d" , + __func__, ret); + } + +if (rss_hf Ð_RSS_NONFRAG_IPV4_UDP ) { + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_HASH_UDP_IPV4 , +ICE_FLOW_SEG_HDR_PPPOE ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s PPPoE_IPV4_UDP rss flow fail %d" , + __func__, ret); + } + +if (rss_hf Ð_RSS_NONFRAG_IPV6_UDP ) { + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_HASH_UDP_IPV6 , +ICE_FLOW_SEG_HDR_PPPOE ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s PPPoE_IPV6_UDP rss flow fail %d" , + __func__, ret); + } + +if (rss_hf Ð_RSS_NONFRAG_IPV4_TCP ) { + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_HASH_TCP_IPV4 , +ICE_FLOW_SEG_HDR_PPPOE ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s PPPoE_IPV4_TCP rss flow fail %d" , + __func__, ret); + } + +if (rss_hf Ð_RSS_NONFRAG_IPV6_TCP ) { + ret =ice_add_rss_cfg (hw, vsi->idx,ICE_HASH_TCP_IPV6 , +ICE_FLOW_SEG_HDR_PPPOE ,0 ); +if (ret) +PMD_DRV_LOG (ERR ,"%s PPPoE_IPV6_TCP rss flow fail %d" , + __func__, ret); + } + +if (rss_hf Ð_RSS_NONFRAG_IPV4_SCTP ) { + 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 Ð_RSS_NONFRAG_IPV6_SCTP ) { +if (ret) +PMD_DRV_LOG (ERR ,"%s GTPU_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); + } }static int ice_init_rss (struct ice_pf *pf)
Signature · 1 line
1.8.3.1
Quoted 17 lines
-----Original Message-----
From: Su, Simei <[email protected]>
Sent: Tuesday, July 7, 2020 9:38 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Zhao1, Wei <[email protected]>; Jiang, JunyuX <[email protected]>; Lu, Nannan <[email protected]>; Su, Simei <[email protected]>
Subject: [PATCH] net/ice: fix GTPU/PPPoE packets with no hash valueWhen RSS init, because of profile overlap, the
GTPU_IPV4packets don't hitGTPU_INNER_IPV4profile which causes no hash value. Because of no PPPoE profile, the PPPoE packets also has no hash value. This patch solves this issue by pullingGTPU_IPV4profile into inner ipv4 group and creating related PPPoE profile at the same time.
Quoted 4 lines
Fixes 8cadc41294c6 ("net/ice: initialize and update RSS based on userconfig")
Signed-off-by Simei Su <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
Quoted 28 lines
-----Original Message-----
From: Zhang, Qi Z
Sent: Tuesday, July 7, 2020 10:30 AM
To: Su, Simei <[email protected]>
Cc: [email protected]; Zhao1, Wei <[email protected]>; Jiang, JunyuX <[email protected]>; Lu, Nannan <[email protected]>
Subject: RE: [PATCH] net/ice: fix GTPU/PPPoE packets with no hash valueQuoted 16 lines
-----Original Message-----
From: Su, Simei <[email protected]>
Sent: Tuesday, July 7, 2020 9:38 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Zhao1, Wei <[email protected]>; Jiang, JunyuX <[email protected]>; Lu, Nannan <[email protected]>; Su, Simei <[email protected]>
Subject: [PATCH] net/ice: fix GTPU/PPPoE packets with no hash valueWhen RSS init, because of profile overlap, the
GTPU_IPV4packets don't hitGTPU_INNER_IPV4profile which causes no hash value. Because of no PPPoE profile, the PPPoE packets also has no hash value. This patch solves this issue by pullingGTPU_IPV4profile into inner ipv4 group and creating related PPPoE profile at the same time.
Quoted 8 lines
Quoted 4 lines
Fixes 8cadc41294c6 ("net/ice: initialize and update RSS based on userconfig")
Signed-off-by Simei Su <[email protected]>Acked-by Qi Zhang <[email protected]>Applied to dpdk-next-net-intel.
There is a compile issue be fixed before be applied.
Quoted 3 lines
Thanks
Qi