aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r--drivers/net/e1000e/netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 4573c7b9cbd9..b8b26cf78de5 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -3724,7 +3724,7 @@ static int e1000_change_mtu(struct net_device *netdev, int new_mtu)
3724 struct e1000_adapter *adapter = netdev_priv(netdev); 3724 struct e1000_adapter *adapter = netdev_priv(netdev);
3725 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; 3725 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN;
3726 3726
3727 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || 3727 if ((new_mtu < ETH_ZLEN + ETH_FCS_LEN + VLAN_HLEN) ||
3728 (max_frame > MAX_JUMBO_FRAME_SIZE)) { 3728 (max_frame > MAX_JUMBO_FRAME_SIZE)) {
3729 e_err("Invalid MTU setting\n"); 3729 e_err("Invalid MTU setting\n");
3730 return -EINVAL; 3730 return -EINVAL;