aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/ar8216.h
diff options
context:
space:
mode:
authorGünther Kelleter <guenther.kelleter@devolo.de>2018-11-26 15:44:31 +0100
committerJohn Crispin <john@phrozen.org>2018-11-26 18:41:21 +0100
commit33878b0a40707a53920ec72a92430ab420b0893f (patch)
tree913763fe9579e7d3186a237e07e5dea2e9905926 /target/linux/generic/files/drivers/net/phy/ar8216.h
parentbe3e69d99189636d5f0854bd3a91e004b2c370e0 (diff)
downloadupstream-33878b0a40707a53920ec72a92430ab420b0893f.tar.gz
upstream-33878b0a40707a53920ec72a92430ab420b0893f.tar.bz2
upstream-33878b0a40707a53920ec72a92430ab420b0893f.zip
kernel: ar8xxx: get_arl_table now shows all ports of an entry
Multicast ARL entries can have multiple destination ports. Get and dump all destination ports of each entry, not just the lowest. Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.h')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.h b/target/linux/generic/files/drivers/net/phy/ar8216.h
index ba0e0ddccd..509818c50d 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.h
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.h
@@ -112,6 +112,7 @@
#define AR8216_REG_ATU_FUNC2 0x0058
#define AR8216_ATU_PORTS BITS(0, 6)
+#define AR8216_ATU_PORTS_S 0
#define AR8216_ATU_PORT0 BIT(0)
#define AR8216_ATU_PORT1 BIT(1)
#define AR8216_ATU_PORT2 BIT(2)
@@ -367,7 +368,7 @@ enum arl_op {
};
struct arl_entry {
- u8 port;
+ u16 portmap;
u8 mac[6];
};