diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-06-20 18:42:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-23 06:33:41 -0700 |
commit | d35bd876afe88e4fe781a4edc376d03eb9d3dcf3 (patch) | |
tree | 44ace2c27fbddbfdc1ff535e15ed409d27d5c909 /drivers/net/dsa/mv88e6xxx.h | |
parent | dsa: mv88x6xxx: Add debugfs interface for statistics (diff) | |
download | linux-dev-d35bd876afe88e4fe781a4edc376d03eb9d3dcf3.tar.xz linux-dev-d35bd876afe88e4fe781a4edc376d03eb9d3dcf3.zip |
dsa: mv88x6xxx: Add debugfs interface for device map
The device map is used to route packets between cascaded switches.
Add dumping a switches device map via debugfs.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index 7cccff202586..a2c9ac0c54ab 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h @@ -260,6 +260,7 @@ #define GLOBAL2_DEVICE_MAPPING 0x06 #define GLOBAL2_DEVICE_MAPPING_UPDATE BIT(15) #define GLOBAL2_DEVICE_MAPPING_TARGET_SHIFT 8 +#define GLOBAL2_DEVICE_MAPPING_PORT_MASK 0x0f #define GLOBAL2_TRUNK_MASK 0x07 #define GLOBAL2_TRUNK_MASK_UPDATE BIT(15) #define GLOBAL2_TRUNK_MASK_NUM_SHIFT 12 |