Skip to content

Commit

Permalink
compat: Detect and use inet_getpeer_v4().
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
  • Loading branch information
joestringer committed Feb 2, 2016
1 parent 7d2cb6c commit 2035a48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions acinclude.m4
Expand Up @@ -359,6 +359,8 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
[frags_work])
OVS_FIND_FIELD_IFELSE([$KSRC/include/net/inet_frag.h], [inet_frags],
[rwlock])
OVS_GREP_IFELSE([$KSRC/include/net/inetpeer.h], [vif],
[OVS_DEFINE([HAVE_INETPEER_VIF_SUPPORT])])
OVS_GREP_IFELSE([$KSRC/include/net/dst_metadata.h], [metadata_dst])
Expand Down
3 changes: 2 additions & 1 deletion datapath/linux/compat/include/net/inetpeer.h
Expand Up @@ -3,7 +3,8 @@

#include_next <net/inetpeer.h>

#ifdef OVS_FRAGMENT_BACKPORT
#if defined(OVS_FRAGMENT_BACKPORT) && \
!defined(HAVE_INETPEER_VIF_SUPPORT)
static inline struct inet_peer *rpl_inet_getpeer_v4(struct inet_peer_base *base,
__be32 v4daddr, int vif,
int create)
Expand Down

0 comments on commit 2035a48

Please sign in to comment.