From db02c59e704eaa14a2da71b14b04e6c258bba7d9 Mon Sep 17 00:00:00 2001 From: royger Date: Thu, 2 Jun 2016 14:25:10 +0000 Subject: 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 --- sys/dev/xen/netfront/netfront.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/xen/netfront/netfront.c') diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index 28b3fc3..d28f656 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -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; } -- cgit v1.1