xen-netback: refactor xenvif_handle_frag_list()
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 4 Mar 2015 11:14:48 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2015 19:58:18 +0000 (14:58 -0500)
commitb0c21badf174eb00160f842398f3918d7b365853
treeecb76c714145e1306435ab184a182721d45f0852
parent49d9991a18f9aae7b14abbd9c1cc87555330a769
xen-netback: refactor xenvif_handle_frag_list()

When handling a from-guest frag list, xenvif_handle_frag_list()
replaces the frags before calling the destructor to clean up the
original (foreign) frags.  Whilst this is safe (the destructor doesn't
actually use the frags), it looks odd.

Reorder the function to be less confusing.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c