[ovs-dev] [PATCH] datapath: Fix inet_get_local_port_range() backport.

Pravin B Shelar pshelar at nicira.com
Tue Nov 10 16:18:20 UTC 2015


Remove unnecessary check and definition of inet_get_local_port_range.
It is already there in ip.h

Reported-by: Joe Stringer <joestringer at nicira.com>
Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
---
 datapath/linux/compat/include/net/udp.h |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/datapath/linux/compat/include/net/udp.h b/datapath/linux/compat/include/net/udp.h
index fcb8f6a..d078b79 100644
--- a/datapath/linux/compat/include/net/udp.h
+++ b/datapath/linux/compat/include/net/udp.h
@@ -1,17 +1,7 @@
 #ifndef __NET_UDP_WRAPPER_H
 #define __NET_UDP_WRAPPER_H  1
 
-#include <linux/version.h>
-
-#ifdef inet_get_local_port_range
-/* RHEL7 backports udp_flow_src_port() using an older version of
- * inet_get_local_port_range(). */
-#undef inet_get_local_port_range
-#include_next <net/udp.h>
-#define inet_get_local_port_range rpl_inet_get_local_port_range
-#else
 #include_next <net/udp.h>
-#endif
 
 #ifndef HAVE_UDP_FLOW_SRC_PORT
 static inline __be16 rpl_udp_flow_src_port(struct net *net, struct sk_buff *skb,
-- 
1.7.1




More information about the dev mailing list