aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-20 21:26:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-20 21:26:39 +0000
commit091c38c9347fbe52f4612f93b5b9424056c43e0b (patch)
tree2bba7e7551f7016ffeacd1140ae30b5572500db0 /target/linux/generic-2.6/files/include
parent01c16ed09b8a648bbaa5538fe3ebf6c1b70b070c (diff)
downloadupstream-091c38c9347fbe52f4612f93b5b9424056c43e0b.tar.gz
upstream-091c38c9347fbe52f4612f93b5b9424056c43e0b.tar.bz2
upstream-091c38c9347fbe52f4612f93b5b9424056c43e0b.zip
swconfig: add a generic method for setting the port primary vlan id (used for transparently fixing up pvid for untagged port when setting vlan ports)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15307 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files/include')
-rw-r--r--target/linux/generic-2.6/files/include/linux/switch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/files/include/linux/switch.h b/target/linux/generic-2.6/files/include/linux/switch.h
index ef6b8f2ea4..75c7dcfa91 100644
--- a/target/linux/generic-2.6/files/include/linux/switch.h
+++ b/target/linux/generic-2.6/files/include/linux/switch.h
@@ -129,6 +129,8 @@ struct switch_dev {
int (*get_vlan_ports)(struct switch_dev *dev, struct switch_val *val);
int (*set_vlan_ports)(struct switch_dev *dev, struct switch_val *val);
+ int (*get_port_pvid)(struct switch_dev *dev, int port, int *val);
+ int (*set_port_pvid)(struct switch_dev *dev, int port, int val);
int (*apply_config)(struct switch_dev *dev);
};