summaryrefslogtreecommitdiff
path: root/datapath/linux
diff options
context:
space:
mode:
authorGreg Rose <gvrose8192@gmail.com>2019-10-16 13:21:11 -0700
committerWilliam Tu <u9012063@gmail.com>2019-10-17 10:29:00 -0700
commit63c2321dbac146d1fa8087ff9656872a69ddf842 (patch)
tree8169e1c62b1adc7ab99ccb14787e41816dac9f26 /datapath/linux
parent81a29c0abd10e219979c165a4883489eb4cee24b (diff)
downloadopenvswitch-63c2321dbac146d1fa8087ff9656872a69ddf842.tar.gz
compat: Fix small naming issue
In commit 057772cf2477 the function is missing the rpl_ prefix and the define that replaces the original function should come after the function definition. Fixes: 057772cf2477 ("compat: Backport nf_ct_tmpl_alloc().") Signed-off-by: Greg Rose <gvrose8192@gmail.com> Signed-off-by: William Tu <u9012063@gmail.com>
Diffstat (limited to 'datapath/linux')
-rw-r--r--datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h b/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h
index 10158011f..84cb09e65 100644
--- a/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h
+++ b/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h
@@ -7,11 +7,10 @@
#include <net/netfilter/nf_conntrack_zones.h>
-#define nf_ct_tmpl_alloc rpl_nf_ct_tmpl_alloc
/* Released via destroy_conntrack() */
static inline struct nf_conn *
-nf_ct_tmpl_alloc(struct net *net, const struct nf_conntrack_zone *zone,
- gfp_t flags)
+rpl_nf_ct_tmpl_alloc(struct net *net, const struct nf_conntrack_zone *zone,
+ gfp_t flags)
{
struct nf_conn *tmpl;
@@ -32,6 +31,7 @@ out_free:
kfree(tmpl);
return NULL;
}
+#define nf_ct_tmpl_alloc rpl_nf_ct_tmpl_alloc
static void rpl_nf_ct_tmpl_free(struct nf_conn *tmpl)
{