]> git.itanic.dy.fi Git - linux-stable/commit
i40e: add num_vectors checker in iwarp handler
authorSergey Nemov <sergey.nemov@intel.com>
Fri, 29 Mar 2019 22:08:36 +0000 (15:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 5 May 2019 00:21:07 +0000 (17:21 -0700)
commit7015ca3df965378bcef072cca9cd63ed098665b5
treefde6fa92bb47caed75bdf9f027648c4b3df68f1e
parent1aa874b42ee8958c737e282ebcf87f653b6c80dc
i40e: add num_vectors checker in iwarp handler

Field num_vectors from struct virtchnl_iwarp_qvlist_info should not be
larger than num_msix_vectors_vf in the hw struct.  The iwarp uses the
same set of vectors as the LAN VF driver.

Signed-off-by: Sergey Nemov <sergey.nemov@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_virtchnl_pf.c