xen-netfront: use callout_reset_curcpu instead of callout_reset

This should help distribute the load of the callbacks.

Suggested by:	hps
Sponsored by:	Citrix Systems R&D
This commit is contained in:
Roger Pau Monné 2016-06-02 14:25:10 +00:00
parent 8cd174a463
commit bf7b50db15

View File

@ -1101,8 +1101,8 @@ xn_alloc_rx_buffers(struct netfront_rxq *rxq)
/* Not enough requests? Try again later. */
if (req_prod - rxq->ring.rsp_cons < NET_RX_SLOTS_MIN) {
callout_reset(&rxq->rx_refill, hz/10, xn_alloc_rx_buffers_callout,
rxq);
callout_reset_curcpu(&rxq->rx_refill, hz/10,
xn_alloc_rx_buffers_callout, rxq);
return;
}