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)
commita629ef210d890bc279280d5f53ef72e10ad8a523
tree7bb6a17cc2aa01e2529e59fa9d3065bba9b53472
parentce470b44e256a5c25ae1f45a3086e6838fe52ecd
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]