]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: CT: Add support for mirroring
authorPaul Blakey <paulb@mellanox.com>
Mon, 21 Sep 2020 08:49:26 +0000 (11:49 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Mar 2021 23:29:33 +0000 (15:29 -0800)
commit7c35c51d66ac3a69bc7d0abe476d7ac0577b3689
tree41bf450dceb4021133d199903682bcc4e9767db8
parent544fd4b0f5bca63acd132fde16f080ed7155f890
net/mlx5: CT: Add support for mirroring

Add support for mirroring before the CT action by spliting the pre ct rule.
Mirror outputs are done first on the tc chain,prio table rule (the fwd
rule), which will then forward to a per port fwd table.
On this fwd table, we insert the original pre ct rule that forwards to
ct/ct nat table.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c