]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/sched: act_ct: add nat mangle action only for NAT-conntrack
authorwenxu <wenxu@ucloud.cn>
Sat, 30 May 2020 05:54:51 +0000 (13:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 00:57:58 +0000 (17:57 -0700)
commit05aa69e5cba61d8900970a364825f854401694ec
tree27046712fb95affd4887ef64fcc30f983302d88e
parent1b49cd71b52403822731dc9f283185d1da355f97
net/sched: act_ct: add nat mangle action only for NAT-conntrack

Currently add nat mangle action with comparing invert and orig tuple.
It is better to check IPS_NAT_MASK flags first to avoid non necessary
memcmp for non-NAT conntrack.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ct.c