diff options
author | Tom Herbert <therbert@google.com> | 2014-09-20 14:52:30 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-26 00:22:47 -0400 |
commit | 53e50398968d43338c4d932114e68bc099fc5fbd (patch) | |
tree | f51fe647dc1d833dedd68f7ed384d0634bc6c143 /net/core | |
parent | f71470b37e79d6eb151debd47364d920b7babd30 (diff) | |
download | linux-53e50398968d43338c4d932114e68bc099fc5fbd.tar.gz linux-53e50398968d43338c4d932114e68bc099fc5fbd.tar.bz2 linux-53e50398968d43338c4d932114e68bc099fc5fbd.zip |
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/core')
-rw-r--r-- | net/core/dev.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index db0388607329..e2ced01c01e4 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2422,16 +2422,6 @@ struct sk_buff *skb_mac_gso_segment(struct sk_buff *skb, rcu_read_lock(); list_for_each_entry_rcu(ptype, &offload_base, list) { if (ptype->type == type && ptype->callbacks.gso_segment) { - if (unlikely(skb->ip_summed != CHECKSUM_PARTIAL)) { - int err; - - err = ptype->callbacks.gso_send_check(skb); - segs = ERR_PTR(err); - if (err || skb_gso_ok(skb, features)) - break; - __skb_push(skb, (skb->data - - skb_network_header(skb))); - } segs = ptype->callbacks.gso_segment(skb, features); break; } |