netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: Remote checksum offload for VXLAN
@ 2014-11-24 23:52 Tom Herbert
  2014-11-24 23:52 ` [PATCH net-next 1/3] net: Add remcsum_adjust as common function for remote checksum offload Tom Herbert
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Tom Herbert @ 2014-11-24 23:52 UTC (permalink / raw)
  To: davem, netdev

This patch set adds support for remote checksum offload in VXLAN.

The remote checksum offload is generalized by creating a common
function (remcsum_adjust) that does the work of modifying the
checksum in remote checksum offload. This function can be called
from normal or GRO path. GUE was modified to use this function.

To support RCO is VXLAN we use the 9th bit in the reserved
flags to indicated remote checksum offload. The start and offset
values are encoded n a compressed form in the low order (reserved)
byte of the vni field.

Remote checksum offload is described in
https://tools.ietf.org/html/draft-herbert-remotecsumoffload-01

Tested by running 200 TCP_STREAM connections with VXLAN (over IPv4).

With UDP checksums and Remote Checksum Offload
  IPv4
      Client
        11.84% CPU utilization
      Server
        12.96% CPU utilization
      9197 Mbps
  IPv6
      Client
        12.46% CPU utilization
      Server
        14.48% CPU utilization
      8963 Mbps

With UDP checksums, no remote checksum offload
  IPv4
      Client
        15.67% CPU utilization
      Server
        14.83% CPU utilization
      9094 Mbps
  IPv6
      Client
        16.21% CPU utilization
      Server
        14.32% CPU utilization
      9058 Mbps
 
No UDP checksums
  IPv4
      Client
        15.03% CPU utilization
      Server
        23.09% CPU utilization
      9089 Mbps
  IPv6
      Client
        16.18% CPU utilization
      Server
        26.57% CPU utilization
       8954 Mbps

Tom Herbert (3):
  net: Add remcsum_adjust as common function for remote checksum offload
  gue: Call remcsum_adjust
  vxlan: Remote checksum offload

 drivers/net/vxlan.c          | 188 +++++++++++++++++++++++++++++++++++++++++--
 include/net/checksum.h       |  16 ++++
 include/net/vxlan.h          |   2 +
 include/uapi/linux/if_link.h |   1 +
 net/ipv4/fou.c               |  84 ++++---------------
 5 files changed, 216 insertions(+), 75 deletions(-)

-- 
2.1.0.rc2.206.gedb03e5

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-25 18:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 23:52 [PATCH net-next 0/3] net: Remote checksum offload for VXLAN Tom Herbert
2014-11-24 23:52 ` [PATCH net-next 1/3] net: Add remcsum_adjust as common function for remote checksum offload Tom Herbert
2014-11-24 23:52 ` [PATCH net-next 2/3] gue: Call remcsum_adjust Tom Herbert
2014-11-24 23:52 ` [PATCH net-next 3/3] vxlan: Remote checksum offload Tom Herbert
2014-11-25  1:06   ` Jesse Gross
2014-11-25  2:50     ` Tom Herbert
2014-11-25 18:54       ` Jesse Gross
2014-11-25 18:50 ` [PATCH net-next 0/3] net: Remote checksum offload for VXLAN David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).