[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>
Showing
- include/linux/netdevice.h 9 additions, 3 deletionsinclude/linux/netdevice.h
- include/net/sock.h 10 additions, 3 deletionsinclude/net/sock.h
- include/net/tcp.h 1 addition, 1 deletioninclude/net/tcp.h
- net/ipv4/tcp.c 1 addition, 1 deletionnet/ipv4/tcp.c
- net/ipv4/tcp_ipv4.c 2 additions, 0 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv4/tcp_output.c 3 additions, 6 deletionsnet/ipv4/tcp_output.c
Please register or sign in to comment