]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7c3682716e9c286c21939885f43665cc90c789b
tree5fef15dd8d48a9ff3a41638a3277c3a2e668ae64
parente5065d5e538c252ce3dc22a750993f71372abb5b
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