rtl8367: add support for configuring the VLAN FID

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37760 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2013-08-12 17:25:25 +00:00
parent 45e13d91a6
commit b10717fee9
1 changed files with 7 additions and 0 deletions

View File

@ -1592,6 +1592,13 @@ static struct switch_attr rtl8367_vlan[] = {
.max = 1, .max = 1,
.set = NULL, .set = NULL,
.get = rtl8366_sw_get_vlan_info, .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,
}, },
}; };