net/i40e: fix L2 payload RSS mask input set
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 18 Jun 2021 08:38:21 +0000 (16:38 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 4 Jul 2021 14:57:19 +0000 (16:57 +0200)
Allow VLAN tag being added to L2 payload packet type RSS input set.

Fixes: ef4c16fd9148 ("net/i40e: refactor RSS flow")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_hash.c

index 0cef21c..8787a69 100644 (file)
@@ -201,11 +201,11 @@ struct i40e_hash_match_pattern {
 #define I40E_HASH_MAP_CUS_PATTERN(pattern, rss_mask, cus_pctype) { \
        pattern, rss_mask, true, cus_pctype }
 
-#define I40E_HASH_L2_RSS_MASK          (ETH_RSS_ETH | ETH_RSS_L2_SRC_ONLY | \
+#define I40E_HASH_L2_RSS_MASK          (ETH_RSS_VLAN | ETH_RSS_ETH | \
+                                       ETH_RSS_L2_SRC_ONLY | \
                                        ETH_RSS_L2_DST_ONLY)
 
 #define I40E_HASH_L23_RSS_MASK         (I40E_HASH_L2_RSS_MASK | \
-                                       ETH_RSS_VLAN | \
                                        ETH_RSS_L3_SRC_ONLY | \
                                        ETH_RSS_L3_DST_ONLY)