]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net/sched: act_ct: handle DNAT tuple collision
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Wed, 9 Jun 2021 14:23:56 +0000 (11:23 -0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:27:35 +0000 (19:27 +0200)
commit0159c7115191bec6445717b5dc8cd012150e7da2
tree21a5cf7c88b0bf9598e3089fd12a3a7797637954
parent79b014560ee808d5dec95e4bdf772ec560f47cda
net/sched: act_ct: handle DNAT tuple collision

BugLink: https://bugs.launchpad.net/bugs/1934179
[ Upstream commit 13c62f5371e3eb4fc3400cfa26e64ca75f888008 ]

This this the counterpart of 8aa7b526dc0b ("openvswitch: handle DNAT
tuple collision") for act_ct. From that commit changelog:

"""
With multiple DNAT rules it's possible that after destination
translation the resulting tuples collide.

...

Netfilter handles this case by allocating a null binding for SNAT at
egress by default.  Perform the same operation in openvswitch for DNAT
if no explicit SNAT is requested by the user and allocate a null binding
for SNAT for packets in the "original" direction.
"""

Fixes: 95219afbb980 ("act_ct: support asymmetric conntrack")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/sched/act_ct.c