Date: Thu, 2 Jun 2016 14:25:10 +0000 (UTC) From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301204 - head/sys/dev/xen/netfront Message-ID: <201606021425.u52EPA4Y016102@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: royger Date: Thu Jun 2 14:25:10 2016 New Revision: 301204 URL: https://svnweb.freebsd.org/changeset/base/301204 Log: 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 Modified: head/sys/dev/xen/netfront/netfront.c Modified: head/sys/dev/xen/netfront/netfront.c ============================================================================== --- head/sys/dev/xen/netfront/netfront.c Thu Jun 2 12:26:55 2016 (r301203) +++ head/sys/dev/xen/netfront/netfront.c Thu Jun 2 14:25:10 2016 (r301204) @@ -1101,8 +1101,8 @@ xn_alloc_rx_buffers(struct netfront_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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606021425.u52EPA4Y016102>