mlxsw: spectrum_span: Move SPAN operations out of global file
authorIdo Schimmel <idosch@mellanox.com>
Fri, 10 Jul 2020 21:55:06 +0000 (00:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2020 00:22:21 +0000 (17:22 -0700)
commit4bafb85ae24418cfa42ad3cb9f67031b1813fea8
tree0a97941cf0772a7fe5ea3ff765b73a32fdb68e84
parentc0e3969b07dc05eafcd0c35d20c134d3f7d360ed
mlxsw: spectrum_span: Move SPAN operations out of global file

The per-ASIC SPAN operations are relevant to the SPAN module and
therefore should be implemented there and not in the main driver file.
Move them.

These operations will be extended later on.

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