aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-01-08 18:04:00 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-01-08 18:04:00 +0000
commit72097d9b9847105118ef4300144a1ae28c863fc6 (patch)
treef5b51f89519c72664e771ffba4618d9a58f211b1 /target/linux
parent103c1475655d2b5a2d04f39ad44f93ee2a0443a9 (diff)
downloadupstream-72097d9b9847105118ef4300144a1ae28c863fc6.tar.gz
upstream-72097d9b9847105118ef4300144a1ae28c863fc6.tar.bz2
upstream-72097d9b9847105118ef4300144a1ae28c863fc6.zip
generic: rtl8366s: add vlan fid support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24934 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366s.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index f9a4c8c279..f0c21f7059 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@ -883,6 +883,13 @@ static struct switch_attr rtl8366s_vlan[] = {
.max = 1,
.set = NULL,
.get = rtl8366_sw_get_vlan_info,
+ }, {
+ .type = SWITCH_TYPE_INT,
+ .name = "fid",
+ .description = "Get/Set vlan FID",
+ .max = RTL8366S_FIDMAX,
+ .set = rtl8366_sw_set_vlan_fid,
+ .get = rtl8366_sw_get_vlan_fid,
},
};