net/ice: refactor PF RSS
authorXuan Ding <xuan.ding@intel.com>
Fri, 8 Jan 2021 08:38:44 +0000 (08:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 17:51:57 +0000 (18:51 +0100)
commit38d632cbdc881f8feed28505aad88f58950fde43
treee629ad4184ed90e84974ea8b77c39856e7882849
parentd16331c054c4a7c36e3a16f0268203abaae44da1
net/ice: refactor PF RSS

This patch refactors the PF RSS code based on the below design:
1. ice_pattern_match_item->input_set_mask is the superset of
   ETH_RSS_xxx.
2. ice_pattern_match_item->meta is the ice_rss_hash_cfg template.
3. ice_hash_parse_pattern will generate pattern hint.
4. ice_hash_parse_action will refine the ice_rss_hash_cfg based on
   the pattern hint and rss_type.
5. The refine process includes:
   1)  refine protocol headers(VLAN/PPPOE/GTPU).
   2)  refine hash bit fields of l2, l3, l4.
   3)  refine hash bit fields for gtpu header.

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_hash.c