X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fdatapath.h;h=3b5a67b103f362fc73651ed1e0e3fe79ee21f7c8;hb=d42c4f8dc1d39dcc1f102b56f63e4c128a2d767b;hp=d98a9656a990ce162270e0ca57ec061b3ee58927;hpb=56fd8edf80b6098289f9ddd94a6a4be3be648472;p=openvswitch diff --git a/datapath/datapath.h b/datapath/datapath.h index d98a9656..3b5a67b1 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -209,15 +209,13 @@ static inline const char *dp_name(const struct datapath *dp) return dp->ports[ODPP_LOCAL]->dev->name; } -#ifdef CONFIG_XEN -int skb_checksum_setup(struct sk_buff *skb); +#if defined(CONFIG_XEN) && defined(HAVE_PROTO_DATA_VALID) +int vswitch_skb_checksum_setup(struct sk_buff *skb); #else -static inline int skb_checksum_setup(struct sk_buff *skb) +static inline int vswitch_skb_checksum_setup(struct sk_buff *skb) { return 0; } #endif -int vswitch_skb_checksum_setup(struct sk_buff *skb); - #endif /* datapath.h */