mirror of
https://github.com/openvswitch/ovs
synced 2025-10-15 14:17:18 +00:00
datapath: compat: Fix skb_has_frag_list definition.
RHEL6-openstack kernel has already replaced skb_has_frags with skb_has_frag_list(). Fix compilation error on RHEL6-openstack. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
@@ -257,6 +257,7 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
|
||||
[OVS_DEFINE([HAVE_SKB_WARN_LRO])])
|
||||
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [consume_skb])
|
||||
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_frag_page])
|
||||
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_has_frag_list])
|
||||
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [__skb_fill_page_desc])
|
||||
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_reset_mac_len])
|
||||
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_unclone])
|
||||
|
@@ -265,7 +265,7 @@ void skb_zerocopy(struct sk_buff *to, const struct sk_buff *from, int len,
|
||||
#endif
|
||||
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
|
||||
#ifndef HAVE_SKB_HAS_FRAG_LIST
|
||||
#define skb_has_frag_list skb_has_frags
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user