summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroyger <royger@FreeBSD.org>2016-06-02 14:25:10 +0000
committerroyger <royger@FreeBSD.org>2016-06-02 14:25:10 +0000
commitdb02c59e704eaa14a2da71b14b04e6c258bba7d9 (patch)
treeb263df0238b1c1d4ca29382eed6346227dfecf4a
parent41775010b2094c86fd68e31d0ee5f61c9f94dcf1 (diff)
downloadFreeBSD-src-db02c59e704eaa14a2da71b14b04e6c258bba7d9.zip
FreeBSD-src-db02c59e704eaa14a2da71b14b04e6c258bba7d9.tar.gz
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
-rw-r--r--sys/dev/xen/netfront/netfront.c4
1 files changed, 2 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud