net: sched: update the nat flag for icmp error packets in ct_nat_execute
authorXin Long <lucien.xin@gmail.com>
Thu, 8 Dec 2022 16:56:11 +0000 (11:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Dec 2022 10:14:03 +0000 (10:14 +0000)
commit0564c3e51bc7bb200e76d0cad2d7067cc77cb83e
treef366544f8671e7172040614a6ebebabd592da840
parent2b85144ab36e0e870f59b5ae55e299179eb8cdb8
net: sched: update the nat flag for icmp error packets in ct_nat_execute

In ovs_ct_nat_execute(), the packet flow key nat flags are updated
when it processes ICMP(v6) error packets translation successfully.

In ct_nat_execute() when processing ICMP(v6) error packets translation
successfully, it should have done the same in ct_nat_execute() to set
post_ct_s/dnat flag, which will be used to update flow key nat flags
in OVS module later.

Reviewed-by: Saeed Mahameed <saeed@kernel.org>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ct.c