i40e: don't configure zero-size RSS table
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 12 Sep 2016 21:18:43 +0000 (14:18 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 25 Sep 2016 05:50:05 +0000 (22:50 -0700)
commita4fa59cc5bb028ebb8048e8dcb6f92b2a1ea07f6
tree5f63446a5142d39d7707bacff267d89fd235ebdb
parent1eb846ac90b956e52f4269d80f13cfbe1df6850b
i40e: don't configure zero-size RSS table

In some rare cases, we might get a VSI with no queues. In this case, we
cannot configure RSS on this VSI as it will try to divide by zero when
configuring the lookup table.

Change-ID: I6ae173a7dd3481a081e079eb10eb80275de2adb0
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c