|
@@ -1016,7 +1016,7 @@ static void init_ring(struct net_device *dev)
|
|
|
|
|
|
/* Fill in the Rx buffers. Handle allocation failure gracefully. */
|
|
|
for (i = 0; i < RX_RING_SIZE; i++) {
|
|
|
- struct sk_buff *skb = dev_alloc_skb(np->rx_buf_sz);
|
|
|
+ struct sk_buff *skb = dev_alloc_skb(np->rx_buf_sz + 2);
|
|
|
np->rx_skbuff[i] = skb;
|
|
|
if (skb == NULL)
|
|
|
break;
|
|
@@ -1407,7 +1407,7 @@ static void refill_rx (struct net_device *dev)
|
|
|
struct sk_buff *skb;
|
|
|
entry = np->dirty_rx % RX_RING_SIZE;
|
|
|
if (np->rx_skbuff[entry] == NULL) {
|
|
|
- skb = dev_alloc_skb(np->rx_buf_sz);
|
|
|
+ skb = dev_alloc_skb(np->rx_buf_sz + 2);
|
|
|
np->rx_skbuff[entry] = skb;
|
|
|
if (skb == NULL)
|
|
|
break; /* Better luck next round. */
|