mlxsw: spectrum_matchall: Restrict sample action to be allowed only on ingress
authorJiri Pirko <jiri@mellanox.com>
Sat, 9 May 2020 20:06:02 +0000 (23:06 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 23:02:43 +0000 (16:02 -0700)
commit18aa23b31f6c8e3f4b01b70a8a4eab873e2eb710
treeba5c25db0921a8ddd012c4799f05429ed802c745
parent72ef908bb3ff9261dc38d079ef332c91418f8693
mlxsw: spectrum_matchall: Restrict sample action to be allowed only on ingress

HW supports packet sampling on ingress only. Check and fail if user
is adding sample on egress.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c