Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21244
b: refs/heads/master
c: 0989aa4
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Kirsher authored and root committed Mar 3, 2006
1 parent 5b6b3e8 commit d73eec1
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9f644d518f35903ecaff062d6e9e4f7080d80cfb
refs/heads/master: 0989aa431636ffb347314f0e2f367fdd16d7a57f
6 changes: 3 additions & 3 deletions trunk/drivers/net/e1000/e1000_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,9 @@ e1000_set_ringparam(struct net_device *netdev,
struct e1000_rx_ring *rxdr, *rx_old, *rx_new;
int i, err, tx_ring_size, rx_ring_size;

if ((ring->rx_mini_pending) || (ring->rx_jumbo_pending))
return -EINVAL;

tx_ring_size = sizeof(struct e1000_tx_ring) * adapter->num_tx_queues;
rx_ring_size = sizeof(struct e1000_rx_ring) * adapter->num_rx_queues;

Expand Down Expand Up @@ -661,9 +664,6 @@ e1000_set_ringparam(struct net_device *netdev,
txdr = adapter->tx_ring;
rxdr = adapter->rx_ring;

if ((ring->rx_mini_pending) || (ring->rx_jumbo_pending))
return -EINVAL;

rxdr->count = max(ring->rx_pending,(uint32_t)E1000_MIN_RXD);
rxdr->count = min(rxdr->count,(uint32_t)(mac_type < e1000_82544 ?
E1000_MAX_RXD : E1000_MAX_82544_RXD));
Expand Down

0 comments on commit d73eec1

Please sign in to comment.