net/xen-netback: xenvif_gop_frag_copy: move GSO check out of the loop
authorJulien Grall <julien.grall@citrix.com>
Wed, 24 Jun 2015 17:03:14 +0000 (18:03 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:32 +0000 (14:20 +0100)
commita0f2e80fcd3b6b1369527828b02caab01af60c36
tree5fef15dd8d48a9ff3a41638a3277c3a2e668ae64
parent4a69c909deb0dd3cae653d14ac0ff52d5440a19c
net/xen-netback: xenvif_gop_frag_copy: move GSO check out of the loop

The skb doesn't change within the function. Therefore it's only
necessary to check if we need GSO once at the beginning.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/net/xen-netback/netback.c