net: only read from tapfd when we can send
commit3471b757d0ca63a0e8188c4c96acd1c279a8c737
authorMark McLoughlin <markmc@redhat.com>
Wed, 29 Apr 2009 08:50:32 +0000 (29 09:50 +0100)
committerMark McLoughlin <markmc@redhat.com>
Tue, 9 Jun 2009 10:38:49 +0000 (9 11:38 +0100)
treec2987a4b38ff19401395c1f73e17266f0239a6ee
parent2e1e06411095ed122d44bf0e3f5e18e8a6304b16
net: only read from tapfd when we can send

Reduce the number of packets dropped under heavy network
traffic by only reading a packet from the tapfd when a
client can actually handle it.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
net.c