aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6/tcpv6_offload.c
AgeCommit message (Collapse)AuthorFilesLines
2013-11-23gro: Clean up tcpX_gro_receive checksum verificationHerbert Xu1-17/+10
This patch simplifies the checksum verification in tcpX_gro_receive by reusing the CHECKSUM_COMPLETE code for CHECKSUM_NONE. All it does for CHECKSUM_NONE is compute the partial checksum and then treat it as if it came from the hardware (CHECKSUM_COMPLETE). Signed-off-by: Herbert Xu <[email protected]> Cheers, Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2013-11-23gro: Only verify TCP checksums for candidatesHerbert Xu1-0/+5
In some cases we may receive IP packets that are longer than their stated lengths. Such packets are never merged in GRO. However, we may end up computing their checksums incorrectly and end up allowing packets with a bogus checksum enter our stack with the checksum status set as verified. Since such packets are rare and not performance-critical, this patch simply skips the checksum verification for them. Reported-by: Alexander Duyck <[email protected]> Signed-off-by: Herbert Xu <[email protected]> Acked-by: Alexander Duyck <[email protected]> Thanks, Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2013-10-18tcp: rename tcp_tso_segment()Eric Dumazet1-1/+1
Rename tcp_tso_segment() to tcp_gso_segment(), to better reflect what is going on, and ease grep games. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-11-15net: Remove code duplication between offload structuresVlad Yasevich1-4/+6
Move the offload callbacks into its own structure. Signed-off-by: Vlad Yasevich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-11-15ipv6: Pull IPv6 GSO registration out of the moduleVlad Yasevich1-5/+0
Sing GSO support is now separate, pull it out of the module and make it its own init call. Remove the cleanup functions as they are no longer called. Signed-off-by: Vlad Yasevich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-11-15ipv6: Separate tcp offload functionalityVlad Yasevich1-0/+98
Pull TCPv6 offload functionality into its won file in preparation for moving it out of the module. Signed-off-by: Vlad Yasevich <[email protected]> Signed-off-by: David S. Miller <[email protected]>