net/ice: fix input set of VLAN item
authorWei Zhao <wei.zhao1@intel.com>
Fri, 3 Apr 2020 04:46:07 +0000 (12:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
The input set for inner type of vlan item should
be ICE_INSET_ETHERTYPE, not ICE_INSET_VLAN_OUTER.
This mac vlan filter is also part of DCF switch filter.

Fixes: 47d460d63233 ("net/ice: rework switch filter")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_switch_filter.c

index 81d069e..686f9c3 100644 (file)
@@ -911,7 +911,7 @@ ice_switch_inset_get(const struct rte_flow_item pattern[],
                                                vlan_spec->inner_type;
                                        list[t].m_u.vlan_hdr.type =
                                                vlan_mask->inner_type;
-                                       input_set |= ICE_INSET_VLAN_OUTER;
+                                       input_set |= ICE_INSET_ETHERTYPE;
                                }
                                t++;
                        }