xen-netback: support multiple extra info fragments passed from frontend
authorPaul Durrant <Paul.Durrant@citrix.com>
Thu, 10 Mar 2016 12:30:27 +0000 (12:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 02:08:01 +0000 (22:08 -0400)
commit562abd39a1902745bdcab266c7824cd6c5bc34d3
treee4c6dd06060b89a11b76deb2cabd965a6d8582b0
parent6b8abef5f833b03be1b5af491193477ad609ad35
xen-netback: support multiple extra info fragments passed from frontend

The code does not currently support a frontend passing multiple extra info
fragments to the backend in a tx request. The xenvif_get_extras() function
handles multiple extra_info fragments but make_tx_response() assumes there
is only ever a single extra info fragment.

This patch modifies xenvif_get_extras() to pass back a count of extra
info fragments, which is then passed to make_tx_response() (after
possibly being stashed in pending_tx_info for deferred responses).

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/netback.c