mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
f71470b37e
commit
53e5039896
10 changed files with 3 additions and 113 deletions
|
|
@ -65,15 +65,9 @@ out:
|
|||
return segs;
|
||||
}
|
||||
|
||||
static int mpls_gso_send_check(struct sk_buff *skb)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct packet_offload mpls_mc_offload = {
|
||||
.type = cpu_to_be16(ETH_P_MPLS_MC),
|
||||
.callbacks = {
|
||||
.gso_send_check = mpls_gso_send_check,
|
||||
.gso_segment = mpls_gso_segment,
|
||||
},
|
||||
};
|
||||
|
|
@ -81,7 +75,6 @@ static struct packet_offload mpls_mc_offload = {
|
|||
static struct packet_offload mpls_uc_offload = {
|
||||
.type = cpu_to_be16(ETH_P_MPLS_UC),
|
||||
.callbacks = {
|
||||
.gso_send_check = mpls_gso_send_check,
|
||||
.gso_segment = mpls_gso_segment,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue