net/ice: fix RSS lookup table initialization
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 8 Jan 2021 07:29:10 +0000 (15:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 17:51:58 +0000 (18:51 +0100)
commit7fe2fde05ac8766afaed4344659e39e8fc6b2514
tree9cebd031f27e5339fd4d7825929c9ddd629397f9
parent653b88893b75cc5d1cd5edcc8eb7813e8dfbb21d
net/ice: fix RSS lookup table initialization

RSS look-up table initialization is done incorrectly due to
divide-by-zero error.
Add a check to rx-queue count.

Fixes: 50370662b727 ("net/ice: support device and queue ops")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Tested-by: Wei Xie <weix.xie@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c