swconfig: Add generic switch identifiers
authorJonas Gorski <jogo@openwrt.org>
Wed, 27 Jul 2011 18:00:18 +0000 (18:00 +0000)
committerJonas Gorski <jogo@openwrt.org>
Wed, 27 Jul 2011 18:00:18 +0000 (18:00 +0000)
commitc86f6a92354ee847ef8b06ce1061ff45989e9148
treeabee889c94a256789fdcbc913c8ed7b75bc3cc40
parent667740bb3f3a221a6cc8adc9ebdd7f4ecab1c2f0
swconfig: Add generic switch identifiers

Also make switches available under a generic name "switch<num>" for device
name agnostic access. The old device name is used as an alias for backward
compatibility.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27800 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/swconfig/Makefile
package/swconfig/src/cli.c
package/swconfig/src/swlib.c
package/swconfig/src/swlib.h
target/linux/generic/files/drivers/net/phy/rtl8366rb.c
target/linux/generic/files/drivers/net/phy/rtl8366s.c
target/linux/generic/files/drivers/net/phy/swconfig.c
target/linux/generic/files/include/linux/switch.h