diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-04-20 21:26:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-04-20 21:26:39 +0000 |
commit | f6f55bae7d4eeb753be2949f718a49fd39f85519 (patch) | |
tree | 84e13ac48c8ad669bb3df72df58d6df16eda2821 /target/linux/generic-2.6/files/include | |
parent | 4320a28228222c76b0c67fb8ef470d9886195990 (diff) | |
download | mtk-20170518-f6f55bae7d4eeb753be2949f718a49fd39f85519.zip mtk-20170518-f6f55bae7d4eeb753be2949f718a49fd39f85519.tar.gz mtk-20170518-f6f55bae7d4eeb753be2949f718a49fd39f85519.tar.bz2 |
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)
SVN-Revision: 15307
Diffstat (limited to 'target/linux/generic-2.6/files/include')
-rw-r--r-- | target/linux/generic-2.6/files/include/linux/switch.h | 2 |
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 ef6b8f2..75c7dcf 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); }; |