]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:50 +0000 (21:47 -0800)
commitd268d4037a4c5a91bcaebe5fe891c90676b726d6
treead249689a9a9dcc717af41b0e58f566cbe769ed3
parenta43d7ba06d5497bc1e17ca907fe048c4d3d31163
ixgbevf: Add range checking for setting MTU

Orabug: 24568240

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>
(cherry picked from commit 6a11e52b6995b07a83a7d50e6301025ca35501be)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.c
drivers/net/ethernet/intel/ixgbevf/vf.h