diff options
| author | Vlad Yasevich <[email protected]> | 2012-11-15 08:49:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-11-15 22:36:17 +0000 |
| commit | 8ca896cfdd17f32f5aa2747644733ebf3725360d (patch) | |
| tree | 64a6ad61af635285a26a039f42bdc78ae8855979 /net/ipv6/tcp_ipv6.c | |
| parent | net: Add net protocol offload registration infrustructure (diff) | |
| download | kernel-8ca896cfdd17f32f5aa2747644733ebf3725360d.tar.gz kernel-8ca896cfdd17f32f5aa2747644733ebf3725360d.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index c73d0ebde9c8..6884a95be433 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -2073,6 +2073,13 @@ static const struct inet6_protocol tcpv6_protocol = { .flags = INET6_PROTO_NOPOLICY|INET6_PROTO_FINAL, }; +static const struct net_offload tcpv6_offload = { + .gso_send_check = tcp_v6_gso_send_check, + .gso_segment = tcp_tso_segment, + .gro_receive = tcp6_gro_receive, + .gro_complete = tcp6_gro_complete, +}; + static struct inet_protosw tcpv6_protosw = { .type = SOCK_STREAM, .protocol = IPPROTO_TCP, |
