[ovs-git] Open vSwitch: datapath: Update hardware computed checksum on VLAN change. (next)

dev at openvswitch.org dev at openvswitch.org
Fri Mar 5 21:21:37 UTC 2010

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, next has been updated
       via  635c9298b91d0942aca39ba1f0d7ea5805ab618e (commit)
      from  ca063bcd599bd00c4096628991529c16eb24d1b6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 635c9298b91d0942aca39ba1f0d7ea5805ab618e
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=635c9298b91d0942aca39ba1f0d7ea5805ab618e
Author: Jesse Gross <jesse at nicira.com>
datapath: Update hardware computed checksum on VLAN change.
The checksum computed by hardware on receive stored in skb->csum
when skb->ip_summed == CHECKSUM_COMPLETE is supposed to reflect
the contents of the packet starting at skb->data, which includes
the VLAN tag if there is one.  However, when we manipulate the
VLAN tag we don't update the checksum.  This leads to all kinds
of nasty warnings about broken hardware, not to mention we can't
take advantage of the checksum that was already computed.

This also fixes some issues with our private checksum type value
on some different kernels and after GSO.


Summary of changes:
 datapath/actions.c  |   28 +++++++++++++++++++++++--
 datapath/datapath.c |   55 +++++++++++++++++++++++++++++++++++++++-----------
 datapath/datapath.h |    9 ++++---
 3 files changed, 73 insertions(+), 19 deletions(-)

Open vSwitch

More information about the git mailing list