aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevic@redhat.com>2012-11-15 03:49:13 -0500
committerDavid S. Miller <davem@davemloft.net>2012-11-15 17:36:17 -0500
commit8ca896cfdd17f32f5aa2747644733ebf3725360d (patch)
tree64a6ad61af635285a26a039f42bdc78ae8855979 /net/ipv6/tcp_ipv6.c
parentde27d001d187721de775ed9e0c485aa6f517c745 (diff)
ipv6: Add new offload registration infrastructure.
Create a new data structure for IPv6 protocols that holds GRO/GSO callbacks and a new array to track the protocols that register GRO/GSO. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r--net/ipv6/tcp_ipv6.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index c73d0ebde9c..6884a95be43 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -2073,6 +2073,13 @@ static const struct inet6_protocol tcpv6_protocol = {
2073 .flags = INET6_PROTO_NOPOLICY|INET6_PROTO_FINAL, 2073 .flags = INET6_PROTO_NOPOLICY|INET6_PROTO_FINAL,
2074}; 2074};
2075 2075
2076static const struct net_offload tcpv6_offload = {
2077 .gso_send_check = tcp_v6_gso_send_check,
2078 .gso_segment = tcp_tso_segment,
2079 .gro_receive = tcp6_gro_receive,
2080 .gro_complete = tcp6_gro_complete,
2081};
2082
2076static struct inet_protosw tcpv6_protosw = { 2083static struct inet_protosw tcpv6_protosw = {
2077 .type = SOCK_STREAM, 2084 .type = SOCK_STREAM,
2078 .protocol = IPPROTO_TCP, 2085 .protocol = IPPROTO_TCP,