diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-05-03 15:01:50 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-05 06:42:15 +0300 |
commit | 91d350d661bf9c7d4afeb585a81ad694280cc0fb (patch) | |
tree | 32eac9e804685fee26efda0de3b19c9dc99630aa /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8e90c499bd6816f6dc4127f071179e7bd190e5aa (diff) | |
download | linux-91d350d661bf9c7d4afeb585a81ad694280cc0fb.tar.xz |
net: mscc: ocelot: don't use magic numbers for OCELOT_POLICER_DISCARD
OCELOT_POLICER_DISCARD helps "kill dropped packets dead" since a
PERMIT/DENY mask mode with a port mask of 0 isn't enough to stop the CPU
port from receiving packets removed from the forwarding path.
The hardcoded initialization done for it in ocelot_vcap_init() is
confusing. All we need from it is to have a rate and a burst size of 0.
Reuse qos_policer_conf_set() for that purpose.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions