diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2012-11-15 08:49:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-15 17:36:17 -0500 |
commit | 8ca896cfdd17f32f5aa2747644733ebf3725360d (patch) | |
tree | 64a6ad61af635285a26a039f42bdc78ae8855979 /net/ipv6/udp.c | |
parent | de27d001d187721de775ed9e0c485aa6f517c745 (diff) | |
download | op-kernel-dev-8ca896cfdd17f32f5aa2747644733ebf3725360d.zip op-kernel-dev-8ca896cfdd17f32f5aa2747644733ebf3725360d.tar.gz |
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/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index fc99972..3ad44e1 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -1443,6 +1443,11 @@ static const struct inet6_protocol udpv6_protocol = { .flags = INET6_PROTO_NOPOLICY|INET6_PROTO_FINAL, }; +static const struct net_offload udpv6_offload = { + .gso_send_check = udp6_ufo_send_check, + .gso_segment = udp6_ufo_fragment, +}; + /* ------------------------------------------------------------------------ */ #ifdef CONFIG_PROC_FS |