]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Move a mirroring check to mlxsw_sp_span_entry_create
authorPetr Machata <petrm@mellanox.com>
Tue, 27 Feb 2018 13:53:47 +0000 (14:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 19:46:27 +0000 (14:46 -0500)
commita01e4625d4ccae690a5f1bbc1c6ec9f6cd7575a6
tree6763936da226ab655a63c7b8f78c811c0696140a
parent5e72aeb48ce5b445d9720e87f6e5601f4ee6cff2
mlxsw: Move a mirroring check to mlxsw_sp_span_entry_create

The check for whether a mirror port (which is a mlxsw front panel port)
belongs to the same mlxsw instance as the mirrored port, is currently
only done in spectrum_acl, even though it's applicable for the matchall
case as well. Thus move it to mlxsw_sp_span_entry_create().

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