summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorFaicker Mo <faicker.mo@ucloud.cn>2023-04-23 05:29:57 +0300
committerFlorian Westphal <fw@strlen.de>2023-05-18 09:48:55 +0300
commitd671fd82eaa9bceedd48ea2b0679a9a6bbcd6532 (patch)
tree0ac483139b9347d48b3e5b48b8de68a81cfc623f /net
parenta2a0ffb0846895923991aa87e022dc228d53c125 (diff)
downloadlinux-d671fd82eaa9bceedd48ea2b0679a9a6bbcd6532.tar.xz
netfilter: conntrack: allow insertion clash of gre protocol
NVGRE tunnel is used in the VM-to-VM communications. The VM packets are encapsulated in NVGRE and sent from the host. For NVGRE there are two tuples(outer sip and outer dip) in the host conntrack item. Insertion clashes are more likely to happen if the concurrent connections are sent from the VM. Signed-off-by: Faicker Mo <faicker.mo@ucloud.cn> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_proto_gre.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_proto_gre.c b/net/netfilter/nf_conntrack_proto_gre.c
index 728eeb0aea87..ad6f0ca40cd2 100644
--- a/net/netfilter/nf_conntrack_proto_gre.c
+++ b/net/netfilter/nf_conntrack_proto_gre.c
@@ -296,6 +296,7 @@ void nf_conntrack_gre_init_net(struct net *net)
/* protocol helper struct */
const struct nf_conntrack_l4proto nf_conntrack_l4proto_gre = {
.l4proto = IPPROTO_GRE,
+ .allow_clash = true,
#ifdef CONFIG_NF_CONNTRACK_PROCFS
.print_conntrack = gre_print_conntrack,
#endif