Skip to content
  • Alexander Duyck's avatar
    net: Move GSO csum into SKB_GSO_CB · 76443456
    Alexander Duyck authored
    
    
    This patch moves the checksum maintained by GSO out of skb->csum and into
    the GSO context block in order to allow for us to work on outer checksums
    while maintaining the inner checksum offsets in the case of the inner
    checksum being offloaded, while the outer checksums will be computed.
    
    While updating the code I also did a minor cleanu-up on gso_make_checksum.
    The change is mostly to make it so that we store the values and compute the
    checksum instead of computing the checksum and then storing the values we
    needed to update.
    
    Signed-off-by: default avatarAlexander Duyck <aduyck@mirantis.com>
    Acked-by: default avatarTom Herbert <tom@herbertland.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    76443456