net/ice: fix crash with wrong package
authorSimei Su <simei.su@intel.com>
Thu, 7 Nov 2019 05:47:03 +0000 (13:47 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:05 +0000 (17:36 +0100)
commit6410b1d993acfcb229f5ba0df930b4e20703e4ad
tree1e67b170f3d37af52bbf647c11ada079b066911b
parentfdcf92ed6637b790048f4748f9e012bf25ec539e
net/ice: fix crash with wrong package

This patch fixes core dump issue when entering safe mode with a
wrong ice.pkg. In safe mode, rte_flow is not supported and it
won't initialize any flow engine.

Fixes: 7615a6895009 ("net/ice: rework for generic flow enabling")

Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c