i40e: complain about out-of-range descriptor request
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 20 Nov 2013 10:03:08 +0000 (10:03 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 10 Dec 2013 09:27:30 +0000 (01:27 -0800)
commit1fa18370e4cd88669f2d1569d314b05f45b3538e
treeda98eb3a65076f8a6a178f76ec60b574b10a5d08
parent639dc3777f2539183d6d1e0d84c992cedff598be
i40e: complain about out-of-range descriptor request

Instead of silently clamping the descriptor change request into
the proper range, fail the request and complain in the log file.

Change-Id: Id55ef59255d93c04bedffa8e25fe7ea796c90f32
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c