Skip to contentSkip to conversation

net/ixgbe: fix tunnel filter fail problem

PATCH Superseded Wei Zhao 3 participants 5 messages Nov 17, 2017 – Jan 8, 2018 Network drivers

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

PATCH 1/1 net/ixgbe: fix tunnel filter fail problem

Add a mode type check for tunnel mode, if fdir is in this mode, it do not need to do Sanity check for x550.

Fixes dc0c16105d2d2 ("ixgbe: fix X550 flow director check")
---
 drivers/net/ixgbe/ixgbe_fdir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_fdir.c +2 -1
index 9281dc1..c117647 100644
@@ -1277,7 +1277,8 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev,
 	     IXGBE_ATR_FLOW_TYPE_IPV6) &&
 	    (info->mask.src_port_mask != 0 ||
 	     info->mask.dst_port_mask != 0) &&
-	     rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN) {
+	    (rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN &&
+	     rule->mode != RTE_FDIR_MODE_PERFECT_TUNNEL)) {
 		PMD_DRV_LOG(ERR, "By this device,"
 			    " IPv4 is not supported without"
 			    " L4 protocol and ports masked!");
Signature · 1 line
2.7.5
#1 lore raw

Hi Wei,

Quoted 11 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wei Zhao
Sent: Friday, November 17, 2017 1:36 PM
To: [email protected]
Cc: Zhao1, Wei <[email protected]>
Subject: [dpdk-dev] [PATCH] net/ixgbe: fix tunnel filter fail problem

Add a mode type check for tunnel mode, if fdir is in this mode, it do not need to do Sanity check for x550.

Fixes dc0c16105d2d2 ("ixgbe: fix X550 flow director check")

The patch is good, but seems the fixes tag is not right. This fix should be for some patch newer than this one.

Quoted 2 lines
author
#2 lore raw

PATCH v2 1/1 net/ixgbe: fix tunnel filter fail problem

In reply to Wei Zhao

Add a mode type check for tunnel mode, if fdir is in this mode, it do not need to do Sanity check for x550.

Fixes a2ba854ec616b ("net/ixgbe: fix MAC VLAN filter fail problem")

---

v2:
-change fix code version hash code.

---
 drivers/net/ixgbe/ixgbe_fdir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_fdir.c +2 -1
index 9281dc1..c117647 100644
@@ -1277,7 +1277,8 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev,
 	     IXGBE_ATR_FLOW_TYPE_IPV6) &&
 	    (info->mask.src_port_mask != 0 ||
 	     info->mask.dst_port_mask != 0) &&
-	     rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN) {
+	    (rule->mode != RTE_FDIR_MODE_PERFECT_MAC_VLAN &&
+	     rule->mode != RTE_FDIR_MODE_PERFECT_TUNNEL)) {
 		PMD_DRV_LOG(ERR, "By this device,"
 			    " IPv4 is not supported without"
 			    " L4 protocol and ports masked!");
Signature · 1 line
2.9.3
Acked-by on v2 1/1
#3 lore raw

Hi,

Quoted 8 lines

-----Original Message-----
From: Zhao1, Wei
Sent: Monday, January 8, 2018 11:36 AM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH v2] net/ixgbe: fix tunnel filter fail problem

Quoted 6 lines

Add a mode type check for tunnel mode, if fdir is in this mode, it do not need to do Sanity check for x550.

Fixes a2ba854ec616b ("net/ixgbe: fix MAC VLAN filter fail problem")
Applied
#4 lore raw
Quoted 18 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Lu, Wenzhuo
Sent: Monday, January 8, 2018 1:09 PM
To: Zhao1, Wei; [email protected]
Subject: Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix tunnel filter fail problem

Hi,

Quoted 8 lines

-----Original Message-----
From: Zhao1, Wei
Sent: Monday, January 8, 2018 11:36 AM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH v2] net/ixgbe: fix tunnel filter fail problem

Quoted 7 lines
Quoted 6 lines

Add a mode type check for tunnel mode, if fdir is in this mode, it do not need to do Sanity check for x550.

Fixes a2ba854ec616b ("net/ixgbe: fix MAC VLAN filter fail problem")

Applied to dpdk-next-net-intel, thanks!

/Helin