diff options
author | David Vrabel <david.vrabel@citrix.com> | 2016-10-04 10:29:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-06 20:37:36 -0400 |
commit | a37f12298c251a48bc74d4012e07bf0d78175f46 (patch) | |
tree | 8610270f8e73fa214527d58e36f9915f1d4e7607 /drivers/net/xen-netback/common.h | |
parent | 98f6d57ced73b723551568262019f1d6c8771f20 (diff) | |
download | op-kernel-dev-a37f12298c251a48bc74d4012e07bf0d78175f46.zip op-kernel-dev-a37f12298c251a48bc74d4012e07bf0d78175f46.tar.gz |
xen-netback: batch copies for multiple to-guest rx packets
Instead of flushing the copy ops when an packet is complete, complete
packets when their copy ops are done. This improves performance by
reducing the number of grant copy hypercalls.
Latency is still limited by the relatively small size of the copy
batch.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
[re-based]
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/common.h')
-rw-r--r-- | drivers/net/xen-netback/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h index 7d12a38..cf68149 100644 --- a/drivers/net/xen-netback/common.h +++ b/drivers/net/xen-netback/common.h @@ -132,6 +132,7 @@ struct xenvif_copy_state { struct gnttab_copy op[COPY_BATCH_SIZE]; RING_IDX idx[COPY_BATCH_SIZE]; unsigned int num; + struct sk_buff_head *completed; }; struct xenvif_queue { /* Per-queue data for xenvif */ |