[ovs-git] [openvswitch/ovs] 73daf5: datapath: compat: backport LCO optimization.

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


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 73daf51a451f15452d3f861d1cc816b803ced374
      https://github.com/openvswitch/ovs/commit/73daf51a451f15452d3f861d1cc816b803ced374
  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: 2a94b57160bfda85d3af8845265826e9a67301b0
      https://github.com/openvswitch/ovs/commit/2a94b57160bfda85d3af8845265826e9a67301b0
  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/2b9f3924439e...2a94b57160bf


More information about the git mailing list