Commit Graph

7 Commits (d3b3c421d77e984d8ecbcda95ea572b706904d29)

Author SHA1 Message Date
Felix Fietkau 513e8c583f Several small fixes for ar8216 driver (patch by Jonas Gorski)
* Create defines for some magic values/masks.

 * Change vlan_id to u16, to allow VIDs > 255.

 * Add a range check to set_pvid as it isn't a VID, but the index
   in the vlan table.

 * Set the max VID to 4094, since 4095 is a reserved value and
   should not be used.

 * In mangle_rx replace the provided VID with the VID of the table
   entry of the port, not the index of the table.

 * In hw_apply, remove a redundant emptyness check (was already
   checked several lines above).

 * In no vlan mode do not set the ingress mode to secure, as there
   are no vlan table entries, but to use the port's destination
   masks. Otherwise the switch won't forward anything.

 * In read_status tell that the phy is up (taken from the rtl8306
   driver).

SVN-Revision: 20083
2010-03-09 14:35:41 +00:00
Felix Fietkau df35ee622f fix link status detection in various switch drivers
SVN-Revision: 18698
2009-12-08 14:06:09 +00:00
Felix Fietkau 30e635c55b move the updated version (for 2.6.30+) of ar8216/mvswitch to the generic files directory and remove patches for older kernel versions (no longer in use)
SVN-Revision: 17594
2009-09-16 12:24:46 +00:00
Felix Fietkau 3e7d58574f ar8216: rename the vlan attribute to enable_vlan to keep it consistent with other drivers
SVN-Revision: 16770
2009-07-11 01:21:01 +00:00
Felix Fietkau 3455f00d7a ar8216: fix transmission of large frames by setting the switch mtu
SVN-Revision: 16629
2009-06-29 21:54:16 +00:00
Felix Fietkau c1918c778c ar8216: add delay for page switching to work around register setting corruption. use packet mangling to fix up the vlan for incoming packets (workaround for hardware bug, which renders normal 802.1q support unusable)
SVN-Revision: 16442
2009-06-14 03:32:01 +00:00
Felix Fietkau a523450678 Add a driver for Atheros AR8216 switches Thanks to Vertical Communications, Inc. for providing access to the documentation
SVN-Revision: 15482
2009-04-29 13:02:41 +00:00