DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ixgbe: fix tunnel filter fail problem
@ 2017-11-17  5:35 Wei Zhao
  2018-01-05  8:38 ` Lu, Wenzhuo
  2018-01-08  3:35 ` [dpdk-dev] [PATCH v2] " Wei Zhao
  0 siblings, 2 replies; 5+ messages in thread
From: Wei Zhao @ 2017-11-17  5:35 UTC (permalink / raw)
  To: dev; +Cc: 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: dc0c16105d2d2 ("ixgbe: fix X550 flow director check")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 drivers/net/ixgbe/ixgbe_fdir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c
index 9281dc1..c117647 100644
--- a/drivers/net/ixgbe/ixgbe_fdir.c
+++ b/drivers/net/ixgbe/ixgbe_fdir.c
@@ -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!");
-- 
2.7.5

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH] net/ixgbe: fix tunnel filter fail problem
  2017-11-17  5:35 [dpdk-dev] [PATCH] net/ixgbe: fix tunnel filter fail problem Wei Zhao
@ 2018-01-05  8:38 ` Lu, Wenzhuo
  2018-01-08  3:35 ` [dpdk-dev] [PATCH v2] " Wei Zhao
  1 sibling, 0 replies; 5+ messages in thread
From: Lu, Wenzhuo @ 2018-01-05  8:38 UTC (permalink / raw)
  To: Zhao1, Wei, dev; +Cc: Zhao1, Wei

Hi Wei,


> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wei Zhao
> Sent: Friday, November 17, 2017 1:36 PM
> To: dev@dpdk.org
> Cc: Zhao1, Wei <wei.zhao1@intel.com>
> 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.

> 
> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] [PATCH v2] net/ixgbe: fix tunnel filter fail problem
  2017-11-17  5:35 [dpdk-dev] [PATCH] net/ixgbe: fix tunnel filter fail problem Wei Zhao
  2018-01-05  8:38 ` Lu, Wenzhuo
@ 2018-01-08  3:35 ` Wei Zhao
  2018-01-08  5:09   ` Lu, Wenzhuo
  1 sibling, 1 reply; 5+ messages in thread
From: Wei Zhao @ 2018-01-08  3:35 UTC (permalink / raw)
  To: dev; +Cc: wenzhuo.lu, 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")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>

---

v2:
-change fix code version hash code.
---
 drivers/net/ixgbe/ixgbe_fdir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c
index 9281dc1..c117647 100644
--- a/drivers/net/ixgbe/ixgbe_fdir.c
+++ b/drivers/net/ixgbe/ixgbe_fdir.c
@@ -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!");
-- 
2.9.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix tunnel filter fail problem
  2018-01-08  3:35 ` [dpdk-dev] [PATCH v2] " Wei Zhao
@ 2018-01-08  5:09   ` Lu, Wenzhuo
  2018-01-08  6:14     ` Zhang, Helin
  0 siblings, 1 reply; 5+ messages in thread
From: Lu, Wenzhuo @ 2018-01-08  5:09 UTC (permalink / raw)
  To: Zhao1, Wei, dev

Hi,

> -----Original Message-----
> From: Zhao1, Wei
> Sent: Monday, January 8, 2018 11:36 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Zhao1, Wei
> <wei.zhao1@intel.com>
> Subject: [PATCH v2] 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: a2ba854ec616b ("net/ixgbe: fix MAC VLAN filter fail problem")
> 
> Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix tunnel filter fail problem
  2018-01-08  5:09   ` Lu, Wenzhuo
@ 2018-01-08  6:14     ` Zhang, Helin
  0 siblings, 0 replies; 5+ messages in thread
From: Zhang, Helin @ 2018-01-08  6:14 UTC (permalink / raw)
  To: Lu, Wenzhuo, Zhao1, Wei, dev



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Lu, Wenzhuo
> Sent: Monday, January 8, 2018 1:09 PM
> To: Zhao1, Wei; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix tunnel filter fail problem
> 
> Hi,
> 
> > -----Original Message-----
> > From: Zhao1, Wei
> > Sent: Monday, January 8, 2018 11:36 AM
> > To: dev@dpdk.org
> > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Zhao1, Wei
> > <wei.zhao1@intel.com>
> > Subject: [PATCH v2] 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: a2ba854ec616b ("net/ixgbe: fix MAC VLAN filter fail problem")
> >
> > Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Applied to dpdk-next-net-intel, thanks!

/Helin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-08  6:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-17  5:35 [dpdk-dev] [PATCH] net/ixgbe: fix tunnel filter fail problem Wei Zhao
2018-01-05  8:38 ` Lu, Wenzhuo
2018-01-08  3:35 ` [dpdk-dev] [PATCH v2] " Wei Zhao
2018-01-08  5:09   ` Lu, Wenzhuo
2018-01-08  6:14     ` Zhang, Helin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).