]> git.proxmox.com Git - mirror_ovs.git/commitdiff
compat: Remove stale code.
authorGreg Rose <gvrose8192@gmail.com>
Thu, 12 Nov 2020 23:10:37 +0000 (15:10 -0800)
committerIlya Maximets <i.maximets@ovn.org>
Mon, 16 Nov 2020 16:35:17 +0000 (17:35 +0100)
Remove stale and unused code left over after support for kernels
older than 3.10 was removed.

Fixes: 8063e0958780 ("datapath: Drop support for kernel older than 3.10")
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
acinclude.m4
datapath/linux/compat/include/linux/percpu.h
datapath/linux/compat/include/linux/skbuff.h

index feded3c3f4a5a32eb6fbb6551176ebb940bf5b8b..a8afcef4345601379dbb87890dbaa66edea8eec9 100644 (file)
@@ -875,8 +875,6 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
 
   OVS_GREP_IFELSE([$KSRC/include/net/sock.h], [sk_no_check_tx])
   OVS_GREP_IFELSE([$KSRC/include/linux/udp.h], [no_check6_tx])
-  OVS_GREP_IFELSE([$KSRC/include/linux/utsrelease.h], [el6],
-                  [OVS_DEFINE([HAVE_RHEL6_PER_CPU])])
   OVS_FIND_PARAM_IFELSE([$KSRC/include/net/protocol.h],
                         [udp_add_offload], [net],
                         [OVS_DEFINE([HAVE_UDP_ADD_OFFLOAD_TAKES_NET])])
index 7c346aa31ab9d048bff38130a301828bc258334f..a039142e222333f8eda1afaac2fe5d65803f53e8 100644 (file)
@@ -7,12 +7,6 @@
 #define this_cpu_ptr(ptr) per_cpu_ptr(ptr, smp_processor_id())
 #endif
 
-#ifdef HAVE_RHEL6_PER_CPU
-#undef this_cpu_read
-#undef this_cpu_inc
-#undef this_cpu_dec
-#endif
-
 #if !defined this_cpu_read
 #define this_cpu_read(ptr) percpu_read(ptr)
 #endif
index 4a6ac2384c6064b5090bc0e9fa4b63b7cb071e13..9828f811d9f21fdde752a0161ca1d01aa112441c 100644 (file)
@@ -278,7 +278,7 @@ static inline void skb_clear_hash(struct sk_buff *skb)
 #ifdef HAVE_RXHASH
        skb->rxhash = 0;
 #endif
-#if defined(HAVE_L4_RXHASH) && !defined(HAVE_RHEL_OVS_HOOK)
+#if defined(HAVE_L4_RXHASH)
        skb->l4_rxhash = 0;
 #endif
 }