diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2012-11-15 03:49:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-15 17:39:51 -0500 |
commit | f191a1d17f227032c159e5499809f545402b6dc6 (patch) | |
tree | 48fc87a0b34bd2da06fedcd7e5e3ed6b08f7a3ac /net/ipv6/tcpv6_offload.c | |
parent | c6b641a4c6b32f39db678c2441cb1ef824110d74 (diff) |
net: Remove code duplication between offload structures
Move the offload callbacks into its own structure.
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcpv6_offload.c')
-rw-r--r-- | net/ipv6/tcpv6_offload.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/ipv6/tcpv6_offload.c b/net/ipv6/tcpv6_offload.c index 3a27fe685c8e..2ec6bf6a0aa0 100644 --- a/net/ipv6/tcpv6_offload.c +++ b/net/ipv6/tcpv6_offload.c | |||
@@ -81,10 +81,12 @@ static int tcp6_gro_complete(struct sk_buff *skb) | |||
81 | } | 81 | } |
82 | 82 | ||
83 | static const struct net_offload tcpv6_offload = { | 83 | static const struct net_offload tcpv6_offload = { |
84 | .gso_send_check = tcp_v6_gso_send_check, | 84 | .callbacks = { |
85 | .gso_segment = tcp_tso_segment, | 85 | .gso_send_check = tcp_v6_gso_send_check, |
86 | .gro_receive = tcp6_gro_receive, | 86 | .gso_segment = tcp_tso_segment, |
87 | .gro_complete = tcp6_gro_complete, | 87 | .gro_receive = tcp6_gro_receive, |
88 | .gro_complete = tcp6_gro_complete, | ||
89 | }, | ||
88 | }; | 90 | }; |
89 | 91 | ||
90 | int __init tcpv6_offload_init(void) | 92 | int __init tcpv6_offload_init(void) |