]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54e18e336c29e745e1e8ee1562a1a8d113b6bbfa
tree1e40a93205813f2996bb874301dabdc3d1fb0506
parentaba9933b00c4f12d21c0e8a9fe289043b0052c41
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