OSDN Git Service

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)
commit69e2916ebce4410c0f6ba6c59c4f6e9eb228e5ec
tree41bf450dceb4021133d199903682bcc4e9767db8
parent287e0df021e877c2aa5f4750b2a0575070471ddb
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