net/ice: refine RSS configure
PATCH 1/1 net/ice: refine RSS configure
The ICE_RSS_ANY_HEADERS will try to enable outer RSS for non-tunnel case and inner RSS for tunnel case. This confuse user.
As we already have ICE_RSS_INNER_HEADER for tunnel case, So, replace ICE_RSS_ANY_HEADERS with ICE_RSS_OUTER_HEADERS for all exist flow which only specified the outer pattern.
To enable inner RSS for any tunnel cases, a separated rule should be enabled.
The patch also remove some unncessary condition check for GTPU in base code, as we already can support outer RSS for GTPU.
--- drivers/net/ice/base/ice_flow.c | 14 ------------ drivers/net/ice/ice_ethdev.c | 4 ++-- drivers/net/ice/ice_hash.c | 38 ++++++++++++++++----------------- 3 files changed, 21 insertions(+), 35 deletions(-)
drivers/net/ice/base/ice_flow.c +0 -14
@@ -3678,13 +3678,6 @@ ice_add_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle,if (status) goto exit; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { - status =ICE_SUCCESS ; - goto exit; - } -/* Search for a flow profile that has matching headers, hash fields * and has the input VSI associated to it. If found, no further * operations required and exit.
@@ -3847,13 +3840,6 @@ ice_rem_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle,if (status) goto out; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { - status =ICE_SUCCESS ; - goto out; - } - prof =ice_flow_find_prof_conds (hw, blk,ICE_FLOW_RX , segs, segs_cnt, vsi_handle,ICE_FLOW_FIND_PROF_CHK_FLDS );
drivers/net/ice/ice_ethdev.c +2 -2
@@ -2348,7 +2348,7 @@ hash_cfg_reset(struct ice_rss_hash_cfg *cfg) cfg->hash_flds =0 ; cfg->addl_hdrs =0 ; cfg->symm =0 ; - cfg->hdr_type =ICE_RSS_ANY_HEADERS ; + cfg->hdr_type =ICE_RSS_OUTER_HEADERS ; } static int
@@ -2833,7 +2833,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf) __func__, ret); cfg.symm =0 ; - cfg.hdr_type =ICE_RSS_ANY_HEADERS ; + cfg.hdr_type =ICE_RSS_OUTER_HEADERS ;/* Configure RSS for IPv4 with src/dst addr as input set */ if (rss_hf Ð_RSS_IPV4 ) { cfg.addl_hdrs =ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER ;
drivers/net/ice/ice_hash.c +19 -19
@@ -110,7 +110,7 @@ struct ice_rss_hash_cfg ipv4_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER ,ICE_FLOW_HASH_ETH |ICE_FLOW_HASH_IPV4 , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -118,7 +118,7 @@ struct ice_rss_hash_cfg ipv4_udp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_UDP ,ICE_FLOW_HASH_ETH |ICE_HASH_UDP_IPV4 |ICE_IPV4_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -126,7 +126,7 @@ struct ice_rss_hash_cfg ipv4_tcp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_TCP ,ICE_FLOW_HASH_ETH |ICE_HASH_TCP_IPV4 |ICE_IPV4_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -134,7 +134,7 @@ struct ice_rss_hash_cfg ipv4_sctp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_SCTP ,ICE_FLOW_HASH_ETH |ICE_HASH_SCTP_IPV4 |ICE_IPV4_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -142,7 +142,7 @@ struct ice_rss_hash_cfg ipv6_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER ,ICE_FLOW_HASH_ETH |ICE_FLOW_HASH_IPV6 , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -150,7 +150,7 @@ struct ice_rss_hash_cfg ipv6_udp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_UDP ,ICE_FLOW_HASH_ETH |ICE_HASH_UDP_IPV6 |ICE_IPV6_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -158,7 +158,7 @@ struct ice_rss_hash_cfg ipv6_tcp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_TCP ,ICE_FLOW_HASH_ETH |ICE_HASH_TCP_IPV6 |ICE_IPV6_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -166,7 +166,7 @@ struct ice_rss_hash_cfg ipv6_sctp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_SCTP ,ICE_FLOW_HASH_ETH |ICE_HASH_SCTP_IPV6 |ICE_IPV6_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -262,7 +262,7 @@ struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_ESP ,ICE_FLOW_HASH_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -270,7 +270,7 @@ struct ice_rss_hash_cfg eth_ipv4_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -278,7 +278,7 @@ struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_AH ,ICE_FLOW_HASH_AH_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -286,7 +286,7 @@ struct ice_rss_hash_cfg eth_ipv4_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -294,7 +294,7 @@ struct ice_rss_hash_cfg eth_ipv4_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -302,7 +302,7 @@ struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_ESP ,ICE_FLOW_HASH_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -310,7 +310,7 @@ struct ice_rss_hash_cfg eth_ipv6_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -318,7 +318,7 @@ struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_AH ,ICE_FLOW_HASH_AH_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -326,7 +326,7 @@ struct ice_rss_hash_cfg eth_ipv6_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };
@@ -334,14 +334,14 @@ struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };struct ice_rss_hash_cfg pppoe_tmplt = {ICE_FLOW_SEG_HDR_ETH ,ICE_FLOW_HASH_ETH |ICE_FLOW_HASH_PPPOE_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 };
Signature · 1 line
2.26.2
Hi Qi,
Replies inline.
Quoted 13 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, March 25, 2021 8:43 PM
To: Guo, Jia <[email protected]>; Ding, Xuan <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan, Gordon <[email protected]>; Varshney, Shashank1 <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/ice: refine RSS configureThe
ICE_RSS_ANY_HEADERSwill try to enable outer RSS for non-tunnel case and inner RSS for tunnel case. This confuse user.
Quoted 8 lines
As we already have
ICE_RSS_INNER_HEADERfor tunnel case, So, replaceICE_RSS_ANY_HEADERSwithICE_RSS_OUTER_HEADERSfor all exist flow which only specified the outer pattern.To enable inner RSS for any tunnel cases, a separated rule should be enabled.
The patch also remove some unncessary condition check for GTPU
Here ' unncessary ' is a typo, should be 'unnecessary'.
Quoted 241 lines
in base code, as we already can support outer RSS for GTPU.
Signed-off-by Qi Zhang <[email protected]>--- drivers/net/ice/base/ice_flow.c | 14 ------------ drivers/net/ice/ice_ethdev.c | 4 ++-- drivers/net/ice/ice_hash.c | 38 ++++++++++++++++----------------- 3 files changed, 21 insertions(+), 35 deletions(-)drivers/net/ice/base/ice_flow.c +0
-7@@ -3678,13 +3678,6 @@ ice_add_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle, if (status) goto exit; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { - status =ICE_SUCCESS ; - goto exit; - } -/* Search for a flow profile that has matching headers, hash fields * and has the input VSI associated to it. If found, no further drivers/net/ice/base/ice_flow.c +0
-7* operations required and exit. @@ -3847,13 +3840,6 @@ ice_rem_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle, if (status) goto out; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { - status =ICE_SUCCESS ; - goto out; - } - prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt, vsi_handle,drivers/net/ice/base/ice_flow.c +0
-0ICE_FLOW_FIND_PROF_CHK_FLDS);drivers/net/ice/ice_ethdev.c +2
-2@@ -2348,7 +2348,7 @@ hash_cfg_reset(struct ice_rss_hash_cfg *cfg) cfg->hash_flds =0 ; cfg->addl_hdrs =0 ; cfg->symm =0 ; - cfg->hdr_type =ICE_RSS_ANY_HEADERS ; + cfg->hdr_type =ICE_RSS_OUTER_HEADERS ; } static int@@ -2833,7 +2833,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t rss_hf) __func__, ret); cfg.symm =0 ; - cfg.hdr_type =ICE_RSS_ANY_HEADERS ; + cfg.hdr_type =ICE_RSS_OUTER_HEADERS ;/* Configure RSS for IPv4 with src/dst addr as input set */ if (rss_hf Ð_RSS_IPV4 ) { cfg.addl_hdrs = ICE_FLOW_SEG_HDR_IPV4 |
ICE_FLOW_SEG_HDR_IPV_OTHER;drivers/net/ice/ice_hash.c +19
-20@@ -110,7 +110,7 @@ struct ice_rss_hash_cfg ipv4_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER ,ICE_FLOW_HASH_ETH |ICE_FLOW_HASH_IPV4 , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -118,7 +118,7 @@ struct ice_rss_hash_cfg ipv4_udp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_UDP ,ICE_FLOW_HASH_ETH |ICE_HASH_UDP_IPV4 |ICE_IPV4_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -126,7 +126,7 @@ struct ice_rss_hash_cfg ipv4_tcp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_TCP ,ICE_FLOW_HASH_ETH |ICE_HASH_TCP_IPV4 |ICE_IPV4_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -134,7 +134,7 @@ struct ice_rss_hash_cfg ipv4_sctp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_SCTP ,ICE_FLOW_HASH_ETH |ICE_HASH_SCTP_IPV4 |ICE_IPV4_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -142,7 +142,7 @@ struct ice_rss_hash_cfg ipv6_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER ,ICE_FLOW_HASH_ETH |ICE_FLOW_HASH_IPV6 , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -150,7 +150,7 @@ struct ice_rss_hash_cfg ipv6_udp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_UDP ,ICE_FLOW_HASH_ETH |ICE_HASH_UDP_IPV6 |ICE_IPV6_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -158,7 +158,7 @@ struct ice_rss_hash_cfg ipv6_tcp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_TCP ,ICE_FLOW_HASH_ETH |ICE_HASH_TCP_IPV6 |ICE_IPV6_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -166,7 +166,7 @@ struct ice_rss_hash_cfg ipv6_sctp_tmplt = {ICE_FLOW_SEG_HDR_ETH |ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_SCTP ,ICE_FLOW_HASH_ETH |ICE_HASH_SCTP_IPV6 |ICE_IPV6_PROT , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -262,7 +262,7 @@ struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_ESP ,ICE_FLOW_HASH_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -270,7 +270,7 @@ struct ice_rss_hash_cfg eth_ipv4_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -278,7 +278,7 @@ struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_AH ,ICE_FLOW_HASH_AH_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -286,7 +286,7 @@ struct ice_rss_hash_cfg eth_ipv4_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -294,7 +294,7 @@ struct ice_rss_hash_cfg eth_ipv4_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -302,7 +302,7 @@ struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_ESP ,ICE_FLOW_HASH_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -310,7 +310,7 @@ struct ice_rss_hash_cfg eth_ipv6_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -318,7 +318,7 @@ struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_AH ,ICE_FLOW_HASH_AH_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -326,7 +326,7 @@ struct ice_rss_hash_cfg eth_ipv6_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -334,14 +334,14 @@ struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };struct ice_rss_hash_cfg pppoe_tmplt = {ICE_FLOW_SEG_HDR_ETH ,ICE_FLOW_HASH_ETH |ICE_FLOW_HASH_PPPOE_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 }; --
Quoted 1 line
2.26.2
Since PPPOE protocol is a encapsulating network protocol. For IP/UDP or IP/TCP cases, is it right to treat it as outer cases? Here are some doubts.
Thanks,
Xuan
Quoted 260 lines
-----Original Message-----
From: Ding, Xuan <[email protected]>
Sent: Tuesday, March 30, 2021 11:00 AM
To: Zhang, Qi Z <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan, Gordon <[email protected]>; Varshney, Shashank1 <[email protected]>
Subject: RE: [PATCH] net/ice: refine RSS configureHi Qi,
Replies inline.
Quoted 5 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, March 25, 2021 8:43 PM
To: Guo, Jia <[email protected]>; Ding, Xuan <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan,Gordon
Quoted 7 lines
<[email protected]>; Varshney, Shashank1 <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/ice: refine RSS configureThe
ICE_RSS_ANY_HEADERSwill try to enable outer RSS for non-tunnel case and inner RSS for tunnel case. This confuse user.Quoted 8 lines
As we already have
ICE_RSS_INNER_HEADERfor tunnel case, So, replaceICE_RSS_ANY_HEADERSwithICE_RSS_OUTER_HEADERSfor all exist flow which only specified the outer pattern.To enable inner RSS for any tunnel cases, a separated rule should be enabled.
The patch also remove some unncessary condition check for GTPU
Here ' unncessary ' is a typo, should be 'unnecessary'.
drivers/net/ice/ice_ethdev.c ice_rss_hash_set(struct ice_pf *pf, uint64_t
Quoted 50 lines
in base code, as we already can support outer RSS for GTPU.
Signed-off-by Qi Zhang <[email protected]>--- drivers/net/ice/base/ice_flow.c | 14 ------------ drivers/net/ice/ice_ethdev.c | 4 ++-- drivers/net/ice/ice_hash.c | 38 ++++++++++++++++----------------- 3 files changed, 21 insertions(+), 35 deletions(-)(quoted diff) +0
-0
b/drivers/net/ice/base/ice_flow.cindexd123206fc6..bceb257d61100644drivers/net/ice/base/ice_flow.c +0
-14@@ -3678,13 +3678,6 @@ ice_add_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle, if (status) goto exit; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { -status =ICE_SUCCESS ; -goto exit; -} -/* Search for a flow profile that has matching headers, hash fields * and has the input VSI associated to it. If found, no further * operations required and exit. @@ -3847,13 +3840,6 @@ ice_rem_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle, if (status) goto out; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { -status =ICE_SUCCESS ; -goto out; -} - prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
vsi_handle,ICE_FLOW_FIND_PROF_CHK_FLDS); diff --gita/drivers/net/ice/ice_ethdev.cb/drivers/net/ice/ice_ethdev.cindex3e85e5f629..4ccf31cb41100644drivers/net/ice/ice_ethdev.c +1
-1@@ -2348,7 +2348,7 @@ hash_cfg_reset(struct ice_rss_hash_cfg *cfg) cfg->hash_flds =0 ; cfg->addl_hdrs =0 ; cfg->symm =0 ; -cfg->hdr_type =ICE_RSS_ANY_HEADERS ; +cfg->hdr_type =ICE_RSS_OUTER_HEADERS ; } static int@@ -2833,7 +2833,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t
rss_hf)Quoted 12 lines
drivers/net/ice/ice_ethdev.c +1
-1__func__, ret); cfg.symm =0 ; -cfg.hdr_type =ICE_RSS_ANY_HEADERS ; +cfg.hdr_type =ICE_RSS_OUTER_HEADERS ; /* Configure RSS for IPv4 with src/dst addr as input set */ if(
rss_hfÐ_RSS_IPV4) { cfg.addl_hdrs =ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER; diff --gita/drivers/net/ice/ice_hash.cb/drivers/net/ice/ice_hash.cindex58a0c18d09..7d7e7052da100644drivers/net/ice/ice_hash.c +0
-0@@ -110,7 +110,7 @@ struct ice_rss_hash_cfg ipv4_tmplt = {Quoted 2 lines
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER,ICE_FLOW_HASH_ETH|
ICE_FLOW_HASH_IPV4,Quoted 8 lines
drivers/net/ice/ice_hash.c +1
-1-ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -118,7 +118,7 @@ struct ice_rss_hash_cfg ipv4_udp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_UDP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_UDP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -126,7 +126,7 @@ struct ice_rss_hash_cfg ipv4_tcp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_TCP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_TCP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -134,7 +134,7 @@ struct ice_rss_hash_cfg ipv4_sctp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_SCTP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_SCTP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -142,7 +142,7 @@ struct ice_rss_hash_cfg ipv6_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER,ICE_FLOW_HASH_ETH|
ICE_FLOW_HASH_IPV6,Quoted 8 lines
drivers/net/ice/ice_hash.c +1
-1-ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -150,7 +150,7 @@ struct ice_rss_hash_cfg ipv6_udp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_UDP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_UDP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -158,7 +158,7 @@ struct ice_rss_hash_cfg ipv6_tcp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_TCP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_TCP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -166,7 +166,7 @@ struct ice_rss_hash_cfg ipv6_sctp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_SCTP,
ICE_FLOW_HASH_ETHdrivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = { · line 263
Quoted 8 lines
|
ICE_HASH_SCTP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -262,7 +262,7 @@ struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_ESP, ICE_FLOW_HASH_ESP_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 13 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -270,7 +270,7 @@ struct ice_rss_hash_cfg eth_ipv4_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = { · line 279
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -278,7 +278,7 @@ struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_AH, ICE_FLOW_HASH_AH_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 21 lines
drivers/net/ice/ice_hash.c +3
-2+ICE_RSS_OUTER_HEADERS , 0 };@@ -286,7 +286,7 @@ struct ice_rss_hash_cfg eth_ipv4_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -294,7 +294,7 @@ struct ice_rss_hash_cfg eth_ipv4_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = { · line 303
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -302,7 +302,7 @@ struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_ESP, ICE_FLOW_HASH_ESP_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 13 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -310,7 +310,7 @@ struct ice_rss_hash_cfg eth_ipv6_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = { · line 319
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -318,7 +318,7 @@ struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_AH, ICE_FLOW_HASH_AH_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 13 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -326,7 +326,7 @@ struct ice_rss_hash_cfg eth_ipv6_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt = { · line 341
Quoted 9 lines
drivers/net/ice/ice_hash.c +1
-1@@ -334,14 +334,14 @@ struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 };struct ice_rss_hash_cfg pppoe_tmplt = {ICE_FLOW_SEG_HDR_ETH , ICE_FLOW_HASH_ETH | ICE_FLOW_HASH_PPPOE_SESS_ID,-ICE_RSS_ANY_HEADERS,
Quoted 4 lines
drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };
Quoted 6 lines
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-1--2.26.2
Since PPPOE protocol is a encapsulating network protocol. For IP/UDP or IP/TCP cases, is it right to treat it as outer cases? Here are some doubts.
PPPOE don't have outer l3/l4, it belongs to the same layer with inner l3/l4, for single layer, we just take outer header Typically , inner header will only be used for gtpu/vxlan/gre
Quoted 4 lines
Thanks,
Xuan
Ding, Xuan
Acked-byQuoted 273 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Tuesday, March 30, 2021 11:30 AM
To: Ding, Xuan <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan, Gordon <[email protected]>; Varshney, Shashank1 <[email protected]>
Subject: RE: [PATCH] net/ice: refine RSS configureQuoted 261 lines
-----Original Message-----
From: Ding, Xuan <[email protected]>
Sent: Tuesday, March 30, 2021 11:00 AM
To: Zhang, Qi Z <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan, Gordon <[email protected]>; Varshney, Shashank1 <[email protected]>
Subject: RE: [PATCH] net/ice: refine RSS configureHi Qi,
Replies inline.
Quoted 5 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, March 25, 2021 8:43 PM
To: Guo, Jia <[email protected]>; Ding, Xuan <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan,Gordon
Quoted 7 lines
<[email protected]>; Varshney, Shashank1 <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/ice: refine RSS configureThe
ICE_RSS_ANY_HEADERSwill try to enable outer RSS for non-tunnel case and inner RSS for tunnel case. This confuse user.Quoted 8 lines
As we already have
ICE_RSS_INNER_HEADERfor tunnel case, So, replaceICE_RSS_ANY_HEADERSwithICE_RSS_OUTER_HEADERSfor all exist flow which only specified the outer pattern.To enable inner RSS for any tunnel cases, a separated rule should be enabled.
The patch also remove some unncessary condition check for GTPU
Here ' unncessary ' is a typo, should be 'unnecessary'.
drivers/net/ice/ice_ethdev.c ice_rss_hash_set(struct ice_pf *pf, uint64_t
Quoted 50 lines
in base code, as we already can support outer RSS for GTPU.
Signed-off-by Qi Zhang <[email protected]>--- drivers/net/ice/base/ice_flow.c | 14 ------------ drivers/net/ice/ice_ethdev.c | 4 ++-- drivers/net/ice/ice_hash.c | 38 ++++++++++++++++----------------- 3 files changed, 21 insertions(+), 35 deletions(-)(quoted diff) +0
-0
b/drivers/net/ice/base/ice_flow.cindexd123206fc6..bceb257d61100644drivers/net/ice/base/ice_flow.c +0
-14@@ -3678,13 +3678,6 @@ ice_add_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle, if (status) goto exit; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { -status =ICE_SUCCESS ; -goto exit; -} -/* Search for a flow profile that has matching headers, hash fields * and has the input VSI associated to it. If found, no further * operations required and exit. @@ -3847,13 +3840,6 @@ ice_rem_rss_cfg_sync(struct ice_hw *hw, u16 vsi_handle, if (status) goto out; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==ICE_FLOW_SEG_SINGLE && - segs[segs_cnt -1 ].hdrs &ICE_FLOW_SEG_HDR_GTPU ) { -status =ICE_SUCCESS ; -goto out; -} - prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs, segs_cnt,
vsi_handle,ICE_FLOW_FIND_PROF_CHK_FLDS); diff --gita/drivers/net/ice/ice_ethdev.cb/drivers/net/ice/ice_ethdev.cindex3e85e5f629..4ccf31cb41100644drivers/net/ice/ice_ethdev.c +1
-1@@ -2348,7 +2348,7 @@ hash_cfg_reset(struct ice_rss_hash_cfg *cfg) cfg->hash_flds =0 ; cfg->addl_hdrs =0 ; cfg->symm =0 ; -cfg->hdr_type =ICE_RSS_ANY_HEADERS ; +cfg->hdr_type =ICE_RSS_OUTER_HEADERS ; } static int@@ -2833,7 +2833,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t
rss_hf)Quoted 12 lines
drivers/net/ice/ice_ethdev.c +1
-1__func__, ret); cfg.symm =0 ; -cfg.hdr_type =ICE_RSS_ANY_HEADERS ; +cfg.hdr_type =ICE_RSS_OUTER_HEADERS ; /* Configure RSS for IPv4 with src/dst addr as input set */ if(
rss_hfÐ_RSS_IPV4) { cfg.addl_hdrs =ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER; diff --gita/drivers/net/ice/ice_hash.cb/drivers/net/ice/ice_hash.cindex58a0c18d09..7d7e7052da100644drivers/net/ice/ice_hash.c +0
-0@@ -110,7 +110,7 @@ struct ice_rss_hash_cfg ipv4_tmplt = {Quoted 2 lines
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER,ICE_FLOW_HASH_ETH|
ICE_FLOW_HASH_IPV4,Quoted 8 lines
drivers/net/ice/ice_hash.c +1
-1-ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -118,7 +118,7 @@ struct ice_rss_hash_cfg ipv4_udp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_UDP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_UDP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -126,7 +126,7 @@ struct ice_rss_hash_cfg ipv4_tcp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_TCP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_TCP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -134,7 +134,7 @@ struct ice_rss_hash_cfg ipv4_sctp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_SCTP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_SCTP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -142,7 +142,7 @@ struct ice_rss_hash_cfg ipv6_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER,ICE_FLOW_HASH_ETH|
ICE_FLOW_HASH_IPV6,Quoted 8 lines
drivers/net/ice/ice_hash.c +1
-1-ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -150,7 +150,7 @@ struct ice_rss_hash_cfg ipv6_udp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_UDP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_UDP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -158,7 +158,7 @@ struct ice_rss_hash_cfg ipv6_tcp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_TCP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_TCP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -166,7 +166,7 @@ struct ice_rss_hash_cfg ipv6_sctp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_SCTP,
ICE_FLOW_HASH_ETHdrivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = { · line 263
Quoted 8 lines
|
ICE_HASH_SCTP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -262,7 +262,7 @@ struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_ESP, ICE_FLOW_HASH_ESP_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 13 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -270,7 +270,7 @@ struct ice_rss_hash_cfg eth_ipv4_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = { · line 279
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -278,7 +278,7 @@ struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_AH, ICE_FLOW_HASH_AH_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 21 lines
drivers/net/ice/ice_hash.c +3
-2+ICE_RSS_OUTER_HEADERS , 0 };@@ -286,7 +286,7 @@ struct ice_rss_hash_cfg eth_ipv4_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -294,7 +294,7 @@ struct ice_rss_hash_cfg eth_ipv4_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = { · line 303
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -302,7 +302,7 @@ struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_ESP, ICE_FLOW_HASH_ESP_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 13 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -310,7 +310,7 @@ struct ice_rss_hash_cfg eth_ipv6_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = { · line 319
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -318,7 +318,7 @@ struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_AH, ICE_FLOW_HASH_AH_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 13 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -326,7 +326,7 @@ struct ice_rss_hash_cfg eth_ipv6_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt = { · line 341
Quoted 9 lines
drivers/net/ice/ice_hash.c +1
-1@@ -334,14 +334,14 @@ struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 };struct ice_rss_hash_cfg pppoe_tmplt = {ICE_FLOW_SEG_HDR_ETH , ICE_FLOW_HASH_ETH | ICE_FLOW_HASH_PPPOE_SESS_ID,-ICE_RSS_ANY_HEADERS,
Quoted 6 lines
drivers/net/ice/ice_hash.c +1
-1+ICE_RSS_OUTER_HEADERS , 0 }; --2.26.2
Quoted 14 lines
Quoted 3 lines
Since PPPOE protocol is a encapsulating network protocol. For IP/UDP or IP/TCP cases, is it right to treat it as outer cases? Here are some doubts.
PPPOE don't have outer l3/l4, it belongs to the same layer with inner l3/l4, for single layer, we just take outer header
Typically , inner header will only be used for gtpu/vxlan/greQuoted 4 lines
Thanks,
Xuan
Thanks,
Xuan
Zhang, Qi Z
AppliedQuoted 306 lines
-----Original Message-----
From: Ding, Xuan <[email protected]>
Sent: Tuesday, March 30, 2021 12:31 PM
To: Zhang, Qi Z <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan, Gordon <[email protected]>; Varshney, Shashank1 <[email protected]>
Subject: RE: [PATCH] net/ice: refine RSS configureQuoted 5 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Tuesday, March 30, 2021 11:30 AM
To: Ding, Xuan <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan,Gordon
Quoted 52 lines
<[email protected]>; Varshney, Shashank1 <[email protected]>
Subject: RE: [PATCH] net/ice: refine RSS configureQuoted 46 lines
-----Original Message-----
From: Ding, Xuan <[email protected]>
Sent: Tuesday, March 30, 2021 11:00 AM
To: Zhang, Qi Z <[email protected]>; Guo, Jia <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan, Gordon <[email protected]>; Varshney, Shashank1 <[email protected]>
Subject: RE: [PATCH] net/ice: refine RSS configureHi Qi,
Replies inline.
Quoted 5 lines
-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Thursday, March 25, 2021 8:43 PM
To: Guo, Jia <[email protected]>; Ding, Xuan <[email protected]>
Cc: [email protected]; Yang, Qiming <[email protected]>; Noonan,Gordon
Quoted 7 lines
<[email protected]>; Varshney, Shashank1 <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/ice: refine RSS configureThe
ICE_RSS_ANY_HEADERSwill try to enable outer RSS for non-tunnel case and inner RSS for tunnel case. This confuse user.Quoted 8 lines
As we already have
ICE_RSS_INNER_HEADERfor tunnel case, So, replaceICE_RSS_ANY_HEADERSwithICE_RSS_OUTER_HEADERSfor all exist flow which only specified the outer pattern.To enable inner RSS for any tunnel cases, a separated rule should be enabled.
The patch also remove some unncessary condition check for GTPU
Here ' unncessary ' is a typo, should be 'unnecessary'.
Quoted 9 lines
in base code, as we already can support outer RSS for GTPU.
Signed-off-by Qi Zhang <[email protected]>--- drivers/net/ice/base/ice_flow.c | 14 ------------ drivers/net/ice/ice_ethdev.c | 4 ++-- drivers/net/ice/ice_hash.c | 38 ++++++++++++++++----------------- 3 files changed, 21 insertions(+), 35 deletions(-)Quoted 6 lines
Quoted 6 lines
drivers/net/ice/base/ice_flow.c ice_add_rss_cfg_sync(struct ice_hw *hw,
Quoted 6 lines
(quoted diff) +0
-0
b/drivers/net/ice/base/ice_flow.cindexd123206fc6..bceb257d61100644drivers/net/ice/base/ice_flow.c +0
-0@@ -3678,13 +3678,6 @@ ice_add_rss_cfg_sync(struct ice_hw *hw,u16
Quoted 13 lines
Quoted 13 lines
drivers/net/ice/base/ice_flow.c ice_rem_rss_cfg_sync(struct ice_hw *hw,
Quoted 13 lines
drivers/net/ice/base/ice_flow.c +0
-1vsi_handle, if (status) goto exit; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==
ICE_FLOW_SEG_SINGLE&&drivers/net/ice/base/ice_flow.c +0
-5- segs[segs_cnt - 1].hdrs & ICE_FLOW_SEG_HDR_GTPU) { -status =ICE_SUCCESS ; -goto exit; -} -/* Search for a flow profile that has matching headers, hash fields * and has the input VSI associated to it. If found, no further * operations required and exit. @@ -3847,13 +3840,6 @@ ice_rem_rss_cfg_sync(struct ice_hw *hw,u16
Quoted 215 lines
Quoted 202 lines
drivers/net/ice/ice_ethdev.c ice_rss_hash_set(struct ice_pf *pf, uint64_t
Quoted 24 lines
drivers/net/ice/base/ice_flow.c +0
-1vsi_handle, if (status) goto out; -/* Don't do RSS for GTPU Outer */ -if (segs_cnt ==
ICE_FLOW_SEG_SINGLE&&drivers/net/ice/base/ice_flow.c +0
-5- segs[segs_cnt - 1].hdrs & ICE_FLOW_SEG_HDR_GTPU) { -status =ICE_SUCCESS ; -goto out; -} - prof = ice_flow_find_prof_conds(hw, blk, ICE_FLOW_RX, segs,
segs_cnt,vsi_handle,ICE_FLOW_FIND_PROF_CHK_FLDS); diff --gita/drivers/net/ice/ice_ethdev.cb/drivers/net/ice/ice_ethdev.cindex3e85e5f629..4ccf31cb41100644drivers/net/ice/ice_ethdev.c +1
-1@@ -2348,7 +2348,7 @@ hash_cfg_reset(struct ice_rss_hash_cfg *cfg) cfg->hash_flds =0 ; cfg->addl_hdrs =0 ; cfg->symm =0 ; -cfg->hdr_type =ICE_RSS_ANY_HEADERS ; +cfg->hdr_type =ICE_RSS_OUTER_HEADERS ; } static int@@ -2833,7 +2833,7 @@ ice_rss_hash_set(struct ice_pf *pf, uint64_t
rss_hf)Quoted 13 lines
drivers/net/ice/ice_ethdev.c +1
-1__func__, ret); cfg.symm =0 ; -cfg.hdr_type =ICE_RSS_ANY_HEADERS ; +cfg.hdr_type =ICE_RSS_OUTER_HEADERS ; /* Configure RSS for IPv4 with src/dst addr as input set */ if(
rss_hfÐ_RSS_IPV4) { cfg.addl_hdrs =ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER; diff --gita/drivers/net/ice/ice_hash.cb/drivers/net/ice/ice_hash.cindex58a0c18d09..7d7e7052da100644drivers/net/ice/ice_hash.c +0
-0@@ -110,7 +110,7 @@ struct ice_rss_hash_cfg ipv4_tmplt = {Quoted 2 lines
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER,ICE_FLOW_HASH_ETH|
ICE_FLOW_HASH_IPV4,Quoted 8 lines
drivers/net/ice/ice_hash.c +1
-1-ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -118,7 +118,7 @@ struct ice_rss_hash_cfg ipv4_udp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_UDP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_UDP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -126,7 +126,7 @@ struct ice_rss_hash_cfg ipv4_tcp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_TCP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_TCP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -134,7 +134,7 @@ struct ice_rss_hash_cfg ipv4_sctp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV4|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_SCTP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_SCTP_IPV4|ICE_IPV4_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -142,7 +142,7 @@ struct ice_rss_hash_cfg ipv6_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER,ICE_FLOW_HASH_ETH|
ICE_FLOW_HASH_IPV6,Quoted 8 lines
drivers/net/ice/ice_hash.c +1
-1-ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };@@ -150,7 +150,7 @@ struct ice_rss_hash_cfg ipv6_udp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_UDP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_UDP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -158,7 +158,7 @@ struct ice_rss_hash_cfg ipv6_tcp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_TCP,
ICE_FLOW_HASH_ETHQuoted 8 lines
|
ICE_HASH_TCP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -166,7 +166,7 @@ struct ice_rss_hash_cfg ipv6_sctp_tmplt = {
ICE_FLOW_SEG_HDR_ETH|ICE_FLOW_SEG_HDR_IPV6|ICE_FLOW_SEG_HDR_IPV_OTHER|ICE_FLOW_SEG_HDR_SCTP,
ICE_FLOW_HASH_ETHdrivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = { · line 263
Quoted 8 lines
|
ICE_HASH_SCTP_IPV6|ICE_IPV6_PROT, -ICE_RSS_ANY_HEADERS,drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };@@ -262,7 +262,7 @@ struct ice_rss_hash_cfg eth_ipv4_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_ESP, ICE_FLOW_HASH_ESP_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 14 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -270,7 +270,7 @@ struct ice_rss_hash_cfg eth_ipv4_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = { · line 279
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -278,7 +278,7 @@ struct ice_rss_hash_cfg eth_ipv4_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_AH, ICE_FLOW_HASH_AH_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 23 lines
drivers/net/ice/ice_hash.c +3
-2+ICE_RSS_OUTER_HEADERS , 0 };@@ -286,7 +286,7 @@ struct ice_rss_hash_cfg eth_ipv4_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 };@@ -294,7 +294,7 @@ struct ice_rss_hash_cfg eth_ipv4_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV4 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS , 0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = { · line 303
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -302,7 +302,7 @@ struct ice_rss_hash_cfg eth_ipv6_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_ESP, ICE_FLOW_HASH_ESP_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 14 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -310,7 +310,7 @@ struct ice_rss_hash_cfg eth_ipv6_udp_esp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_NAT_T_ESP ,ICE_FLOW_HASH_NAT_T_ESP_SPI , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = { · line 319
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-0@@ -318,7 +318,7 @@ struct ice_rss_hash_cfg eth_ipv6_ah_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER | ICE_FLOW_SEG_HDR_AH, ICE_FLOW_HASH_AH_SPI,-ICE_RSS_ANY_HEADERS,
Quoted 14 lines
drivers/net/ice/ice_hash.c +2
-1+ICE_RSS_OUTER_HEADERS , 0 };@@ -326,7 +326,7 @@ struct ice_rss_hash_cfg eth_ipv6_l2tpv3_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_L2TPV3 ,ICE_FLOW_HASH_L2TPV3_SESS_ID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 };drivers/net/ice/ice_hash.c struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt · line 342
Quoted 10 lines
drivers/net/ice/ice_hash.c +1
-1@@ -334,14 +334,14 @@ struct ice_rss_hash_cfg eth_ipv6_pfcp_tmplt = {ICE_FLOW_SEG_HDR_IPV6 |ICE_FLOW_SEG_HDR_IPV_OTHER |ICE_FLOW_SEG_HDR_PFCP_SESSION ,ICE_FLOW_HASH_PFCP_SEID , -ICE_RSS_ANY_HEADERS , +ICE_RSS_OUTER_HEADERS ,0 }; struct ice_rss_hash_cfg pppoe_tmplt = { ICE_FLOW_SEG_HDR_ETH, ICE_FLOW_HASH_ETH | ICE_FLOW_HASH_PPPOE_SESS_ID,-ICE_RSS_ANY_HEADERS,
Quoted 4 lines
drivers/net/ice/ice_hash.c +1
-0+ICE_RSS_OUTER_HEADERS , 0 };Quoted 6 lines
Quoted 2 lines
drivers/net/ice/ice_hash.c +0
-1--2.26.2
Since PPPOE protocol is a encapsulating network protocol. For IP/UDP or IP/TCP cases, is it right to treat it as outer cases? Here are some doubts.
PPPOE don't have outer l3/l4, it belongs to the same layer with inner l3/l4, for single layer, we just take outer header Typically , inner header will only be used for gtpu/vxlan/gre
Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Thanks,
XuanAcked-by Xuan Ding <[email protected]>
Applied to dpdk-next-net-intel after fix above typo
Thanks
Qi
Quoted 3 lines
Thanks,
Xuan