Skip to contentSkip to conversation

net/ice/base: fix for FDIR QFI offset in GTP protocol

PATCH Applied Qi Zhang 3 participants 3 messages Oct 17, 2019 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/ice/base: fix for FDIR QFI offset in GTP protocol

For the GTP protocol, the QFI offset used by to create the field vector was off by one byte. This patch corrects that offset.

Fixes febb0f877f6e ("net/ice/base: add QFI for flow director")
---
 drivers/net/ice/base/ice_flow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ice/base/ice_flow.c +2 -2
index f4f961167..d2dbb1177 100644
@@ -131,8 +131,8 @@ struct ice_flow_field_info ice_flds_info[ICE_FLOW_FIELD_IDX_MAX] = {
 	ICE_FLOW_FLD_INFO(ICE_FLOW_SEG_HDR_GTPU_EH, 12,
 			  ICE_FLOW_FLD_SZ_GTP_TEID),
 	/* ICE_FLOW_FIELD_IDX_GTPU_EH_QFI */
-	ICE_FLOW_FLD_INFO_MSK(ICE_FLOW_SEG_HDR_GTPU_EH, 20,
-			      ICE_FLOW_FLD_SZ_GTP_QFI, 0x003f),
+	ICE_FLOW_FLD_INFO_MSK(ICE_FLOW_SEG_HDR_GTPU_EH, 22,
+			      ICE_FLOW_FLD_SZ_GTP_QFI, 0x3f00),
 	/* ICE_FLOW_FIELD_IDX_GTPU_UP_TEID */
 	ICE_FLOW_FLD_INFO(ICE_FLOW_SEG_HDR_GTPU_UP, 12,
 			  ICE_FLOW_FLD_SZ_GTP_TEID),
Signature · 1 line
2.13.6
Applied
#1 lore raw
Quoted 30 lines · Qi Zhang

For the GTP protocol, the QFI offset used by to create the field vector was off by one byte. This patch corrects that offset.

Fixes febb0f877f6e ("net/ice/base: add QFI for flow director")

---
drivers/net/ice/base/ice_flow.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ice/base/ice_flow.c +2 -2
index f4f961167..d2dbb1177 100644
@@ -131,8 +131,8 @@ struct ice_flow_field_info ice_flds_info[ICE_FLOW_FIELD_IDX_MAX] = {
 	ICE_FLOW_FLD_INFO(ICE_FLOW_SEG_HDR_GTPU_EH, 12,
 			  ICE_FLOW_FLD_SZ_GTP_TEID),
 	/* ICE_FLOW_FIELD_IDX_GTPU_EH_QFI */
-	ICE_FLOW_FLD_INFO_MSK(ICE_FLOW_SEG_HDR_GTPU_EH, 20,
-			      ICE_FLOW_FLD_SZ_GTP_QFI, 0x003f),
+	ICE_FLOW_FLD_INFO_MSK(ICE_FLOW_SEG_HDR_GTPU_EH, 22,
+			      ICE_FLOW_FLD_SZ_GTP_QFI, 0x3f00),
 	/* ICE_FLOW_FIELD_IDX_GTPU_UP_TEID */
 	ICE_FLOW_FLD_INFO(ICE_FLOW_SEG_HDR_GTPU_UP, 12,
 			  ICE_FLOW_FLD_SZ_GTP_TEID),
Signature · 1 line
2.13.6

Applied to dpdk-next-net-intel.

Thanks,
Xiaolong

#2 lore raw
Quoted 25 lines · Ye Xiaolong
Quoted 24 lines · Qi Zhang

For the GTP protocol, the QFI offset used by to create the field vector was off by one byte. This patch corrects that offset.

Fixes febb0f877f6e ("net/ice/base: add QFI for flow director")

---
drivers/net/ice/base/ice_flow.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ice/base/ice_flow.c +2 -2
index f4f961167..d2dbb1177 100644
@@ -131,8 +131,8 @@ struct ice_flow_field_info ice_flds_info[ICE_FLOW_FIELD_IDX_MAX] = {
 	ICE_FLOW_FLD_INFO(ICE_FLOW_SEG_HDR_GTPU_EH, 12,
 			  ICE_FLOW_FLD_SZ_GTP_TEID),
 	/* ICE_FLOW_FIELD_IDX_GTPU_EH_QFI */
-	ICE_FLOW_FLD_INFO_MSK(ICE_FLOW_SEG_HDR_GTPU_EH, 20,
-			      ICE_FLOW_FLD_SZ_GTP_QFI, 0x003f),
+	ICE_FLOW_FLD_INFO_MSK(ICE_FLOW_SEG_HDR_GTPU_EH, 22,
+			      ICE_FLOW_FLD_SZ_GTP_QFI, 0x3f00),
Quoted 9 lines
Quoted 6 lines
drivers/net/ice/base/ice_flow.c +0 -0
 	/* ICE_FLOW_FIELD_IDX_GTPU_UP_TEID */
 	ICE_FLOW_FLD_INFO(ICE_FLOW_SEG_HDR_GTPU_UP, 12,
 			  ICE_FLOW_FLD_SZ_GTP_TEID),
Signature · 1 line
2.13.6

Applied to dpdk-next-net-intel.

Squashed into relevant commit in next-net, thanks.