diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2008-09-11 22:56:28 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:54:51 -0400 |
commit | 42c783c5b1b755ae2ab2dec720ad58ffc2257a60 (patch) | |
tree | 5a6960af294aab7a9a08145836944e7f58ee7b46 /drivers/net/ixgbe/ixgbe_main.c | |
parent | f47cf66e9cc778d21533c681e89b4034ed2d8666 (diff) |
ixgbe: limit small mtu to minimum for ipv4 support
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index cfaa3ca28f5..2c8895e9dae 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -2839,8 +2839,8 @@ static int ixgbe_change_mtu(struct net_device *netdev, int new_mtu) | |||
2839 | struct ixgbe_adapter *adapter = netdev_priv(netdev); | 2839 | struct ixgbe_adapter *adapter = netdev_priv(netdev); |
2840 | int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; | 2840 | int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; |
2841 | 2841 | ||
2842 | if ((max_frame < (ETH_ZLEN + ETH_FCS_LEN)) || | 2842 | /* MTU < 68 is an error and causes problems on some kernels */ |
2843 | (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE)) | 2843 | if ((new_mtu < 68) || (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE)) |
2844 | return -EINVAL; | 2844 | return -EINVAL; |
2845 | 2845 | ||
2846 | DPRINTK(PROBE, INFO, "changing MTU from %d to %d\n", | 2846 | DPRINTK(PROBE, INFO, "changing MTU from %d to %d\n", |