]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Move SPAN code to separate module
authorPetr Machata <petrm@mellanox.com>
Tue, 13 Feb 2018 10:27:48 +0000 (11:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Feb 2018 17:26:25 +0000 (12:26 -0500)
commit66380a155a13363deef54096d3eb7d3742d9d172
tree7bb6a17cc2aa01e2529e59fa9d3065bba9b53472
parenta44ad18e403e15caab98dffb2e6837805a9ab33e
mlxsw: spectrum: Move SPAN code to separate module

For the upcoming work on SPAN, it makes sense to move the current code
to a module of its own. It already has a well-defined API boundary to
the mirror management (which is used from matchall and ACL code). A
couple more functions need to be exported for the functions that
spectrum.c needs to use for MTU handling and subsystem init/fini.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h [new file with mode: 0644]