diff options
author | Tom Herbert <therbert@google.com> | 2014-09-20 17:52:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-26 00:22:47 -0400 |
commit | 53e50398968d43338c4d932114e68bc099fc5fbd (patch) | |
tree | f51fe647dc1d833dedd68f7ed384d0634bc6c143 /net/ipv4/tcp_offload.c | |
parent | f71470b37e79d6eb151debd47364d920b7babd30 (diff) |
net: Remove gso_send_check as an offload callback
The send_check logic was only interesting in cases of TCP offload and
UDP UFO where the checksum needed to be initialized to the pseudo
header checksum. Now we've moved that logic into the related
gso_segment functions so gso_send_check is no longer needed.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_offload.c')
-rw-r--r-- | net/ipv4/tcp_offload.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c index 7cd12b0458ff..5b90f2f447a5 100644 --- a/net/ipv4/tcp_offload.c +++ b/net/ipv4/tcp_offload.c | |||
@@ -288,11 +288,6 @@ int tcp_gro_complete(struct sk_buff *skb) | |||
288 | } | 288 | } |
289 | EXPORT_SYMBOL(tcp_gro_complete); | 289 | EXPORT_SYMBOL(tcp_gro_complete); |
290 | 290 | ||
291 | static int tcp_v4_gso_send_check(struct sk_buff *skb) | ||
292 | { | ||
293 | return 0; | ||
294 | } | ||
295 | |||
296 | static struct sk_buff **tcp4_gro_receive(struct sk_buff **head, struct sk_buff *skb) | 291 | static struct sk_buff **tcp4_gro_receive(struct sk_buff **head, struct sk_buff *skb) |
297 | { | 292 | { |
298 | /* Don't bother verifying checksum if we're going to flush anyway. */ | 293 | /* Don't bother verifying checksum if we're going to flush anyway. */ |
@@ -320,7 +315,6 @@ static int tcp4_gro_complete(struct sk_buff *skb, int thoff) | |||
320 | 315 | ||
321 | static const struct net_offload tcpv4_offload = { | 316 | static const struct net_offload tcpv4_offload = { |
322 | .callbacks = { | 317 | .callbacks = { |
323 | .gso_send_check = tcp_v4_gso_send_check, | ||
324 | .gso_segment = tcp4_gso_segment, | 318 | .gso_segment = tcp4_gso_segment, |
325 | .gro_receive = tcp4_gro_receive, | 319 | .gro_receive = tcp4_gro_receive, |
326 | .gro_complete = tcp4_gro_complete, | 320 | .gro_complete = tcp4_gro_complete, |