ixgbe: Reset max_vfs to zero when user request is out of range
authorGreg Rose <gregory.v.rose@intel.com>
Tue, 17 Apr 2012 04:29:29 +0000 (04:29 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 2 May 2012 09:12:59 +0000 (02:12 -0700)
commit6b42a9c5b51fa3cf1090037e33d39475f923e4b6
treed0b473a2b0f2cb1cd7982b301f1177809705ff23
parent2ee7065fdd7d3232e4accade2b5cace8af2c7d74
ixgbe: Reset max_vfs to zero when user request is out of range

If the user request for the number of VFs in the max_vfs parameter is
out of range then reset the value to the default value of zero.  This
makes the behavior of the ixgbe driver the same as for the igb driver.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Robert Garrett <robertx.e.garrett@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c