Skip to content
Snippets Groups Projects
Commit 8098d30b authored by Vladimir Oltean's avatar Vladimir Oltean
Browse files

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: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
parent 2f10e06e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment