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)
commit3c818910911c93bb5099c6637ec350f90c0e71fc
treed1ab91d4a19e1800813f657a96153c529881fcc9
parentae1e29f671b467f3e9e9aa2b82ee40e4300ea810
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