]> 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)
commit2cdd8e17cbec4dbcbd105b6b7a382a1fd97fe146
treeecb76c714145e1306435ab184a182721d45f0852
parentac84d2a31d9bbb179de251720200c63fd24571de
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