diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-27 01:37:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-27 01:37:05 -0500 |
commit | 17f7f4d9fcce8f1b75b5f735569309dee7665968 (patch) | |
tree | 14d7e49ca0053a0fcab3c33b5023bf3f90c5c08a /drivers/net/sundance.c | |
parent | 041110a439e21cd40709ead4ffbfa8034619ad77 (diff) | |
parent | d7c1255a3a21e98bdc64df8ccf005a174d7e6289 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
net/ipv4/fib_frontend.c
Diffstat (limited to 'drivers/net/sundance.c')
-rw-r--r-- | drivers/net/sundance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c index e5662962c7bf..4793df843c24 100644 --- a/drivers/net/sundance.c +++ b/drivers/net/sundance.c | |||
@@ -1020,7 +1020,7 @@ static void init_ring(struct net_device *dev) | |||
1020 | 1020 | ||
1021 | /* Fill in the Rx buffers. Handle allocation failure gracefully. */ | 1021 | /* Fill in the Rx buffers. Handle allocation failure gracefully. */ |
1022 | for (i = 0; i < RX_RING_SIZE; i++) { | 1022 | for (i = 0; i < RX_RING_SIZE; i++) { |
1023 | struct sk_buff *skb = dev_alloc_skb(np->rx_buf_sz); | 1023 | struct sk_buff *skb = dev_alloc_skb(np->rx_buf_sz + 2); |
1024 | np->rx_skbuff[i] = skb; | 1024 | np->rx_skbuff[i] = skb; |
1025 | if (skb == NULL) | 1025 | if (skb == NULL) |
1026 | break; | 1026 | break; |
@@ -1411,7 +1411,7 @@ static void refill_rx (struct net_device *dev) | |||
1411 | struct sk_buff *skb; | 1411 | struct sk_buff *skb; |
1412 | entry = np->dirty_rx % RX_RING_SIZE; | 1412 | entry = np->dirty_rx % RX_RING_SIZE; |
1413 | if (np->rx_skbuff[entry] == NULL) { | 1413 | if (np->rx_skbuff[entry] == NULL) { |
1414 | skb = dev_alloc_skb(np->rx_buf_sz); | 1414 | skb = dev_alloc_skb(np->rx_buf_sz + 2); |
1415 | np->rx_skbuff[entry] = skb; | 1415 | np->rx_skbuff[entry] = skb; |
1416 | if (skb == NULL) | 1416 | if (skb == NULL) |
1417 | break; /* Better luck next round. */ | 1417 | break; /* Better luck next round. */ |