diff options
author | Danielle Ratson <danieller@mellanox.com> | 2019-09-26 14:43:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-11 18:36:49 +0200 |
commit | 44a7413724e916331a37b2b8f24fd7ee0e82e4e1 (patch) | |
tree | dc2d529305321e31a9a34a03dda7866e26075efa /net/lapb/lapb_timer.c | |
parent | bbfd41bf39a5303cb2b5bc16ff2da79145046777 (diff) |
mlxsw: spectrum_flower: Fail in case user specifies multiple mirror actions
[ Upstream commit 52feb8b588f6d23673dd7cc2b44b203493b627f6 ]
The ASIC can only mirror a packet to one port, but when user is trying
to set more than one mirror action, it doesn't fail.
Add a check if more than one mirror action was specified per rule and if so,
fail for not being supported.
Fixes: d0d13c1858a11 ("mlxsw: spectrum_acl: Add support for mirror action")
Signed-off-by: Danielle Ratson <danieller@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions