diff options
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index d85e66979711..e59acb1daa23 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -277,12 +277,13 @@ static void xennet_alloc_rx_buffers(struct net_device *dev) | |||
277 | if (!page) { | 277 | if (!page) { |
278 | kfree_skb(skb); | 278 | kfree_skb(skb); |
279 | no_skb: | 279 | no_skb: |
280 | /* Any skbuffs queued for refill? Force them out. */ | ||
281 | if (i != 0) | ||
282 | goto refill; | ||
283 | /* Could not allocate any skbuffs. Try again later. */ | 280 | /* Could not allocate any skbuffs. Try again later. */ |
284 | mod_timer(&np->rx_refill_timer, | 281 | mod_timer(&np->rx_refill_timer, |
285 | jiffies + (HZ/10)); | 282 | jiffies + (HZ/10)); |
283 | |||
284 | /* Any skbuffs queued for refill? Force them out. */ | ||
285 | if (i != 0) | ||
286 | goto refill; | ||
286 | break; | 287 | break; |
287 | } | 288 | } |
288 | 289 | ||