Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111846
b: refs/heads/master
c: 42c783c
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Garzik committed Sep 24, 2008
1 parent 096dd78 commit f9682ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f47cf66e9cc778d21533c681e89b4034ed2d8666
refs/heads/master: 42c783c5b1b755ae2ab2dec720ad58ffc2257a60
4 changes: 2 additions & 2 deletions trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2839,8 +2839,8 @@ static int ixgbe_change_mtu(struct net_device *netdev, int new_mtu)
struct ixgbe_adapter *adapter = netdev_priv(netdev);
int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN;

if ((max_frame < (ETH_ZLEN + ETH_FCS_LEN)) ||
(max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE))
/* MTU < 68 is an error and causes problems on some kernels */
if ((new_mtu < 68) || (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE))
return -EINVAL;

DPRINTK(PROBE, INFO, "changing MTU from %d to %d\n",
Expand Down

0 comments on commit f9682ce

Please sign in to comment.