datapath: Check for backported skb_frag_page().
[sliver-openvswitch.git] / datapath / linux / compat / include / linux / skbuff.h
index 01e524e..7fbe9d8 100644 (file)
@@ -238,7 +238,7 @@ static inline bool skb_warn_if_lro(const struct sk_buff *skb)
 #define consume_skb kfree_skb
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)
+#ifndef HAVE_SKB_FRAG_PAGE
 static inline struct page *skb_frag_page(const skb_frag_t *frag)
 {
        return frag->page;