From 56f15bb5f9d1815311c5d511ae1a57d43f290e98 Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 16 Apr 2010 19:32:40 +0000 Subject: swconfig: Add cpu port index to help output. Let swconfig provide the cpu port index in its help page. This is needed as e.g. Atheros switches have their cpu port at port 0, not port 5. This could allow e.g. luci to get a rough overview of the layout of the switch. Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20939 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic-2.6/files/include/linux/switch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'target/linux/generic-2.6/files/include') 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 98b86e851..25aedb83b 100644 --- a/target/linux/generic-2.6/files/include/linux/switch.h +++ b/target/linux/generic-2.6/files/include/linux/switch.h @@ -40,6 +40,7 @@ enum { SWITCH_ATTR_DEV_NAME, SWITCH_ATTR_VLANS, SWITCH_ATTR_PORTS, + SWITCH_ATTR_CPU_PORT, /* attributes */ SWITCH_ATTR_OP_ID, SWITCH_ATTR_OP_TYPE, -- cgit v1.2.3