summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorJason Wang2013-09-02 10:41:01 +0200
committerDavid S. Miller2013-09-04 04:46:58 +0200
commitf7c6be404d8fa52c54ff931390aab01e5c7654d6 (patch)
treef2ff95e8a480a9d0a4442a2f8c1851432614a5fe /drivers/net/bonding/bond_main.c
parentvhost_net: poll vhost queue after marking DMA is done (diff)
downloadkernel-qcow2-linux-f7c6be404d8fa52c54ff931390aab01e5c7654d6.tar.gz
kernel-qcow2-linux-f7c6be404d8fa52c54ff931390aab01e5c7654d6.tar.xz
kernel-qcow2-linux-f7c6be404d8fa52c54ff931390aab01e5c7654d6.zip
vhost_net: correctly limit the max pending buffers
As Michael point out, We used to limit the max pending DMAs to get better cache utilization. But it was not done correctly since it was one done when there's no new buffers submitted from guest. Guest can easily exceeds the limitation by keeping sending packets. So this patch moves the check into main loop. Tests shows about 5%-10% improvement on per cpu throughput for guest tx. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
0 files changed, 0 insertions, 0 deletions