]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5eae762e24f4b26df50ee8be5786998c9ab9b64
treeecb76c714145e1306435ab184a182721d45f0852
parente8d8a327f4353e5379baeb8fb69d1c0567fc28c6
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