summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpa/offline_port.c
AgeCommit message (Collapse)Author
2013-07-15dpaa_eth: move common code to a separate fileMadalin Bucur
Created dpaa_eth_common.c to hold all common code. Moved legacy non-SG related code to its own file. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I5a79559714f515e6889655a1cc7256a556043c45 Reviewed-on: http://git.am.freescale.net:8181/3096 Reviewed-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-15dpaa_eth: cleanup module load bannerMadalin Bucur
Remove function and line number from module load prints. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I9d34d6066c51263a04157f9f9d6b275fce706392 Reviewed-on: http://git.am.freescale.net:8181/3090 Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-05-10offline_port: Add support for enabling IP Fragmentation in the O/H port driverRadu Bulie
In order to enable fragmentation on an offline port, a chosen node should be configured in dt for that specific port with two parameters: manip_extra_space and data_align. In addition external buffer pools must be set for the O/H port in the dts file (e.g: fsl,bman-buffer-pools = <&bp8>;). A bool flag is transmited to dpaa_eth_init_port (used further in FMD wrapper) macro whether or not fragmentation was enabled. For the dpaa_eth module this flag must be set to false.(FMD frag support is only available on O/H ports). Change-Id: Ifb01b2feebab9199cc0f72b611ce212061d0a7e2 Signed-off-by: Radu Bulie <radu.bulie@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/2261 Reviewed-by: Chereji Marian-Cornel-R27762 <marian.chereji@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-18dpaa_eth: Add support for new buffer layout parametersIoana Radulescu
The new chosen node mechanism allows a user to configure some extra per port parameters related to buffer layout. Add support in the ethernet driver to account for these new parameters and the changes in FMD wrapper API. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I54ef34be7b2ce1b644245816cbf234c8c6d8dcab Reviewed-on: http://git.am.freescale.net:8181/1468 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Bercaru Cristian-B43982 <cristian.bercaru@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-18dpaa_eth: Allow separate buffer layouts per rx/tx portIoana Radulescu
Until now all ports expected the same (hardcoded) buffer layout, where buffer layout means: private data size, presence of parse results, hash results, timestamp. Buffer layout also influences the size of the buffers for private ports. Create a framework for configuring the buffer layout on a per rx/tx port basis. There is no change in functionality at the moment (the same values for buffer layout are kept). Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I3792b095330575d199f4cbe071de718ae6d45ab1 Reviewed-on: http://git.am.freescale.net:8181/1467 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-08dpaa_eth: Remove __devinit, __devexit macrosBogdan Hamciuc
They are no longer supported in the latest kernel. Change-Id: I08b7a5bbe8738d22330d4a175e941627ce1b5172 Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> (cherry picked from commit 7191ab1792435bc581f17f1d4259b9c51c4fda9) Reviewed-on: http://git.am.freescale.net:8181/1062 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-08dpaa_eth: Use standard printing APIBogdan Hamciuc
Replace dpaa_eth_*() and cpu_**() macros with standard printing calls. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> (cherry picked from commit 1dc1a7386b52b0249d6a5396e547119f1a83151f) Conflicts: drivers/net/ethernet/freescale/dpa/dpa-ethtool.c Change-Id: I5fc6cd3532c2fd39e72ac0531a85fdef028bb967 Reviewed-on: http://git.am.freescale.net:8181/1059 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-08dpaa_eth: DPAA Ethernet driver from SDK-v1.3.1Bogdan Hamciuc
Raw move of the DPAA-Ethernet driver as of SDK-v1.3.1. Also squashed compile fixes on the 3.8 codebase and a number of newer commits necessary for a clean compilation. Squashed commits: - fmd,dpaa_eth: Reorganize port param structures in wrapper API - dpaa_eth: Cleanup sysfs interface - dpaa_eth: Minor sysfs change - dpaa_eth: Move all sysfs code to a separate file - dpaa_eth: Port FSL-specific netdev features Change-Id: I51b65ae719b154f55302016f4e8bd943d8a062cb Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1031 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>