Browse Source

rtl8367: add support for configuring the VLAN FID

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 37760
Felix Fietkau 12 years ago
parent
commit
e5fd991c6c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      target/linux/generic/files/drivers/net/phy/rtl8367.c

+ 7 - 0
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,
 	},
 };