]> 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)
commit39ec2a52b9d5ec9e928787b624588a4ee8e428b1
tree41bf450dceb4021133d199903682bcc4e9767db8
parente80150e7b9b23d4431e732f998e33d76b4f457a6
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