X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Factions.c;h=a24abcae13d734feab56ca478b14ff33e523b8a3;hb=a6057323869de5b323d1c75e678b6a0fe0e8addd;hp=4f23c83d5841cc38ee2d844052b0490c2d81f3af;hpb=d17ee8689bff22541dccaa792b70a848641f3646;p=openvswitch diff --git a/datapath/actions.c b/datapath/actions.c index 4f23c83d..a24abcae 100644 --- a/datapath/actions.c +++ b/datapath/actions.c @@ -37,7 +37,7 @@ make_writable(struct sk_buff *skb, unsigned min_headroom, gfp_t gfp) nskb->ip_summed = skb->ip_summed; nskb->csum = skb->csum; #endif -#if defined(CONFIG_XEN) && LINUX_VERSION_CODE == KERNEL_VERSION(2,6,18) +#if defined(CONFIG_XEN) && defined(HAVE_PROTO_DATA_VALID) /* These fields are copied in skb_clone but not in * skb_copy or related functions. We need to manually * copy them over here. */ @@ -302,6 +302,7 @@ int dp_xmit_skb(struct sk_buff *skb) return -E2BIG; } + forward_ip_summed(skb); dev_queue_xmit(skb); return len;