datapath: Copy Xen's checksumming fields when doing skb_copy.
authorJesse Gross <jesse@nicira.com>
Wed, 18 Nov 2009 01:28:00 +0000 (17:28 -0800)
committerJesse Gross <jesse@nicira.com>
Wed, 18 Nov 2009 21:40:36 +0000 (13:40 -0800)
commit5ef800a6909fabfb2331a2da90450c23ca61aa06
tree8c055f45d272075478b9fb0f11ab93cc9c5c96e7
parent8fe1a59d281369829f474dc75eb5905c991ccd94
datapath: Copy Xen's checksumming fields when doing skb_copy.

Two fields that control checksumming were added to sk_buff in
Xen: proto_data_valid and proto_csum_blank.  These fields are copied
when doing a skb_clone but not in other functions such as skb_copy,
which can lead to checksum errors in TCP and UDP when offloading is
enabled in the guest.  To fix this we manually copy these fields,
though ideally this should be fixed upstream in Xen.

Bug #2299
datapath/actions.c