Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40049
b: refs/heads/master
c: bc3a925
h: refs/heads/master
i:
  40047: c9b9da4
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Oct 19, 2006
1 parent 2463c55 commit 9b01bda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 42952231c6a8623117ee3cc89c82d382dc69ca30
refs/heads/master: bc3a9254a7925b6278f6d882746fe6a0bdf6f610
5 changes: 4 additions & 1 deletion trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -8106,7 +8106,10 @@ static int tg3_set_ringparam(struct net_device *dev, struct ethtool_ringparam *e

if ((ering->rx_pending > TG3_RX_RING_SIZE - 1) ||
(ering->rx_jumbo_pending > TG3_RX_JUMBO_RING_SIZE - 1) ||
(ering->tx_pending > TG3_TX_RING_SIZE - 1))
(ering->tx_pending > TG3_TX_RING_SIZE - 1) ||
(ering->tx_pending <= MAX_SKB_FRAGS) ||
((tp->tg3_flags2 & TG3_FLG2_HW_TSO_1_BUG) &&
(ering->tx_pending <= (MAX_SKB_FRAGS * 3))))
return -EINVAL;

if (netif_running(dev)) {
Expand Down

0 comments on commit 9b01bda

Please sign in to comment.