diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-02-07 03:10:22 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-02-07 03:14:15 +0100 |
commit | d683da41fcfefcc8ba63b1fa1ab8af5b3078183f (patch) | |
tree | 71946d432df8c57ecf9db37f70ccf7a5a71066e1 /xen/block.c | |
parent | db05cfc30a3e816e98c34ee5f2c386ec989594bf (diff) |
Add rx-copy support to netfront
* xen/net.c (net_data): Add rx_copy field.
(enqueue_rx_buf): When rx_copy != 0, give grant on buffer to domD instead of
issuing a transfer from domD.
(hyp_net_intr): When rx_copy != 0, take back grant on buffer instead of
finishing transfer. Do not panic on packet error, free kmsg on error.
(hyp_net_init): Check for feature-rx-copy in backend, write 1 to
request-rx-copy in such case. Wait for Connected state before continuing.
Only unmap buffer when rx_copy is 0.
Diffstat (limited to 'xen/block.c')
0 files changed, 0 insertions, 0 deletions