Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214906
b: refs/heads/master
c: 0bd9e6a
h: refs/heads/master
v: v3
  • Loading branch information
Sritej Velaga authored and David S. Miller committed Oct 5, 2010
1 parent 24cafc5 commit a1bb056
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: aef3d898276e046bfa877cd20b8ee269b85161cd
refs/heads/master: 0bd9e6a964d86a19f54a9ba31168a37d64e451d1
1 change: 1 addition & 0 deletions trunk/drivers/net/qlcnic/qlcnic.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
#define FIRST_PAGE_GROUP_END 0x100000

#define P3_MAX_MTU (9600)
#define P3_MIN_MTU (68)
#define QLCNIC_MAX_ETHERHDR 32 /* This contains some padding */

#define QLCNIC_P3_RX_BUF_MAX_LEN (QLCNIC_MAX_ETHERHDR + ETH_DATA_LEN)
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/qlcnic/qlcnic_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,9 @@ int qlcnic_change_mtu(struct net_device *netdev, int mtu)
struct qlcnic_adapter *adapter = netdev_priv(netdev);
int rc = 0;

if (mtu > P3_MAX_MTU) {
dev_err(&adapter->netdev->dev, "mtu > %d bytes unsupported\n",
P3_MAX_MTU);
if (mtu < P3_MIN_MTU || mtu > P3_MAX_MTU) {
dev_err(&adapter->netdev->dev, "%d bytes < mtu < %d bytes"
" not supported\n", P3_MAX_MTU, P3_MIN_MTU);
return -EINVAL;
}

Expand Down

0 comments on commit a1bb056

Please sign in to comment.