summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-08-12 17:25:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-08-12 17:25:25 +0000
commite5fd991c6c18e90804dd81c1789373abfc273c1c (patch)
tree1da24baa19cd5b39409a900d7886565a75316165
parent53c3b2a19384ce8657ec62a24ec6d2dfb444a835 (diff)
downloadmaster-31e0f0ae-e5fd991c6c18e90804dd81c1789373abfc273c1c.tar.gz
master-31e0f0ae-e5fd991c6c18e90804dd81c1789373abfc273c1c.tar.bz2
master-31e0f0ae-e5fd991c6c18e90804dd81c1789373abfc273c1c.zip
rtl8367: add support for configuring the VLAN FID
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37760
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8367.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367.c b/target/linux/generic/files/drivers/net/phy/rtl8367.c
index 3cd811e75f..4978a8cb7a 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8367.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367.c
@@ -1592,6 +1592,13 @@ static struct switch_attr rtl8367_vlan[] = {
.max = 1,
.set = NULL,
.get = rtl8366_sw_get_vlan_info,
+ }, {
+ .type = SWITCH_TYPE_INT,
+ .name = "fid",
+ .description = "Get/Set vlan FID",
+ .max = RTL8367_FIDMAX,
+ .set = rtl8366_sw_set_vlan_fid,
+ .get = rtl8366_sw_get_vlan_fid,
},
};