commit | 1f7babf6d5ca24460694556d617cd17ae8be2ed4 | [log] [tgz] |
---|---|---|
author | Mark McLoughlin <markmc@redhat.com> | Thu Jun 18 18:21:32 2009 +0100 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Mon Jun 22 10:15:30 2009 -0500 |
tree | 50f9190ebc04eba36802a8f56f321197a4f613cc | |
parent | b664e3673c6c2ca228ce025292e32b34f73df5f5 [diff] |
net: handle EAGAIN from tapfd write() If a write() on tapfd returns EAGAIN, return zero so that the packet gets queued (in the case of async send) and enable polling tapfd for writing. When tapfd becomes writable, disable write polling and flush any queued packets. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>