net: dsa: mv88e6xxx: add IEEE and IP mapping ops
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 11 May 2018 21:16:35 +0000 (17:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2018 18:49:40 +0000 (14:49 -0400)
commit93e18d61bfa950aaffff5fccde0f974e1e038f83
tree3ee67f8867eebd0580d43acf303f00357a5c59a2
parent408d2debb03e15f3dd3063a5a14befd3390c6eab
net: dsa: mv88e6xxx: add IEEE and IP mapping ops

All Marvell switch families except 88E6390 have direct registers in
Global 1 for IEEE and IP priorities override mapping. The 88E6390 uses
indirect tables instead.

Add .ieee_pri_map and .ip_pri_map ops to distinct that and call them
from a mv88e6xxx_pri_setup helper. Only non-6390 are concerned ATM.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/global1.c
drivers/net/dsa/mv88e6xxx/global1.h