From: Jason Wang Date: Wed, 23 Jul 2014 08:33:55 +0000 (+0800) Subject: virtio-net: rx busy polling support X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~96^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91815639d8804d1eee7ce2e1f7f60b36771db2c9;p=pandora-kernel.git virtio-net: rx busy polling support Add basic support for rx busy polling. Instead of introducing new states and spinlock to synchronize between NAPI and polling method, this patch just reuse NAPI state to avoid extra overhead for fast path and simplified the codes. Test was done between a kvm guest and an external host. Two hosts were connected through 40gb mlx4 cards. With both busy_poll and busy_read are set to 50 in guest, 1 byte netperf tcp_rr shows 127% improvement: transaction rate was increased from 8353.33 to 18966.87. Cc: Rusty Russell Cc: Michael S. Tsirkin Cc: Vlad Yasevich Cc: Eric Dumazet Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed