summaryrefslogtreecommitdiff
path: root/datapath/linux
diff options
context:
space:
mode:
authorJoe Stringer <joe@ovn.org>2016-07-12 15:26:21 -0700
committerJoe Stringer <joe@ovn.org>2016-08-01 14:16:18 -0700
commitfc00853c9cda8015fc521ae48752e1d46195527c (patch)
tree72de7add7166f225b09bf3617d1e9476a1529ee9 /datapath/linux
parentc5c06de4bf8181b1d5ff5de48ce91e666a6f4c0d (diff)
downloadopenvswitch-fc00853c9cda8015fc521ae48752e1d46195527c.tar.gz
compat: IPv6 fragmentation backport cleanups.
Remove a couple of functions that are available on all supported kernel versions. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Pravin B Shelar <pshelar@ovn.org>
Diffstat (limited to 'datapath/linux')
-rw-r--r--datapath/linux/compat/nf_conntrack_reasm.c39
1 files changed, 3 insertions, 36 deletions
diff --git a/datapath/linux/compat/nf_conntrack_reasm.c b/datapath/linux/compat/nf_conntrack_reasm.c
index 2024f1f59..c48459199 100644
--- a/datapath/linux/compat/nf_conntrack_reasm.c
+++ b/datapath/linux/compat/nf_conntrack_reasm.c
@@ -497,7 +497,7 @@ find_prev_fhdr(struct sk_buff *skb, u8 *prevhdrp, int *prevhoff, int *fhoff)
return 0;
}
-int rpl_nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user)
+int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user)
{
struct net_device *dev = skb->dev;
int fhoff, nhoff, ret;
@@ -555,39 +555,6 @@ out_unlock:
inet_frag_put(&fq->q, &nf_frags);
return ret;
}
-EXPORT_SYMBOL_GPL(rpl_nf_ct_frag6_gather);
-
-#ifdef HAVE_INET_FRAGS_CONST
-static void rpl_ip6_frag_init(struct inet_frag_queue *q, const void *a)
-#else
-static void rpl_ip6_frag_init(struct inet_frag_queue *q, void *a)
-#endif
-{
- struct frag_queue *fq = container_of(q, struct frag_queue, q);
- const struct ip6_create_arg *arg = a;
-
- fq->id = arg->id;
- fq->user = arg->user;
- fq->saddr = *arg->src;
- fq->daddr = *arg->dst;
- fq->ecn = arg->ecn;
-}
-
-#ifdef HAVE_INET_FRAGS_CONST
-static bool rpl_ip6_frag_match(const struct inet_frag_queue *q, const void *a)
-#else
-static bool rpl_ip6_frag_match(struct inet_frag_queue *q, void *a)
-#endif
-{
- const struct frag_queue *fq;
- const struct ip6_create_arg *arg = a;
-
- fq = container_of(q, struct frag_queue, q);
- return fq->id == arg->id &&
- fq->user == arg->user &&
- ipv6_addr_equal(&fq->saddr, arg->src) &&
- ipv6_addr_equal(&fq->daddr, arg->dst);
-}
static int nf_ct_net_init(struct net *net)
{
@@ -611,10 +578,10 @@ int rpl_nf_ct_frag6_init(void)
int ret = 0;
nf_frags.hashfn = nf_hashfn;
- nf_frags.constructor = rpl_ip6_frag_init;
+ nf_frags.constructor = ip6_frag_init;
nf_frags.destructor = NULL;
nf_frags.qsize = sizeof(struct frag_queue);
- nf_frags.match = rpl_ip6_frag_match;
+ nf_frags.match = ip6_frag_match;
nf_frags.frag_expire = nf_ct_frag6_expire;
#ifdef HAVE_INET_FRAGS_WITH_FRAGS_WORK
nf_frags.frags_cache_name = nf_frags_cache_name;