]> 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)
commit8f1730bd5e2be7d91c0ae18dddf2d978434cd787
tree1e40a93205813f2996bb874301dabdc3d1fb0506
parentd2c98029c6869170b29a7b004666d2e7f451fc35
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