backfire: swconfig: Add cpu port index to help output. (backport of 20939)
authorGabor Juhos <juhosg@openwrt.org>
Fri, 16 Apr 2010 20:30:06 +0000 (20:30 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 16 Apr 2010 20:30:06 +0000 (20:30 +0000)
commit1c7aa4165d6ba59a35b927c9b61fa7726f04ecb5
treeb7473cc59c83ad42d2afe05a52f7a86c0ec0f9ec
parent4ea61e9f5e5e5c0198cb6572ad725e58e96197bd
backfire: swconfig: Add cpu port index to help output. (backport of 20939)

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 <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 20948
package/swconfig/src/cli.c
package/swconfig/src/swlib.c
package/swconfig/src/swlib.h
target/linux/generic-2.6/files/drivers/net/phy/swconfig.c
target/linux/generic-2.6/files/include/linux/switch.h