]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Preserve priority when setting CPU port.
authorAndrew Lunn <andrew@lunn.ch>
Sat, 4 Jan 2020 22:14:51 +0000 (23:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 21:35:11 +0000 (13:35 -0800)
commit67ecf70b4686c8a069899cf850128b8f7b4656fb
treeb5286e99cf9588944a8ff672a1ca0f0932ee05b9
parent27d39201a36f46b1ce30c1fe6605442277a7f1f8
net: dsa: mv88e6xxx: Preserve priority when setting CPU port.

The 6390 family uses an extended register to set the port connected to
the CPU. The lower 5 bits indicate the port, the upper three bits are
the priority of the frames as they pass through the switch, what
egress queue they should use, etc. Since frames being set to the CPU
are typically management frames, BPDU, IGMP, ARP, etc set the priority
to 7, the reset default, and the highest.

Fixes: fcf2e16a7f29 ("net: dsa: mv88e6xxx: Monitor and Management tables")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/global1.c
drivers/net/dsa/mv88e6xxx/global1.h