i40e: clamp jumbo frame size
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 23 Apr 2014 04:50:05 +0000 (04:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 5 Jun 2014 08:58:31 +0000 (01:58 -0700)
commit61a46a4c079bc48f8b1c91d13436c71303dc1335
tree221b169e6cb190e456f28f9a764802ba8341b71b
parentd0277054ac9f0ddc420ad2f170a4f35baa909e48
i40e: clamp jumbo frame size

The driver was allowing the user to set larger size MTU
than the hardware was being configured to support.

The driver was already using VLAN_HLEN when setting the
hardware max receivable frame size, so just add it to the
netdev MTU set entry point as well.

Change-ID: Ie20e2a35d04f8c411253e255bea79ca69aaeaea3
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c