net/ice: fix DCF crash on Rx
authorHaiyue Wang <haiyue.wang@intel.com>
Thu, 29 Oct 2020 01:13:22 +0000 (09:13 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:02 +0000 (23:35 +0100)
commit98a181ed865db0880be3c12a72772a649417d707
tree9717ca319aff4429dfa9196cc333b77135c3fde2
parenta2bfb911d09506eb8d170b96f30a10dc58ae3687
net/ice: fix DCF crash on Rx

The initialization of selecting the handler for scalar Rx path FlexiMD
fields extraction into mbuf is missed, it will cause segmentation fault
(core dumped).

Also add the missed support to handle RXDID 16, which has RSS hash value
on Qword 1.

Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling")
Cc: stable@dpdk.org
Reported-by: Alvin Zhang <alvinx.zhang@intel.com>
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf.c
drivers/net/ice/ice_rxtx.c
drivers/net/ice/ice_rxtx.h