diff options
author | 2022-05-03 15:01:50 +0300 | |
---|---|---|
committer | 2022-05-04 20:42:15 -0700 | |
commit | 91d350d661bf9c7d4afeb585a81ad694280cc0fb (patch) | |
tree | 32eac9e804685fee26efda0de3b19c9dc99630aa /net/core/dev.c | |
parent | net: mscc: ocelot: drop port argument from qos_policer_conf_set (diff) | |
download | linux-rng-91d350d661bf9c7d4afeb585a81ad694280cc0fb.tar.xz linux-rng-91d350d661bf9c7d4afeb585a81ad694280cc0fb.zip |
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 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions