X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux-2.6%2Fcompat-2.6%2Finclude%2Flinux%2Fskbuff.h;h=d9f043ac6442960e8f5841b06dd070b1881a86da;hb=02dd3123a0e312f1d33403e744af52dd6096f12d;hp=edeba5ae26b334e650ffed79f392fc0b2a19bdaf;hpb=db12f2fc076e2d5bb5ae364e217ca2d84c8b0154;p=openvswitch diff --git a/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h b/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h index edeba5ae..d9f043ac 100644 --- a/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h +++ b/datapath/linux-2.6/compat-2.6/include/linux/skbuff.h @@ -113,9 +113,7 @@ static inline void kfree_skb_maybe_null(struct sk_buff *skb) #ifndef CHECKSUM_PARTIAL -/* Note that CHECKSUM_PARTIAL is not implemented, but this allows us to at - * least test against it: see update_csum() in forward.c. */ -#define CHECKSUM_PARTIAL 3 +#define CHECKSUM_PARTIAL CHECKSUM_HW #endif #ifndef CHECKSUM_COMPLETE #define CHECKSUM_COMPLETE CHECKSUM_HW @@ -149,6 +147,11 @@ static inline unsigned char *skb_network_header(const struct sk_buff *skb) return skb->nh.raw; } +static inline void skb_reset_network_header(struct sk_buff *skb) +{ + skb->nh.raw = skb->data; +} + static inline void skb_set_network_header(struct sk_buff *skb, const int offset) { skb->nh.raw = skb->data + offset;