diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-03-29 13:09:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-29 13:37:26 -0700 |
commit | 17b96a5cbe3d0c743c49776e90d892844c226a56 (patch) | |
tree | e4310c31fb477593bd5f71d9a4a46e3d93ef4b39 /tools | |
parent | c3572a0b731fc0de13afef300f1f5afb929e4d4c (diff) |
mlxsw: spectrum: Veto sampling if already enabled on port
The per-port sampling triggers (i.e., ingress / egress) cannot be
enabled twice. Meaning, the below configuration will not result in
packets being sampled twice:
# tc filter add dev swp1 ingress matchall skip_sw action sample rate 100 group 1
# tc filter add dev swp1 ingress matchall skip_sw action sample rate 100 group 1
Therefore, reject such configurations.
Fixes: 90f53c53ec4a ("mlxsw: spectrum: Start using sampling triggers hash table")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions