diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-30 10:47:05 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-30 10:47:05 +0100 |
commit | 96469475a6848763fd542d1305660ee7a8561569 (patch) | |
tree | c7350bc87e0a8c605f501d1f7b437336642a3ba5 /patches/linux-2.6.18/pmd-shared.patch | |
parent | 403542f9101ebfcb45a881d6be9e8543059e409f (diff) | |
download | xen-96469475a6848763fd542d1305660ee7a8561569.tar.gz xen-96469475a6848763fd542d1305660ee7a8561569.tar.bz2 xen-96469475a6848763fd542d1305660ee7a8561569.zip |
[NET] back: Add lazy copying
This patch adds lazy copying using the new unmap_and_replace grant
table operation.
We keep a list of pending entries sorted by arrival order. We'll
process this list every time net_tx_action is invoked. We ensure
that net_tx_action is invoked within one second of the arrival of
the first packet in the list.
When we process the list any entry that has been around for more
than half a second is copied. This allows up to free the grant
table entry and return it to domU.
If the new grant table operation is not available (e.g., old HV
or architectures that don't support it yet) we simply copy each
packet as we receive them using skb_linearize. We also disable
SG/TSO if this is the case.
By default the new code is disabled. In order to enable it,
the module needs to be loaded with the argument copy_skb=1.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'patches/linux-2.6.18/pmd-shared.patch')
0 files changed, 0 insertions, 0 deletions