]> 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)
commitf5fbffb0c4b534e4ebb197709913d0829fc86513
tree5fef15dd8d48a9ff3a41638a3277c3a2e668ae64
parentb33495f710b5dc18a2e78110821ce78e8ca3db28
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