]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: avoid divide by zero
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 18 Dec 2017 10:15:25 +0000 (05:15 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 23 Jan 2018 19:29:19 +0000 (11:29 -0800)
commit2a1b3ce739195a683da0f2069fc70ac55d0cb7e2
treeb88a09d8ddcff0b3c0b3d1933be1776d07aac101
parenta89c350bc266ec50d71c1bd7b3519ee50ba9b0d8
i40e: avoid divide by zero

In some weird circumstances with DCB enabled, the firmware can fail to
configure the VSI, leaving us with zero traffic classes. Check for this
state when we configure RSS to avoid a panic.

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