]> xenbits.xensource.com Git - people/pauldu/linux.git/commit
xen-netback: simplify xenvif_rx_meta
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 9 Oct 2015 12:39:53 +0000 (13:39 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 19 Oct 2015 14:11:36 +0000 (15:11 +0100)
commita7a280ed6a73f7095906398d17e95e8607e4a1fc
tree46e32aec08368b94ab2a170c51973a5b8d2965bf
parent371f1c7e0d854796adc622cc3bacfcc5fc638db1
xen-netback: simplify xenvif_rx_meta

The amount of metadata stored during xenvif_rx_action can be reduced
drastically when one realizes that:

- The id field in xen_netif_rx_response must be identical to its 'slot'
  in the shared ring (the protocol requires it).
- When the responses are built, the code knows which skb they refer to
  and hence can extract GSO metadata at that point.

As a result the size taken by the metadata array is reduced and many
lines of code can be removed.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/netback.c