datapath: Compute checksum while sending packets to userspace().
authorJesse Gross <jesse@nicira.com>
Thu, 17 Jun 2010 22:20:16 +0000 (15:20 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 18 Jun 2010 21:20:01 +0000 (14:20 -0700)
commit9cc8b4e4af67a4871d0c9db67500a0a79a26685f
tree7b2e7660f04d6cc393e83728b1a39ca5963b8632
parentb28c72ba7c992bcd2f5b65be0799a2d9422df21f
datapath: Compute checksum while sending packets to userspace().

Currently we compute the checksums on packets being sent to
userspace first and then copy them to a userspace buffer.  However,
these two operations can be combined for a significant savings
because the packet data only has to be loaded once.  This also
allows GSO packets to save an extra copy.

This will likely have an impact on NIC-121 because it eliminates
the code path that triggers the issue.  However, it is not a fix
for the root cause.
datapath/datapath.c
datapath/vport-gre.c