]> xenbits.xensource.com Git - people/julieng/linux-arm.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)
committerJulien Grall <julien.grall@citrix.com>
Tue, 29 Sep 2015 17:54:13 +0000 (18:54 +0100)
commit5160091311b48d14bdf8ca66c06d4b80fed59b90
treef37f7a59625d30f79653af84a53b2ea2fa508254
parentacc87d0617104a81b917fe4f734f4fca51020386
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>
---
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: netdev@vger.kernel.org
    Changes in v4:
        - Add Wei's acked

    Changes in v2:
        - Patch added
drivers/net/xen-netback/netback.c