]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Generalise TSO-specific bits from skb_setup_caps
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jun 2006 20:36:35 +0000 (13:36 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 30 Jun 2006 21:12:08 +0000 (14:12 -0700)
commitd4d8a377ad45bbbd17ee35c559ba6e082423691a
treeb0f059f3cb19d425d30cf42b2088aca4cae12a0a
parented7612e5082dcfda4b55bbf03101dfbb84ec02a2
[NET]: Generalise TSO-specific bits from skb_setup_caps

This patch generalises the TSO-specific bits from sk_setup_caps by adding
the sk_gso_type member to struct sock.  This makes sk_setup_caps generic
so that it can be used by TCPv6 or UFO.

The only catch is that whoever uses this must provide a GSO implementation
for their protocol which I think is a fair deal :) For now UFO continues to
live without a GSO implementation which is OK since it doesn't use the sock
caps field at the moment.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/sock.h
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c