summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files/drivers/net/phy/swconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* swconfig: fix lock imbalance in unregister_switch()juhosg2010-06-131-0/+1
| | | | | | | Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21780 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: release switch in error path of swconfig_get_attrjuhosg2010-06-131-3/+2
| | | | | | | Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21779 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: Fix a bug in use of SWITCH_PORT_FLAG_TAGGEDjuhosg2010-06-081-1/+1
| | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21708 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: Add cpu port index to help output.juhosg2010-04-161-0/+1
| | | | | | | | | | | | | | 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/trunk@20939 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [kernel] swconfig: Check vlan/port indexes for validity.florian2010-04-111-0/+4
| | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20811 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: add a generic switch reset callnbd2009-04-281-0/+17
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15470 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: add a generic method for setting the port primary vlan id (used ↵nbd2009-04-201-7/+40
| | | | | | for transparently fixing up pvid for untagged port when setting vlan ports) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15307 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: treat struct switch_attr as constantnbd2009-04-201-9/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15302 3c298f89-4303-0410-b956-a3cf2f4a3e73
* swconfig: remove old debugging stuffnbd2009-04-201-2/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15301 3c298f89-4303-0410-b956-a3cf2f4a3e73
* change the way ./files* and the generic kernel files are applied. ./files ↵nbd2008-10-181-0/+872
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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13010 3c298f89-4303-0410-b956-a3cf2f4a3e73