|
@@ -321,7 +321,7 @@ static void xennet_alloc_rx_buffers(struct netfront_queue *queue)
|
|
queue->rx.req_prod_pvt = req_prod;
|
|
queue->rx.req_prod_pvt = req_prod;
|
|
|
|
|
|
/* Not enough requests? Try again later. */
|
|
/* Not enough requests? Try again later. */
|
|
- if (req_prod - queue->rx.rsp_cons < NET_RX_SLOTS_MIN) {
|
|
|
|
|
|
+ if (req_prod - queue->rx.sring->req_prod < NET_RX_SLOTS_MIN) {
|
|
mod_timer(&queue->rx_refill_timer, jiffies + (HZ/10));
|
|
mod_timer(&queue->rx_refill_timer, jiffies + (HZ/10));
|
|
return;
|
|
return;
|
|
}
|
|
}
|