aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/include/uapi
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-04-09 14:19:09 +0000
committerJohn Crispin <blogic@openwrt.org>2013-04-09 14:19:09 +0000
commit3dc6fbf96d6a5b8916cd80092c05222172fe8d0b (patch)
treeffdec2659be05cb044abc270c55e4af7c6961f5f /target/linux/generic/files/include/uapi
parentd2f8216c54b1908771ef674094b7009da2ca6ef4 (diff)
downloadupstream-3dc6fbf96d6a5b8916cd80092c05222172fe8d0b.tar.gz
upstream-3dc6fbf96d6a5b8916cd80092c05222172fe8d0b.tar.bz2
upstream-3dc6fbf96d6a5b8916cd80092c05222172fe8d0b.zip
[swconfig] allow loading port maps from OF
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36283 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/include/uapi')
-rw-r--r--target/linux/generic/files/include/uapi/linux/switch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/uapi/linux/switch.h b/target/linux/generic/files/include/uapi/linux/switch.h
index 581caf168a..a59b23953a 100644
--- a/target/linux/generic/files/include/uapi/linux/switch.h
+++ b/target/linux/generic/files/include/uapi/linux/switch.h
@@ -39,6 +39,7 @@ enum {
SWITCH_ATTR_NAME,
SWITCH_ATTR_VLANS,
SWITCH_ATTR_PORTS,
+ SWITCH_ATTR_PORTMAP,
SWITCH_ATTR_CPU_PORT,
/* attributes */
SWITCH_ATTR_OP_ID,
@@ -55,6 +56,14 @@ enum {
SWITCH_ATTR_MAX
};
+enum {
+ /* port map */
+ SWITCH_PORTMAP_PORTS,
+ SWITCH_PORTMAP_SEGMENT,
+ SWITCH_PORTMAP_VIRT,
+ SWITCH_PORTMAP_MAX
+};
+
/* commands */
enum {
SWITCH_CMD_UNSPEC,