ixgbevf: Add range checking for setting MTU
authorTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 13 Jul 2016 17:33:16 +0000 (10:33 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Jul 2016 08:52:08 +0000 (01:52 -0700)
commit6a11e52b6995b07a83a7d50e6301025ca35501be
tree9d0d92a2b03c8599bfe877e8ed92569771a0f2dd
parent6e469ed03ed9b21b0c2dd46f77113a85f3e2bea6
ixgbevf: Add range checking for setting MTU

Currently when setting the VF's MTU, the PF can return a NACK but this
isn't passed on to the VF.  Propagate the results from the PF to the VF
so errors can be reported.

In ixgbevf_change_mtu, return an error and reject the change.

For ixgbevf_configure_rx, log the error for debugging purposes since
the function is buried in a series of Rx config routines that are void.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.c
drivers/net/ethernet/intel/ixgbevf/vf.h