net/ice: fix queue config in DCF
authorJie Wang <jie1x.wang@intel.com>
Tue, 24 Aug 2021 15:13:17 +0000 (15:13 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 29 Aug 2021 13:12:59 +0000 (15:12 +0200)
commit415363e2fc58ad89caf65d3d170b004751376f1a
tree0a752ca262d58833fcf595ff80593861151f30bb
parent22db014997c68928711e5b9e948ac3986ec1ed58
net/ice: fix queue config in DCF

When DCF configures rx_queues, it may cause the pointer of
rx_queues to go out of bounds.

This patch expands the scope of the judgment condition to
fix this issue.

Fixes: 4b0d391f0eab ("net/ice: add queue config in DCF")
Cc: stable@dpdk.org
Signed-off-by: Jie Wang <jie1x.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf.c