Skip to contentSkip to conversation

net/ice: fix wrong GTP-U fdir profile

PATCH NAK Qi Zhang 2 participants 3 messages Jan 17, 2020 – Jan 20, 2020 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/ice: fix wrong GTP-U fdir profile

A GTP-U fdir profile should be regarded as a tunnel type, or the profile target to inner IPv4 will also cover inner IPv6 packet type due to some side effect.

Fixes efc16c621415 ("net/ice: support flow director GTPU tunnel")
---
 drivers/net/ice/ice_fdir_filter.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ice/ice_fdir_filter.c +1 -0
index fa8707455..4c5ddfbdb 100644
@@ -987,6 +987,7 @@ ice_fdir_input_set_conf(struct ice_pf *pf, enum ice_fltr_ptype flow,
 		ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_GTPU_EH |
 				       ICE_FLOW_SEG_HDR_GTPU_IP |
 				  ICE_FLOW_SEG_HDR_IPV4);
+		is_tunnel = true;
 		break;
 	default:
 		PMD_DRV_LOG(ERR, "not supported filter type.");
Signature · 1 line
2.13.6
#1 lore raw
Quoted 25 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Friday, January 17, 2020 2:21 PM
To: Cao, Yahui <[email protected]>; Xing, Beilei <[email protected]>
Cc: [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix wrong GTP-U fdir profile

A GTP-U fdir profile should be regarded as a tunnel type, or the profile target to inner IPv4 will also cover inner IPv6 packet type due to some side effect.

Fixes efc16c621415 ("net/ice: support flow director GTPU tunnel")
---
 drivers/net/ice/ice_fdir_filter.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ice/ice_fdir_filter.c +0 -0
index fa8707455..4c5ddfbdb 100644

drivers/net/ice/ice_fdir_filter.c ice_fdir_input_set_conf(struct ice_pf *pf, enum · line 991

Quoted 5 lines
drivers/net/ice/ice_fdir_filter.c +1 -0
@@ -987,6 +987,7 @@ ice_fdir_input_set_conf(struct ice_pf *pf, enum
 ice_fltr_ptype flow,
 		ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_GTPU_EH |
 				       ICE_FLOW_SEG_HDR_GTPU_IP |
 				  ICE_FLOW_SEG_HDR_IPV4);
+		is_tunnel = true;

I think we should fix in ice_fdir_is_tunnel_profile function.

BR,
Beilei

Quoted 5 lines
drivers/net/ice/ice_fdir_filter.c +0 -0
 		break;
 	default:

PMD_DRV_LOG(ERR, "not supported filter type.");
--
2.13.6

author Nacked-by on v1 1/1 NAK
#2 lore raw
In reply to Qi Zhang
Quoted 9 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Friday, January 17, 2020 2:21 PM
To: Cao, Yahui <[email protected]>; Xing, Beilei <[email protected]>
Cc: [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix wrong GTP-U fdir profile

Quoted 8 lines

A GTP-U fdir profile should be regarded as a tunnel type, or the profile target to inner IPv4 will also cover inner IPv6 packet type due to some side effect.

Fixes efc16c621415 ("net/ice: support flow director GTPU tunnel")

https://patches.dpdk.org/patch/64903/
should be the prefer fix.

Quoted 20 lines
---
 drivers/net/ice/ice_fdir_filter.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ice/ice_fdir_filter.c +1 -0
index fa8707455..4c5ddfbdb 100644
@@ -987,6 +987,7 @@ ice_fdir_input_set_conf(struct ice_pf *pf, enum
 ice_fltr_ptype flow,
 		ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_GTPU_EH |
 				       ICE_FLOW_SEG_HDR_GTPU_IP |
 				  ICE_FLOW_SEG_HDR_IPV4);
+		is_tunnel = true;
 		break;
 	default:

PMD_DRV_LOG(ERR, "not supported filter type.");
--
2.13.6