summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
diff options
context:
space:
mode:
authorPetr Machata2018-02-13 11:27:48 +0100
committerDavid S. Miller2018-02-13 18:26:25 +0100
commita629ef210d890bc279280d5f53ef72e10ad8a523 (patch)
tree7bb6a17cc2aa01e2529e59fa9d3065bba9b53472 /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
parentmlxsw: spectrum: Drop struct span_entry.used (diff)
downloadkernel-qcow2-linux-a629ef210d890bc279280d5f53ef72e10ad8a523.tar.gz
kernel-qcow2-linux-a629ef210d890bc279280d5f53ef72e10ad8a523.tar.xz
kernel-qcow2-linux-a629ef210d890bc279280d5f53ef72e10ad8a523.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
index 6ca6894125f0..f7e61cecc42b 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
@@ -35,6 +35,7 @@
#include "spectrum_acl_flex_actions.h"
#include "core_acl_flex_actions.h"
+#include "spectrum_span.h"
#define MLXSW_SP_KVDL_ACT_EXT_SIZE 1