diff options
| author | Jason Wang <jasowang@redhat.com> | 2016-06-01 01:56:33 -0400 |
|---|---|---|
| committer | Alistair Strachan <astrachan@google.com> | 2019-05-14 17:56:55 -0700 |
| commit | 1f1f6576f3b58668e9f55bc309c58beee97bfb42 (patch) | |
| tree | 5325f9c49ce4cb2fdbafae7a7e39d9d202732296 /lib/dma-debug.c | |
| parent | f8b9e1a37bcc1f80f05e3442b832579416ca32f7 (diff) | |
UPSTREAM: vhost_net: stop polling socket during rx processing
We don't stop rx polling socket during rx processing, this will lead
unnecessary wakeups from under layer net devices (E.g
sock_def_readable() form tun). Rx will be slowed down in this
way. This patch avoids this by stop polling socket during rx
processing. A small drawback is that this introduces some overheads in
light load case because of the extra start/stop polling, but single
netperf TCP_RR does not notice any change. In a super heavy load case,
e.g using pktgen to inject packet to guest, we get about ~8.8%
improvement on pps:
before: ~1240000 pkt/s
after: ~1350000 pkt/s
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 8241a1e466cd56e6c10472cac9c1ad4e54bc65db)
Bug: 121166534
Test: Ran cuttlefish with android-4.4 + VSOCKETS, VMWARE_VMCI_VSOCKETS
Signed-off-by: Alistair Strachan <astrachan@google.com>
Change-Id: Ia51c61a6c1976b6f6406342f369ffc365d964078
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
