aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch
Commit message (Collapse)AuthorAgeFilesLines
* packages: clean up the package folderJohn Crispin2013-06-219-2849/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37007 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: dont manually insmod switch driversJohn Crispin2013-06-211-1/+1
| | | | | | Signed-off-by: John Crispin <bloic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36993 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: export name of device found via /procHauke Mehrtens2013-02-144-1/+16
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35596 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: export cpuport, ports and vlans via /procHauke Mehrtens2013-02-141-0/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35595 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: add support for BCM53125Hauke Mehrtens2013-02-131-3/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35586 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: resetting and enabling vlan write for gigabit switchesHauke Mehrtens2013-02-131-7/+45
| | | | | | | | | This patch makes it possible to reset and enable writing vlans to recent switchs. This is based on a patch by jcharest and the Broadcom SDK. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35585 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: read and write vlan config from and to gigabit switchesHauke Mehrtens2013-02-131-30/+105
| | | | | | | | | This patch makes it possible to read and write the vlan config from and to recent switchs. This is based on a patch by jcharest and the Broadcom SDK. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35584 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: improve robo_switch_enable()Hauke Mehrtens2013-02-131-2/+6
| | | | | | | This is based on a patch by jcharest and the Broadcom SDK. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35583 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: fix switches with more than 6 portsHauke Mehrtens2013-02-131-4/+9
| | | | | | | This is based on a patch by jcharest and the Broadcom SDK. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35582 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: reverse if else in handle_vlan_port_read()Hauke Mehrtens2013-02-131-14/+16
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35581 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: the BCM5365 is a special switch and the BCM5350 or BCM5325 is the ↵Hauke Mehrtens2013-02-132-47/+40
| | | | | | | | | normal case. This makes it easier to compare this code with the code from the Broadcom SDK. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35580 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: reset switch before using it.Hauke Mehrtens2013-02-131-2/+70
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35579 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: improve error handling in robo_probe()Hauke Mehrtens2013-02-131-13/+16
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35578 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: run cleanfile over the source codeHauke Mehrtens2013-02-131-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35577 3c298f89-4303-0410-b956-a3cf2f4a3e73
* bcm63xx: switch to b53 and swconfigJonas Gorski2013-01-231-1/+1
| | | | | | | | | | | | | | | | | Switch to using the B53 switch driver where appropriate. Use a non-tagged default config where it isn't confirmed to be working. Remove the switch configuration in preinit as the switch will now be configured by the driver to use port isolation to prevent leakage between lan and wan. While at it, also provide a switch config for Neufbox 6. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35307 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: ROBO Switch Gigabit MII SupportHauke Mehrtens2013-01-036-35/+155
| | | | | | | | | | | | | | | | | | | | | | | | I wrote this patch some time ago because I had a need for one of the Gigabit ports (Linksys E3000) to be forced to 100FD. This is based on the robocfg sources included w/ the RT-N16 sources from ASUS. Since work is progressing on a BGMAC driver that could be included in OpenWRT, this may be useful to someone else. In testing, forcing the speed to 10/100 or 1000 worked fine; however, when trying to force full-duplex mode, the result was always half-duplex. I was not able to isolate the source of the problem (this patch, driver or H/W limitation). The only way I could get it to work was to set the port to Auto, but then only advertise 100FD (not included in this patch). I have a modified version of the robocfg package as well, I'd have to clean it up a little first (remove the full-duplex hack) before submitting it if there is interest. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34992 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: improve error messagesHauke Mehrtens2013-01-031-15/+14
| | | | | | | This is in part based on a patch send by Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34991 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: add a new version of the nvram rewrite patchHauke Mehrtens2013-01-032-8/+8
| | | | | | | This is the version like it was send for mainline inclusion. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34988 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [packages] switch: warn if ndo_do_ioctl is not implemented in the Ethernet ↵Hauke Mehrtens2012-09-221-0/+4
| | | | | | driver git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33506 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package]: switch: improve error messageHauke Mehrtens2012-09-191-4/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33464 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [packages] switch: clean up robo switch driverHauke Mehrtens2012-08-051-98/+42
| | | | | | | | | | | * remove use_et, all supported drivers are using mii ioctls * remove robo.phy_addr, phy_addr was always set to ROBO_PHY_ADDR. * remove support for old kernel versions * do_ioctl is allways called with buff == NULL * use if_mii git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33002 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: use libgpio instaed of implementing the gpio interface ourself.Hauke Mehrtens2012-08-043-79/+24
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32992 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] switch: the hardware must be up while configuringJo-Philipp Wich2012-03-132-2/+3
| | | | | | | | Since the removal of the interface coldplug hack the timing changed in such a way that eth0 is not up during switch setup, leading to an inaccesible device. Bring up the switch interface before configuring it to mitigate the problem. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30937 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: fix some memory leaks in switch_parse_vlan()Hauke Mehrtens2012-01-283-7/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29936 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: update for brcm47xx targetHauke Mehrtens2011-08-047-102/+83
| | | | | | | | | * remove suport for 2.4 kernel * add support for bcma bus git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27904 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] switch: fix switch-robo device reference countingFlorian Fainelli2011-02-202-7/+16
| | | | | | | | Fix incorrect device reference counting by switch-robo. Signed-off-by: George Kashperko <george@znau.edu.ua> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25619 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] remove whitespaces in kmod-switch sourcesFlorian Fainelli2010-07-203-56/+56
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22320 3c298f89-4303-0410-b956-a3cf2f4a3e73
* massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950Claudio Mignanti2010-07-121-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22145 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove linux 2.4 support from several packagesFelix Fietkau2010-06-264-27/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21954 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] switch: explicitely clear port mappings in unsused vlans (#7082)Jo-Philipp Wich2010-04-052-1/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20717 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: suppress boot error message on 2.4Nicolas Thill2010-03-011-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19922 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] switch:Jo-Philipp Wich2010-02-281-1/+9
| | | | | | | | | eliminate the asterisk from the switch port configuration and set it automatically on the first vlan, this aligns the broadcom vlan config with the swconfig format git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19909 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] switch: do not include linux/autoconf.h (#6513)Florian Fainelli2010-02-283-3/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19903 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [brcm-2.4] change switch config to swconfig style format to remain ↵Jo-Philipp Wich2009-11-151-25/+30
| | | | | | consistent accross platforms git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18425 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] fix breakage on wl500gp after r18214, thanks sn9 (#6084)Florian Fainelli2009-11-031-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18289 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make etehrent work on wrt350n, thx sn9John Crispin2009-10-291-2/+25
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18214 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [brcm47xx] add patches for kernel 2.6.31Hauke Mehrtens2009-09-261-0/+4
| | | | | | | This is completly untested. Only a compile tests with the default config was done! git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17734 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] fix oops in switch-robo on brcm63xx, thanks to Daniel Dickinson ↵Florian Fainelli2009-05-051-1/+1
| | | | | | (#5053) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15611 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] prevent kmod-switch from accessing nvram on brcm63xx (#5035)Florian Fainelli2009-05-021-1/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15555 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] fix nvram_get checking on non-WGT634U (#4975)Florian Fainelli2009-04-211-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15319 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] fix strange LED behavior with Netgear WGT634U (#3552)Florian Fainelli2009-04-202-3/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15290 3c298f89-4303-0410-b956-a3cf2f4a3e73
* get rid of $Id$ - it has never helped us and it has broken too many patches ;)Felix Fietkau2009-04-174-4/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] allow kmod-switch to be used on brcm63xx (#4599)Florian Fainelli2009-03-093-4/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14825 3c298f89-4303-0410-b956-a3cf2f4a3e73
* switch: remove message about BFL_ENETADM not being set on systems with a ↵Felix Fietkau2008-11-021-3/+2
| | | | | | roboswitch git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13100 3c298f89-4303-0410-b956-a3cf2f4a3e73
* (4/6) bcm57xx: switch-core.c/switch-robo.c check for port already registeredFelix Fietkau2008-06-153-1/+19
| | | | | | | | | | | | | This patch prevents switch-robo.c from attempting robo_probe on a port that is already registered. robo_probe will adjust kernel reference counts if it detects a switch on the port. If this patch wasn't applied, the wrt350n would hang on reboot, waiting for the network driver reference count to reach zero indefinitely. Signed-off-by: Ben Pfountz <netprince (at) vt (dot) edu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11469 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [bcm47xx] Stopgap compilation fixes for diag and switch under 2.6.25Peter Denison2008-05-201-0/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11231 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Allow package/switch to compile against 2.6.25Peter Denison2008-05-141-0/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11138 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Check the return values of kmalloc()Michael Büsch2008-03-131-6/+25
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10599 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix switch-robo.c compile errors on linux 2.4Felix Fietkau2008-03-011-0/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10539 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fix the roboswitch code for the WRT350NMichael Büsch2008-02-273-80/+186
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10531 3c298f89-4303-0410-b956-a3cf2f4a3e73