ramips: Add swconfig support to ramips_esw.c
authorGabor Juhos <juhosg@openwrt.org>
Wed, 29 Aug 2012 10:37:36 +0000 (10:37 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 29 Aug 2012 10:37:36 +0000 (10:37 +0000)
commitf9dda9cf9bc0d226a2869a90a6ae9d300c1722a3
tree56ea61e22b9bf27e90a3a434c01251379217341c
parent6b0e968acc1a1e7b99161ce558f9c191844b4563
ramips: Add swconfig support to ramips_esw.c

Add swconfig support to ramips_esw.c

This patch adds swconfig support for ramips_esw:

Tested on both D-LINK DIR-300 B1 and Sitecom WL-351 (external
rtl8366rb on internal port 5).
I've made sure that in the enable_vlan=0 case it behaves like a dumb
switch, so external switches should work fine with vlans and
verified this on the WL-351.

The current state shown by swconfig is always read directly from HW
registers, new settings only show after 'swconfig dev rt305x set apply'.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
SVN-Revision: 33299
target/linux/ramips/files/drivers/net/ethernet/ramips/Kconfig
target/linux/ramips/files/drivers/net/ethernet/ramips/ramips_esw.c