]> git.baikalelectronics.ru Git - kernel.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)
commit1ff4d4c57f5b80a9d69d6e86b818f22d6dc7beab
tree27046712fb95affd4887ef64fcc30f983302d88e
parentded8e1ca09d80d4a06d7990bcc53ccfdd15b8034
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