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/udp_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/udp_offload.c')
-rw-r--r-- | net/ipv6/udp_offload.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c index 979e4ab63a8b..8e01c44a987c 100644 --- a/net/ipv6/udp_offload.c +++ b/net/ipv6/udp_offload.c | |||
@@ -107,8 +107,10 @@ out: | |||
107 | return segs; | 107 | return segs; |
108 | } | 108 | } |
109 | static const struct net_offload udpv6_offload = { | 109 | static const struct net_offload udpv6_offload = { |
110 | .gso_send_check = udp6_ufo_send_check, | 110 | .callbacks = { |
111 | .gso_segment = udp6_ufo_fragment, | 111 | .gso_send_check = udp6_ufo_send_check, |
112 | .gso_segment = udp6_ufo_fragment, | ||
113 | }, | ||
112 | }; | 114 | }; |
113 | 115 | ||
114 | int __init udp_offload_init(void) | 116 | int __init udp_offload_init(void) |