[ovs-git] [openvswitch/ovs] 6c5d37: datapath: compat: backport LCO optimization.

GitHub noreply at github.com
Thu Aug 18 23:34:39 UTC 2016


  Branch: refs/heads/branch-2.6
  Home:   https://github.com/openvswitch/ovs
  Commit: 6c5d37ac9d355bd39b92cb6d3e473dc5a614b99c
      https://github.com/openvswitch/ovs/commit/6c5d37ac9d355bd39b92cb6d3e473dc5a614b99c
  Author: Pravin B Shelar <pshelar at ovn.org>
  Date:   2016-08-18 (Thu, 18 Aug 2016)

  Changed paths:
    M acinclude.m4
    M datapath/linux/compat/gso.c
    M datapath/linux/compat/include/linux/skbuff.h
    M datapath/linux/compat/ip_tunnels_core.c
    M datapath/linux/compat/udp.c
    M datapath/linux/compat/udp_tunnel.c

  Log Message:
  -----------
  datapath: compat: backport LCO optimization.

This basically backport commit:

    commit 179bc67f69b6cb53ad68cfdec5a917c2a2248355
    Author: Edward Cree <ecree at solarflare.com>
    Date:   Thu Feb 11 20:48:04 2016 +0000

    net: local checksum offload for encapsulation

    The arithmetic properties of the ones-complement checksum mean that a
    correctly checksummed inner packet, including its checksum, has a ones
    complement sum depending only on whatever value was used to initialise
    the checksum field before checksumming (in the case of TCP and UDP,
    this is the ones complement sum of the pseudo header, complemented).
    Consequently, if we are going to offload the inner checksum with
    CHECKSUM_PARTIAL, we can compute the outer checksum based only on the
    packed data not covered by the inner checksum, and the initial value of
    the inner checksum field.

    Signed-off-by: Edward Cree <ecree at solarflare.com>
    Signed-off-by: David S. Miller <davem at davemloft.net>

Signed-off-by: Pravin B Shelar <pshelar at ovn.org>
Acked-by: Jesse Gross <jesse at kernel.org>


  Commit: 352325752e2a9ba372ce69ba05c9b13193f2b470
      https://github.com/openvswitch/ovs/commit/352325752e2a9ba372ce69ba05c9b13193f2b470
  Author: Pravin B Shelar <pshelar at ovn.org>
  Date:   2016-08-18 (Thu, 18 Aug 2016)

  Changed paths:
    M datapath/linux/compat/include/net/ip_tunnels.h
    M datapath/linux/compat/include/net/udp_tunnel.h
    M datapath/linux/compat/ip_gre.c
    M datapath/linux/compat/ip_tunnels_core.c
    M datapath/linux/compat/vxlan.c

  Log Message:
  -----------
  datapath: compat: handle_offloads: remove csum_help param.

Related to following upstream commit:
    commit 6fa79666e24d32be1b709f5269af41ed9e829e7e
    Author: Edward Cree <ecree at solarflare.com>
    Date:   Thu Feb 11 21:02:31 2016 +0000

    net: ip_tunnel: remove 'csum_help' argument to iptunnel_handle_offloads

    All users now pass false, so we can remove it, and remove the code that
     was conditional upon it.

    Signed-off-by: Edward Cree <ecree at solarflare.com>
    Signed-off-by: David S. Miller <davem at davemloft.net>

Signed-off-by: Pravin B Shelar <pshelar at ovn.org>
Acked-by: Jesse Gross <jesse at kernel.org>


Compare: https://github.com/openvswitch/ovs/compare/b6afd1cad20e...352325752e2a


More information about the git mailing list