aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbevf/vf.h
diff options
context:
space:
mode:
authorTony Nguyen <anthony.l.nguyen@intel.com>2016-07-13 10:33:16 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-07-22 01:52:08 -0700
commit6a11e52b6995b07a83a7d50e6301025ca35501be (patch)
tree9d0d92a2b03c8599bfe877e8ed92569771a0f2dd /drivers/net/ethernet/intel/ixgbevf/vf.h
parent6e469ed03ed9b21b0c2dd46f77113a85f3e2bea6 (diff)
downloadkernel_replicant_linux-6a11e52b6995b07a83a7d50e6301025ca35501be.tar.gz
kernel_replicant_linux-6a11e52b6995b07a83a7d50e6301025ca35501be.tar.bz2
kernel_replicant_linux-6a11e52b6995b07a83a7d50e6301025ca35501be.zip
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/vf.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/vf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/vf.h b/drivers/net/ethernet/intel/ixgbevf/vf.h
index e3a0dea3d659..04d8d4ee4f04 100644
--- a/drivers/net/ethernet/intel/ixgbevf/vf.h
+++ b/drivers/net/ethernet/intel/ixgbevf/vf.h
@@ -69,7 +69,7 @@ struct ixgbe_mac_operations {
s32 (*disable_mc)(struct ixgbe_hw *);
s32 (*clear_vfta)(struct ixgbe_hw *);
s32 (*set_vfta)(struct ixgbe_hw *, u32, u32, bool);
- void (*set_rlpml)(struct ixgbe_hw *, u16);
+ s32 (*set_rlpml)(struct ixgbe_hw *, u16);
};
enum ixgbe_mac_type {