igb: Allow asymmetric configuration of MTU versus Rx frame size
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 7 Jan 2016 07:10:39 +0000 (23:10 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Feb 2016 00:27:21 +0000 (16:27 -0800)
commit45693bcb00cbd379c373ab22ccd9a9d4755cc7ed
tree1e40a93205813f2996bb874301dabdc3d1fb0506
parent832e821c51e381966464c8a0f30f12eb1514eba0
igb: Allow asymmetric configuration of MTU versus Rx frame size

Since the igb driver is using page based receive there is no point in
limiting the Rx capabilities of the device.  The driver can receive 9K
jumbo frames at all times.  The only changes needed due to MTU changes are
updates for the FIFO sizes and flow-control watermarks.

Update the maximum frame size to reflect the 9.5K limitation of the
hardware, and replace all instances of max_frame_size with
MAX_JUMBO_FRAME_SIZE when referring to an Rx FIFO or frame.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_defines.h
drivers/net/ethernet/intel/igb/igb_main.c