ixgbe: Avoid Tx hang by not allowing more than the number of VFs supported.
authorUsha Ketineni <usha.k.ketineni@intel.com>
Fri, 23 Dec 2016 18:08:14 +0000 (10:08 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 18 Apr 2017 19:53:52 +0000 (12:53 -0700)
commitb5d8acbb8781269cd4e2b986c9b0b884c0ed836a
tree5ad58d0dab884dc75de02540936bbb6459c64842
parent4116c97689b9b1732ac5b68afd922406f9fc842e
ixgbe: Avoid Tx hang by not allowing more than the number of VFs supported.

When DCB is enabled, add checks to ensure creation of number of VF's is
valid based on the traffic classes configured by the device.

Signed-off-by: Usha Ketineni <usha.k.ketineni@intel.com>
Tested-by: Ronald Bynoe <ronald.j.bynoe@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h