]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iplink_vxlan.c
vxlan: Add support for remote checksum offload
authorTom Herbert <tom@herbertland.com>
Fri, 27 Nov 2015 18:23:43 +0000 (10:23 -0800)
committerStephen Hemminger <shemming@brocade.com>
Sun, 29 Nov 2015 19:53:02 +0000 (11:53 -0800)
commit35f59d862fc9dec1e4af675c5ce776ba44be7eb7
tree7c51fa8c7b7b85e5d13f6ec7f7140e11c37af1ac
parent61170fd88d264c6a6c9d2c2f4433cdacc3385e93
vxlan: Add support for remote checksum offload

This patch adds support to remote checksum checksum offload
to VXLAN. This patch adds remcsumtx and remcsumrx to ip vxlan
configuration to enable remote checksum offload for transmit
and receive on the VXLAN tunnel.

https://tools.ietf.org/html/draft-herbert-vxlan-rco-00

Example:

ip link add name vxlan0 type vxlan id 42 group 239.1.1.1 dev eth0 \
    udpcsum remcsumtx remcsumrx

Testing:

Ran single netperf over mlnx4 to illustrate the effest:

- Without RCO (UDP csum set to zero)
  4335.99 Mbps
- With RCO enabled
  7661.81 Mbps

Signed-off-by: Tom Herbert <tom@herbertland.com>
ip/iplink_vxlan.c