summaryrefslogtreecommitdiff
path: root/drivers/ptp
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-09-02 12:40:57 +0400
committerDavid S. Miller <davem@davemloft.net>2013-09-04 06:46:57 +0400
commitc92112aed3f0b14fdd2dbd9f192cce1af22c0e1c (patch)
treeee7b35d59a5ab61b295e33087862b381481ed292 /drivers/ptp
parent094afe7d556428a2ce2df0f6a4b333f7ba4d74d5 (diff)
downloadlinux-c92112aed3f0b14fdd2dbd9f192cce1af22c0e1c.tar.xz
vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()
We tend to batch the used adding and signaling in vhost_zerocopy_callback() which may result more than 100 used buffers to be updated in vhost_zerocopy_signal_used() in some cases. So switch to use vhost_add_used_and_signal_n() to avoid multiple calls to vhost_add_used_and_signal(). Which means much less times of used index updating and memory barriers. 2% performance improvement were seen on netperf TCP_RR test. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions