]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:03 +0000 (02:01 +0100)
commit709af5ba8b0e038c6b6eb88d7dc648786abdcf94
treecce109894d3e74f47297c1df177b9512de0fd233
parentf56e7fc06466dcce162b58e400cf847b21db95fa
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>
(cherry picked from commit a0f2e80fcd3b6b1369527828b02caab01af60c36)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/net/xen-netback/netback.c