mlxsw: spectrum: Convert matchall-based mirroring to new SPAN API
authorIdo Schimmel <idosch@mellanox.com>
Thu, 30 Apr 2020 17:01:13 +0000 (20:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 20:02:32 +0000 (13:02 -0700)
commitc1d7845dfbd3dfeed2cd7bf92ec10ea97ef5d7fd
treec0432ae4513280191de9ed11cd4ab460267e21fa
parentc056618c53a771bacf4e077e8be01de4405439ae
mlxsw: spectrum: Convert matchall-based mirroring to new SPAN API

In matchall-based mirroring, mirroring is not done with ACLs, but a SPAN
agent is bound to the ingress / egress of a port and all incoming /
outgoing traffic is mirrored.

Convert this type of mirroring to use the new API.

First the SPAN agent is resolved, then the port is marked as analyzed
and its egress mirror buffer is potentially allocated. Lastly, the
binding is performed.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c