OSDN Git Service

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)
commit52a6444cda7d1b6fc6f6ff84e2d23cdb71c84102
tree6763936da226ab655a63c7b8f78c811c0696140a
parent803335acbe3371f1c0e9dd02f318b16f5abc22f4
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