]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e6608769729eff52eacdc105c1b35a748541dd0
treeba5c25db0921a8ddd012c4799f05429ed802c745
parentbdbf39035adb5b51eb74c7ba4abf356878b07cd5
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