backfire: swconfig: Add cpu port index to help output. (backport of 20939)
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 16 Apr 2010 20:30:06 +0000 (20:30 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 16 Apr 2010 20:30:06 +0000 (20:30 +0000)
commit46990e4e4c102b4f7291bfd2a67783b379d0ad9a
treeb7473cc59c83ad42d2afe05a52f7a86c0ec0f9ec
parenta64c441ae7f69c277e9e5fa78c2d584a5ff672df
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>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@20948 3c298f89-4303-0410-b956-a3cf2f4a3e73
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