From ec732d933d05a4cb91c71ee318350b18aef427d5 Mon Sep 17 00:00:00 2001 From: Yuying Zhang Date: Thu, 4 Feb 2021 06:07:51 +0000 Subject: [PATCH] net/ice: fix QinQ switch rule input set mask QinQ switch rule doesn't support ethertype field match. QinQ ethertype pattern should not be created. Change the input set mask to fix the issue. Fixes: bb3386f348dd ("net/ice: enable QinQ filter for switch") Signed-off-by: Yuying Zhang Acked-by: Qi Zhang --- drivers/net/ice/ice_switch_filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 5ca0985e21..6525e6c115 100644 --- a/drivers/net/ice/ice_switch_filter.c +++ b/drivers/net/ice/ice_switch_filter.c @@ -38,7 +38,8 @@ ICE_INSET_DMAC | ICE_INSET_SMAC | ICE_INSET_ETHERTYPE | \ ICE_INSET_VLAN_INNER) #define ICE_SW_INSET_MAC_QINQ ( \ - ICE_SW_INSET_MAC_VLAN | ICE_INSET_VLAN_OUTER) + ICE_INSET_DMAC | ICE_INSET_SMAC | ICE_INSET_VLAN_INNER | \ + ICE_INSET_VLAN_OUTER) #define ICE_SW_INSET_MAC_IPV4 ( \ ICE_INSET_DMAC | ICE_INSET_IPV4_DST | ICE_INSET_IPV4_SRC | \ ICE_INSET_IPV4_PROTO | ICE_INSET_IPV4_TTL | ICE_INSET_IPV4_TOS) -- 2.20.1