diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-06-21 13:46:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-23 05:41:05 +0200 |
commit | 471beb11c4ecdefd1d8502861c5e151fd642dc6e (patch) | |
tree | afe408f4c64ec54c6dfd0c808de3cc74e5f2136e /include | |
parent | net: mscc: ocelot: fix encoding destination ports into multicast IPv4 address (diff) | |
download | linux-471beb11c4ecdefd1d8502861c5e151fd642dc6e.tar.xz linux-471beb11c4ecdefd1d8502861c5e151fd642dc6e.zip |
net: mscc: ocelot: make the NPI port a proper target for FDB and MDB
When used in DSA mode (as seen in Felix), the DEST_IDX in the MAC table
should point to the PGID for the CPU port (PGID_CPU) and not for the
Ethernet port where the CPU queues are redirected to (also known as Node
Processor Interface - NPI).
Because for Felix this distinction shouldn't really matter (from DSA
perspective, the NPI port _is_ the CPU port), make the ocelot library
act upon the CPU port when NPI mode is enabled. This has no effect for
the mscc_ocelot driver for VSC7514, because that does not use NPI (and
ocelot->npi is -1).
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions