]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Do not enable NAPI on q_vectors that have no rings
authorYoung Xiao <YangX92@hotmail.com>
Thu, 29 Nov 2018 01:54:10 +0000 (01:54 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Dec 2018 20:10:24 +0000 (12:10 -0800)
commit42b2fe168417620b1315ecce20538fbe0e1ff342
treea66c23f6291de14f18a141fd6e315b1c98255330
parentba0301f15d5d039c2db6385ed9c7e4198799d858
ice: Do not enable NAPI on q_vectors that have no rings

If ice driver has q_vectors w/ active NAPI that has no rings,
then this will result in a divide by zero error. To correct it
I am updating the driver code so that we only support NAPI on
q_vectors that have 1 or more rings allocated to them.

See commit 998391390f07 ("i40e: Do not enable NAPI on q_vectors
that have no rings") for detail.

Signed-off-by: Young Xiao <YangX92@hotmail.com>
Acked-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c