[ovs-git] [openvswitch/ovs] b5a023: datapath-windows:Correct checksum for DNAT action

pweisong noreply at github.com
Wed Jul 21 10:53:03 UTC 2021


  Branch: refs/heads/branch-2.14
  Home:   https://github.com/openvswitch/ovs
  Commit: b5a0232fd53cfc242b007398508930d08e2b9be1
      https://github.com/openvswitch/ovs/commit/b5a0232fd53cfc242b007398508930d08e2b9be1
  Author: Wilson Peng <pweisong at vmware.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M datapath-windows/ovsext/Actions.c

  Log Message:
  -----------
  datapath-windows:Correct checksum for DNAT action

While testing OVS-windows flows for the DNAT action, the checksum
In TCP header is set incorrectly when TCP offload is enabled by
Default. As a result, the packet will be dropped on receiver linuxVM.

>>>sample flow default configuration on both Windows VM and Linux VM
(src=40.0.1.2,dst=10.150.0.1) --dnat--> (src=40.0.1.2,dst==30.1.0.2)
Without the fix for some TCP packet(40.0.1.2->30.1.0.2 with payload
len 207) the TCP checksum will be pseduo header checksum and the value
is 0x01d6. With the fix the checksum will be 0x47ee, it could be got
the correct TCP checksum on the receiver Linux VM.

Signed-off-by: Wilson Peng<pweisong at vmware.com>
Signed-off-by: Anand Kumar<kumaranand at vmware.com>
Acked-by: Alin-Gabriel Serdean <aserdean at ovn.org>
Signed-off-by: Alin-Gabriel Serdean <aserdean at ovn.org>




More information about the git mailing list