]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: refactor guest rx
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 4 Oct 2016 09:29:14 +0000 (10:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Oct 2016 00:37:35 +0000 (20:37 -0400)
commit6fd0b7a0b30beb50afaa053acabf637ffdb10e33
tree7f6c52ddcb5b98accb591c01b94def17d100007e
parent6adaf1004211d594cca46bf87b4617c81cc04422
xen-netback: refactor guest rx

Refactor the to-guest (rx) path to:

1. Push responses for completed skbs earlier, reducing latency.

2. Reduce the per-queue memory overhead by greatly reducing the
   maximum number of grant copy ops in each hypercall (from 4352 to
   64).  Each struct xenvif_queue is now only 44 kB instead of 220 kB.

3. Make the code more maintainable.

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>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/rx.c