Commit graph

8 commits

Author SHA1 Message Date
Gabor Juhos
c0c0a60718 swconfig: Fix a bug in use of SWITCH_PORT_FLAG_TAGGED
SWITCH_PORT_FLAG_TAGGED is a bit index, not a bit mask.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21708
2010-06-08 20:17:03 +00:00
Gabor Juhos
f7cc3d576c 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 <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 20939
2010-04-16 19:32:40 +00:00
Florian Fainelli
fba1a0a074 swconfig: Check vlan/port indexes for validity.
Swconfig needs to make sure that requested vlans/ports actually exist,
else it might read or modify memory not belonging to itself.

This patch adds a quick range check in swconfig's kernel part to
prevent accidential or intentional memory modification.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 20811
2010-04-11 20:51:37 +00:00
Felix Fietkau
8ec2ad91ad swconfig: add a generic switch reset call
SVN-Revision: 15470
2009-04-28 19:16:17 +00:00
Felix Fietkau
f6f55bae7d swconfig: add a generic method for setting the port primary vlan id (used for transparently fixing up pvid for untagged port when setting vlan ports)
SVN-Revision: 15307
2009-04-20 21:26:39 +00:00
Felix Fietkau
787e9fcf93 swconfig: treat struct switch_attr as constant
SVN-Revision: 15302
2009-04-20 18:57:36 +00:00
Felix Fietkau
cd80e16a80 swconfig: remove old debugging stuff
SVN-Revision: 15301
2009-04-20 18:57:30 +00:00
Felix Fietkau
1e570a9288 change the way ./files* and the generic kernel files are applied. ./files now applies to *ALL* kernel versions, and is copied along with ./files-* - this gets rid of quite a bit of redundancy in the extra kernel drivers.
SVN-Revision: 13010
2008-10-18 21:43:30 +00:00
Renamed from target/linux/generic-2.6/files-2.6.26/drivers/net/phy/swconfig.c (Browse further)