net/ice: fix flow type selection for flow director
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 19 Nov 2019 01:07:02 +0000 (09:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commit6e0fbe16dfc029aeaf6e1250e07f8c7619c87f2b
tree2c8418df874a092a486fa30f2473283ec992f498
parentf078ceb6ae9395f48285850edad41ebc21532de6
net/ice: fix flow type selection for flow director

The FDIR parser will select ICE_FLTR_PTYPE_NONF_IPV4_OTHER as flow type
for an IPv4 UDP flow with empty l4 matching field which is not correct.
Same issues happens on all the combination between IPv4/IPv6 and
UDP/TCP/SCTP cases.

The patch fixes all the wrong flow ptype selections.

Fixes: f5cafa961fae ("net/ice: add flow director create and destroy")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/ice/ice_fdir_filter.c