mlxsw: spectrum_span: Prevent duplicate mirrors
authorIdo Schimmel <idosch@mellanox.com>
Fri, 23 Mar 2018 18:03:58 +0000 (21:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Mar 2018 01:50:28 +0000 (21:50 -0400)
commit353def80c3d37a8e4a196b6856df4bc8c67304bf
tree6b48bbff961a34d6cc819e6fd943603b885fb0b4
parentf452518c982e57538e6d49da0a2c80eef22087ab
mlxsw: spectrum_span: Prevent duplicate mirrors

In net commit 8175f7c4736f ("mlxsw: spectrum: Prevent duplicate
mirrors") we prevented the user from mirroring more than once from a
single binding point (port-direction pair).

The fix was essentially reverted in a merge conflict resolution when net
was merged into net-next. Restore it.

Fixes: 03fe2debbb27 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c