net/ice: fix IP RSS configuration template
authorTing Xu <ting.xu@intel.com>
Sat, 8 May 2021 07:11:47 +0000 (15:11 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 10 May 2021 02:58:55 +0000 (04:58 +0200)
commit664b8eb745b9b6249231cea2f2bc6ff4d4b6bc40
tree4aafb7c524ae32a3568d7f1b9c4beff81aad64a6
parent34ca5367d72fa7659f5c3ddaf895a278a611d09e
net/ice: fix IP RSS configuration template

To enable IP fragment RSS hash, ICE_FLOW_SEG_HDR_IPV_FRAG is added to the
IP RSS configuration template, together with ICE_FLOW_SEG_HDR_IPV_OTHER.
It will cause error when associating flow profile. And packet id field
for RSS is not correctly added when IP fragment is enabled. To fix this
issue, this patch only selects one of the above two segment header types
based on RSS types.

Fixes: f1ea76eb6394 ("net/ice: support RSS hash for IP fragment")
Cc: stable@dpdk.org
Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_hash.c