diff options
| author | Vladimir Oltean <[email protected]> | 2022-05-03 15:01:50 +0300 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-05-04 20:42:15 -0700 |
| commit | 91d350d661bf9c7d4afeb585a81ad694280cc0fb (patch) | |
| tree | 32eac9e804685fee26efda0de3b19c9dc99630aa /tools/perf/scripts/python/syscall-counts.py | |
| parent | 8e90c499bd6816f6dc4127f071179e7bd190e5aa (diff) | |
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 <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions