[NET] gso: Fix GSO feature mask in sk_setup_caps
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jun 2007 05:15:50 +0000 (22:15 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 4 Jun 2007 01:08:49 +0000 (18:08 -0700)
commit4fcd6b991685493185c2bb8a76b21aadb658bd76
treeee131eba969a9c9984b6c884a6a3d2f3bfadcffb
parent6418204f919c030ca0c943f6c77dc84aff2ec0d2
[NET] gso: Fix GSO feature mask in sk_setup_caps

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: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c