net/ice: refine RSS configure
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 25 Mar 2021 12:42:41 +0000 (20:42 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 30 Mar 2021 05:15:01 +0000 (07:15 +0200)
commitb83d270dff3852f1df0ea9bea5a8740378db0c7c
treef3afff10a1d1f47b64d3c407b3156abfddfec832
parent8b628c22b38f7a81b6cba677aaabd140d8583ae5
net/ice: refine RSS configure

The ICE_RSS_ANY_HEADERS will try to enable outer RSS for
non-tunnel case and inner RSS for tunnel case. This confuse
user.

As we already have ICE_RSS_INNER_HEADER for tunnel case,
So, replace ICE_RSS_ANY_HEADERS with ICE_RSS_OUTER_HEADERS
for all exist flow which only specified the outer pattern.

To enable inner RSS for any tunnel cases, a separated rule
should be enabled.

The patch also remove some unnecessary condition check for GTPU
in base code, as we already can support outer RSS for GTPU.

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