]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: Validate the number of queues a PF sends
authorPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Mon, 20 Aug 2018 15:12:29 +0000 (08:12 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 30 Aug 2018 20:53:04 +0000 (13:53 -0700)
commit4deb921014b638c4bfb86d474778e3ee61b19b81
treed1ab91d4a19e1800813f657a96153c529881fcc9
parentd134c61b2dd4261ad49d8bf21121ffd33c12a562
i40evf: Validate the number of queues a PF sends

A PF can send any number of queues to the VF and the VF may not
be able to support that many. Check to see that the number of
queues is less than or equal to the max number of queues the
VF can have.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c