diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-02-16 16:30:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-17 14:06:51 +0000 |
commit | 85ea0daabe5abc6add440f86565b7b9f6aff5535 (patch) | |
tree | 6be945567956e1fcf1b2136164eea6c8ef2b05ac /sound/ppc/snd_ps3.c | |
parent | b9bace6e534d431871a9d69cbd06d3a798f5086d (diff) | |
download | linux-85ea0daabe5abc6add440f86565b7b9f6aff5535.tar.bz2 |
net: mscc: ocelot: avoid overlap in VCAP IS2 between PTP and MRP traps
OCELOT_VCAP_IS2_TAG_8021Q_TXVLAN overlaps with OCELOT_VCAP_IS2_MRP_REDIRECT.
To avoid this, make OCELOT_VCAP_IS2_MRP_REDIRECT take the cookie region
from N to 2 * N - 1 (where N is ocelot->num_phys_ports).
To avoid any risk that the singleton (not per port) VCAP IS2 filters
overlap with per-port VCAP IS2 filters, we must ensure that the number
of singleton filters is smaller than the number of physical ports.
This is true right now, but may change in the future as switches with
less ports get supported, or more singleton filters get added. So to be
future-proof, let's move the singleton filters at the end of the range,
where they won't overlap with anything to their right.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/ppc/snd_ps3.c')
0 files changed, 0 insertions, 0 deletions