rtl8367: add support for configuring the VLAN FID

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

SVN-Revision: 37760
lede-17.01
Felix Fietkau 2013-08-12 17:25:25 +00:00
parent 53c3b2a193
commit e5fd991c6c
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,
}, },
}; };