OSDN Git Service

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)
commitd8dc2c9676e614ef62f54a155b50076888c8a29a
treeb5286e99cf9588944a8ff672a1ca0f0932ee05b9
parent5adcb8b18611c69577fd0f35337ab8d2573712fa
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: 33641994a676 ("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