i40e: check if vectors are already depleted when doing VMDq allocation
authorStefan Assmann <sassmann@kpanic.de>
Mon, 19 Sep 2016 11:37:49 +0000 (13:37 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 4 Oct 2016 02:07:43 +0000 (19:07 -0700)
commit9ca57e97a75780a7f9b8e93e83ab1e36dbfd9846
tree0a5f590b1a7110550b01b8f0451c76acb9b48d52
parentb9118b7221ebb12156d2b08d4d5647bc6076d6bb
i40e: check if vectors are already depleted when doing VMDq allocation

During MSI-X vector allocation for VMDq, a check for "no vectors left"
was missing, add it. This prevents more vectors to be allocated than
available.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
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