net/ice: fix crash in switch filter
authorJunyu Jiang <junyux.jiang@intel.com>
Wed, 6 May 2020 03:05:25 +0000 (03:05 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit1f8672be4208e897e0d1004f43dadcac80749f68
tree2206792034c07f27d6cfdfcabc7e0b387d4cb78f
parent0f664f7d57268f9ab9bdef95f0d48b3ce5004a61
net/ice: fix crash in switch filter

The number of queues in queue group should be checked before
using it. This patch fixed the issue.

Fixes: 47d460d63233 ("net/ice: rework switch filter")
Cc: stable@dpdk.org
Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>
Tested-by: Qimai Xiao <qimaix.xiao@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/ice_switch_filter.c