backfire: generic: rtl8366s: add vlan fid support (backport of r24934)
authorGabor Juhos <juhosg@openwrt.org>
Fri, 14 Jan 2011 18:19:29 +0000 (18:19 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 14 Jan 2011 18:19:29 +0000 (18:19 +0000)
SVN-Revision: 24994

target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c

index f9a4c8c279bbeac329e7f924c0c502921001b35e..f0c21f70592ca0762359843315879f442b50e9cd 100644 (file)
@@ -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,
        },
 };