• Herbert Xu's avatar
    [NET] gso: Fix GSO feature mask in sk_setup_caps · 4fcd6b99
    Herbert Xu authored
    This isn't a bug just yet as only TCP uses sk_setup_caps for GSO.
    However, if and when UDP or something else starts using it this is
    likely to cause a problem if we forget to add software emulation
    for it at the same time.
    
    The problem is that right now we translate GSO emulation to the
    bitmask NETIF_F_GSO_MASK, which includes every protocol, even
    ones that we cannot emulate.
    
    This patch makes it provide only the ones that we can emulate.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4fcd6b99
sock.c 49.7 KB