aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* net: keystone: ale: fix sysfs attribute issue when debug options are enabledMurali Karicheri2015-01-221-0/+3
| | | | | | | | | | | | | Currently when CONFIG_DEBUG_LOCKDEP is enabled, following errors are thrown by the kernel. "BUG: key ebc25d10 not in .data!" This patch fixes this issue by using sysfs_attr_init() to initialize the dynamically allocated attributes. Kernel otherwise expects this to be declared statically and passed to device_create_file(). Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
* net: keystone: ale: add support for ALE rev 1.4Hao Zhang2014-12-031-13/+103
| | | | | | | | | | This patch updates the Address Lookup Engine driver to support new revision (v1.4) of ALE IP which has up to 8 slave ports and 1 host port. Signed-off-by: Hao Zhang <hzhang@ti.com> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Acked-by: Reece Pollack <x0183204@ti.com>
* net: keystone: ale: explicitly disable ALE forwarding on all ports at start upWingMan Kwok2014-12-031-1/+5
| | | | | | | | | | | During the start up of the ethernet switch driver, the switch is not reset and unused ports are not reconfigured. Hence the forwarding state of these unused ports are inherited from u-boot's configuration which is undesirable. This patch adds code to disable the forwarding state of all ports during the start up of the ALE driver. The forwarding state is enabled when a port is configured. Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
* net: keystone: add support of 4 slave portsWingMan Kwok2014-12-031-13/+33
| | | | | | | | Before this patch, the keystone ethernet driver supports only 2 slave ports. This patch adds support of 5 cpsw ports, ie. 1 host port plus 4 slave ports. Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
* net: keystone: add support of sysfs ale table store and additional ale ↵WingMan Kwok2014-12-031-18/+600
| | | | | | | | | | | | control show/store This patch adds ALE Control sysfs entry fields ALE_VERSION and Port 0 Unicast Flood Enable. It also adds support of ALE table store and a new sysfs attribute ALE Table Raw which displays un-interpreted ALE Table entries. Signed-off-by: WingMan Kwok <w-kwok2@ti.com> Signed-off-by: Reece Pollack <x0183204@ti.com>
* drivers: net: cpsw: Add sysfs attributes "ale_control" and "ale_table"Reece R. Pollack2014-12-031-0/+178
| | | | | | | | | Add support for two new sysfs attributes "ale_control" and "ale_table" to allow visibility into the contents of the Address Lookup Engine. This is a forward port of code originally written by Sandeep Paulraj and committed under ID 26368250396825790ee31745f7d277d3890f4dcd. Signed-off-by: Reece R. Pollack <x0183204@ti.com>
* drivers: net: cpsw: Add helper functions for VLAN ALE implementationMugunthan V N2013-02-061-12/+95
| | | | | | | | Add helper functions for VLAN ALE implementations for Add, Delete Dump VLAN related ALE entries Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* drivers: net: ethernet: cpsw: add multicast address to ALE tableMugunthan V N2012-11-011-3/+28
| | | | | | | | | Adding multicast address to ALE table via netdev ops to subscribe, transmit or receive multicast frames to and from the network Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* netdev: driver: ethernet: add cpsw address lookup engine supportMugunthan V N2012-03-191-0/+641
TI CPSW ethernet switch has a built-in address lookup engine. This patch adds the code necessary for programming this module. Signed-off-by: Cyril Chemparathy <cyril@ti.com> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>