]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 22:34:51 +0000 (15:34 -0700)
commit3224c006e5edf2147b18de976ad2345e1c5737fb
treec4fc58c477b54435953d60fff561da9e75cfe1e6
parentf2701e8afd8a1502e51f0c58e06085fe4449cad6
net/sched: act_ct: handle DNAT tuple collision

This this the counterpart of 97a0b8d50d2c ("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: 6c5b5ef06df8 ("act_ct: support asymmetric conntrack")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ct.c