From bf7b50db15c53a3ea85f861c66d6a2bbc0d2c9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Date: Thu, 2 Jun 2016 14:25:10 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index 28b3fc31cae9..d28f656c84c8 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; }