diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-12 12:20:45 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-15 11:32:47 +0200 |
commit | 069728fae60cdde7fa0f3b584c6a3f7430b4c9e3 (patch) | |
tree | a25d3bd4e4bc664e7b3acae19bb5f73cdb94cc88 /backport/backport-include/linux/skbuff.h | |
parent | 454215a8a5d2c9415ff2cabe68a1fc5f70473d59 (diff) |
backports: dissolve compat-2.6.37.h
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/skbuff.h')
-rw-r--r-- | backport/backport-include/linux/skbuff.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h index 2ad36126..52f13453 100644 --- a/backport/backport-include/linux/skbuff.h +++ b/backport/backport-include/linux/skbuff.h @@ -75,4 +75,20 @@ static inline int skb_checksum_start_offset(const struct sk_buff *skb) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) +static inline bool skb_has_frag_list(const struct sk_buff *skb) +{ + return skb_shinfo(skb)->frag_list != NULL; +} + +#define skb_checksum_none_assert LINUX_BACKPORT(skb_checksum_none_assert) + +static inline void skb_checksum_none_assert(struct sk_buff *skb) +{ +#ifdef DEBUG + BUG_ON(skb->ip_summed != CHECKSUM_NONE); +#endif +} +#endif /* < 2.6.37 */ + #endif /* __BACKPORT_SKBUFF_H */ |