~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to datapath/linux/compat/include/linux/skbuff.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
        skb->mac_len = skb->network_header - skb->mac_header;
252
252
}
253
253
#endif
 
254
 
 
255
#ifndef HAVE_SKB_UNCLONE
 
256
static inline int skb_unclone(struct sk_buff *skb, gfp_t pri)
 
257
{
 
258
        might_sleep_if(pri & __GFP_WAIT);
 
259
 
 
260
        if (skb_cloned(skb))
 
261
                return pskb_expand_head(skb, 0, 0, pri);
 
262
 
 
263
        return 0;
 
264
}
 
265
#endif
 
266
 
 
267
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
 
268
extern u32 __skb_get_rxhash(struct sk_buff *skb);
 
269
static inline __u32 skb_get_rxhash(struct sk_buff *skb)
 
270
{
 
271
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34)
 
272
        if (!skb->rxhash)
 
273
#endif
 
274
        return __skb_get_rxhash(skb);
 
275
}
 
276
#endif
 
277
 
254
278
#endif