summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_core.c
diff options
context:
space:
mode:
authorFlorian Westphal2018-06-25 17:55:32 +0200
committerPablo Neira Ayuso2018-07-16 17:51:48 +0200
commit60e3be94e6a1c5162a0763c9aafb5190b2b1fdce (patch)
treeb491a67ce521a4c7bce187e901972c6898c6dc04 /net/netfilter/nf_conntrack_core.c
parentnetfilter: utils: move nf_ip6_checksum* from ipv6 to utils (diff)
downloadkernel-qcow2-linux-60e3be94e6a1c5162a0763c9aafb5190b2b1fdce.tar.gz
kernel-qcow2-linux-60e3be94e6a1c5162a0763c9aafb5190b2b1fdce.tar.xz
kernel-qcow2-linux-60e3be94e6a1c5162a0763c9aafb5190b2b1fdce.zip
openvswitch: use nf_ct_get_tuplepr, invert_tuplepr
These versions deal with the l3proto/l4proto details internally. It removes only caller of nf_ct_get_tuple, so make it static. After this, l3proto->get_l4proto() can be removed in a followup patch. Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pravin B Shelar <pshelar@ovn.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_core.c')
-rw-r--r--net/netfilter/nf_conntrack_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 85ab2fd6a665..be0ab81e6b2c 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -222,7 +222,7 @@ static u32 hash_conntrack(const struct net *net,
return scale_hash(hash_conntrack_raw(tuple, net));
}
-bool
+static bool
nf_ct_get_tuple(const struct sk_buff *skb,
unsigned int nhoff,
unsigned int dataoff,
@@ -244,7 +244,6 @@ nf_ct_get_tuple(const struct sk_buff *skb,
return l4proto->pkt_to_tuple(skb, dataoff, net, tuple);
}
-EXPORT_SYMBOL_GPL(nf_ct_get_tuple);
bool nf_ct_get_tuplepr(const struct sk_buff *skb, unsigned int nhoff,
u_int16_t l3num,