From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edward Cree Subject: [PATCH v3 net-next 0/8] Local Checksum Offload Date: Fri, 8 Jan 2016 19:44:23 +0000 Message-ID: <56901197.8040808@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: , , , To: David Miller Return-path: Received: from nbfkord-smmo02.seg.att.com ([209.65.160.78]:26610 "EHLO nbfkord-smmo02.seg.att.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755933AbcAHTow (ORCPT ); Fri, 8 Jan 2016 14:44:52 -0500 Sender: netdev-owner@vger.kernel.org List-ID: Tested with a VXLAN tunnel over a device that doesn't support inner checksum offload (so the checksum will have been done in sw by validate_xmit_skb()). Changes from v2: * Added support for IPv4 GRE. * Split out 'always set up for checksum offload' into its own patch. * Removed csum_help from iptunnel_handle_offloads. * Rewrote LCO callers to only fold once. * Simplified nocheck handling. Changes from v1: * Enabled support in more encapsulation protocols. I think it now covers everything except GRE. * Wrote up some documentation covering TX checksum offload, LCO and RCO. Edward Cree (8): net: local checksum offload for encapsulation net: udp: always set up for CHECKSUM_PARTIAL offload net: enable LCO for udp_tunnel_handle_offloads() users net: vxlan: enable local checksum offload fou: enable LCO in FOU and GUE net: gre: Implement LCO for GRE over IPv4 net: ip_tunnel: remove 'csum_help' argument to iptunnel_handle_offloads Documentation/networking: add checksum-offloads.txt to explain LCO Documentation/networking/00-INDEX | 2 + Documentation/networking/checksum-offloads.txt | 119 +++++++++++++++++++++++++ drivers/net/vxlan.c | 18 ++-- include/linux/skbuff.h | 26 ++++++ include/net/ip_tunnels.h | 3 +- include/net/udp_tunnel.h | 2 +- net/ipv4/fou.c | 14 ++- net/ipv4/ip_gre.c | 20 ++++- net/ipv4/ip_tunnel_core.c | 15 +--- net/ipv4/ipip.c | 2 +- net/ipv4/udp.c | 28 ++---- net/ipv6/ip6_checksum.c | 23 ++--- net/ipv6/sit.c | 4 +- net/netfilter/ipvs/ip_vs_xmit.c | 6 +- 14 files changed, 197 insertions(+), 85 deletions(-) create mode 100644 Documentation/networking/checksum-offloads.txt