diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-04-30 20:01:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-30 13:02:32 -0700 |
commit | ed04458d4a900005d96b991fc0eb938875091047 (patch) | |
tree | 443afaf096f13b0dca7d8ca13029e271a9d48599 /drivers/ntb | |
parent | 466010342e89240c45746f65767c7290b96a4b36 (diff) |
mlxsw: spectrum_span: Add APIs to get / put an analyzed port
An analyzed port is a port whose incoming / outgoing traffic is mirrored
to a SPAN agent and analyzed on a remote server.
A port can be analyzed by multiple tc filters and therefore the
corresponding analyzed port entry needs to be reference counted. This is
significant because ports whose outgoing traffic is analyzed need to
have an egress mirror buffer.
Add APIs to get / put an analyzed port. Allocate an egress mirror buffer
on a port when it is first inspected at egress and free the buffer when
it is no longer inspected at egress.
Protect the list of analyzed ports with a mutex, as a later patch will
traverse it from a context in which RTNL lock is not held.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ntb')
0 files changed, 0 insertions, 0 deletions