]> git.proxmox.com Git - mirror_iproute2.git/commit
ip link: Add support for remote checksum offload to IP tunnels
authorTom Herbert <therbert@google.com>
Thu, 29 Jan 2015 16:51:58 +0000 (08:51 -0800)
committerStephen Hemminger <shemming@brocade.com>
Thu, 5 Feb 2015 18:50:02 +0000 (10:50 -0800)
commit858dbb208e3934525674252a6b6cf7d36a9de191
treeabd8a96a2fed0c86c785048e6fc17ad65f19a8d4
parent82a307e835a0b7431c0367737757522dedc606fe
ip link: Add support for remote checksum offload to IP tunnels

This patch adds support to remote checksum checksum offload
confinguration for IPIP, SIT, and GRE tunnels. This patch
adds a [no]encap-remcsum to ip link command which applicable
when configured tunnels that use GUE.

http://tools.ietf.org/html/draft-herbert-remotecsumoffload-00

Example:

ip link add name tun1 type gre remote 192.168.1.1 local 192.168.1.2 \
   ttl 225 encap fou encap-sport auto encap-dport 7777 encap-csum \
   encap-remcsum

This would create an GRE tunnel in GUE encapsulation where the source
port is automatically selected (based on hash of inner packet),
checksums in the encapsulating UDP header are enabled (needed.for
remote checksum offload), and remote checksum ffload is configured to
be used on the tunnel (affects TX side).

Signed-off-by: Tom Herbert <therbert@google.com>
ip/link_gre.c
ip/link_iptnl.c