summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpa
AgeCommit message (Collapse)Author
2015-10-21dpaa_eth: fix bpool seeding for advanced driversMadalin Bucur
On 32 bit kernels using size_t truncated the 40 bit addresses. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
2015-09-24dpaa_eth: Add a configurable dpa_tx callCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@freescale.com>
2015-05-06dpaa_eth: fix unload procedure for onicMarian-Cristian Rotariu
This patch fixes the module unload for onic in the context of creating the DPAA Ethernet drivers as dynamic kernel modules that can be loaded/unloaded at runtime. Change-Id: Ib813d4c99869a09875a3dc9d07f6fcb9b5bb65e2 Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35781 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2015-05-06onic: fix debugfs remove procedureMarian-Cristian Rotariu
Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: I2023fbdc7419aecdef5386933e86083daeb40d91 Reviewed-on: http://git.am.freescale.net:8181/35993 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2015-05-06dpaa_eth: fix symbols for dynamic driver modulesMarian-Cristian Rotariu
This patch fixes the dependencies between several DPAA Ethernet driver modules by exporting the needed functions as kernel symbols. Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: Idf7525add92bfd20738eaac0b9d43ed62d7de0af Reviewed-on: http://git.am.freescale.net:8181/35747 Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2015-04-27dpaa_eth: fix MACsec memory leakCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@freescale.com> Change-Id: I5aafcea3016c2d82d2d2d9a592ffbb5c8574bc56 Reviewed-on: http://git.am.freescale.net:8181/35593 Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-04-27dpaa_eth: Use different names for MAC RX/TX statsCristian Sovaiala
Sysfs fails to create entries with the same name so use different names for MAC RX/TX stats. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: Ifa58d7f54d64e8b437d9268cb725f3528bf0d4c1 Reviewed-on: http://git.am.freescale.net:8181/35598 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-04-23dpaa_eth: supplement MEMAC sysfs statisticsMadalin Bucur
Add Rx/Tx detailed statistics. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ibcb5e2a6b564c85d434a563ab52c45143281315f Reviewed-on: http://git.am.freescale.net:8181/35265 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-04-17dpaa_eth: avoid race between init and probing codeMadalin Bucur
The generic driver debugfs root is now added in the initialization code, at the end. Under certain conditions the probing code gets to run before the debugfs root is created resulting in errors. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
2015-04-02ENGR336776: Merge remote-tracking branch 'dpaa/dpaa-next'Olivia Yin-R63875
2015-04-01capwap: clear memory for variablePan Jiafei
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I4c37af569b6011945860d2d7379e728ee69e133d Reviewed-on: http://git.am.freescale.net:8181/34071 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jianhua Xie <jianhua.xie@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-31dpaa_eth: Add support for MACsecCristian Sovaiala
This patch adds support for MACsec in DPAA. The feature is implemented as a separate driver and hooks into the DPAA Ethernet driver using the hooks exported by the latter. The MACsec driver exposes a set of APIs allowing the user to configure the hardware in MACsec mode and to change configuration at runtime (add/ remove secure channels, secure associations, change secure association keys, etc.). The following capabilities are supported by the current implementation: - MACsec enabled on multiple interfaces - one SecY per interface (MAC) - one TX Secure Channel per SecY - up to 16 RX Secure Channels per SecY - debugfs statistics (TX counters only) per CPU per interface Signed-off-by: Camelia Groza <camelia.groza@freescale.com> Signed-off-by: Andrei Vasiliu <andrei.vasiliu@freescale.com> Signed-off-by: Iulia Manda <manda.iulia@freescale.com> Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I8fe2883a716bf82dc14aae467f3e0eab140d236d Reviewed-on: http://git.am.freescale.net:8181/33832 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2015-03-31dpaa_eth: Export several APIs for external usageCristian Sovaiala
Some APIs can be used by other DPAA drivers (such as MACsec driver) which hook into the processing path of the DPAA Ethernet driver therefore we export those APIs for external usage. Signed-off-by: Camelia Groza <camelia.groza@freescale.com> Signed-off-by: Andrei Vasiliu <andrei.vasiliu@freescale.com> Signed-off-by: Iulia Manda <manda.iulia@freescale.com> Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I312d281002a047d05b9471ecf4ea12c36b28c6b0 Reviewed-on: http://git.am.freescale.net:8181/33831 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-03-30dpaa_eth: Add generic hook option FSL_DPAA_HOOKSCristian Sovaiala
Replace existing CONFIG_AS_FASTPATH and CONFIG_FSL_FMAN_TEST options guarding the hooks with a new option CONFIG_FSL_DPAA_HOOKS. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: Ie571a761c7971bd558ec711e4c1a811f9eee1c89 Reviewed-on: http://git.am.freescale.net:8181/33685 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-03-30dpaa_eth: Remove Jumbo frame verificationCristian Sovaiala
The check must be added in the RX hook instead of conditioning the call of the hook based on the frame size. The hooks might be utilized by multiple drivers therefore each must add its specific checks inside the hooks. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I9f1ee9321bad4b6c9c38fdc332a0a8785153f81b Reviewed-on: http://git.am.freescale.net:8181/33684 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-03-30capwap: align SEC job descriptorPan Jiafei
Require 64 bytes align. Remove compilation warnings. Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: Ic97c690adfca42c8c9ac83de9d89b05ea32b3926 Reviewed-on: http://git.am.freescale.net:8181/33327 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-27capwap: set pool buffer size in PreHeaderPan Jiafei
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I52411e0d3cef00e5d8a3c7a45ec4fd9ac5907686 Reviewed-on: http://git.am.freescale.net:8181/33326 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Horia Ioan Geanta Neag <horia.geanta@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-25capwap: sync with new config flavor for FManV3Pan Jiafei
CONFIG_FMAN_T4240 was eliminated. Instead, there are now two flags representing FmanV3: CONFIG_FMAN_V3H for FmanV3H arch and CONFIG_FMAN_V3L for FmanV3L arch Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: Ia0de7b70a0c110e379edb38ee61779e7560979a7 Reviewed-on: http://git.am.freescale.net:8181/33329 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-25capwap: fix compile warningPan Jiafei
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I4110d5a606dd4d1e266fdb28d3ead1ba84382c22 Reviewed-on: http://git.am.freescale.net:8181/33328 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-24Merge remote-tracking branch 'dpaa/dpaa-next'Olivia Yin-R63875
2015-03-24dpa_eth_sg: Patch to not allow Jumbo packet to ASF when flag is disabled.Alok Makhariya
This patch checks fd->length20 therefore not allowing jumbo packet to ASF when JUMBO flag is not enabled. Signed-off-by: Alok Makhariya <B46187@freescale.com> Change-Id: Id6a111b823acd3a4b3152f5044262abfb3ca1f06 Reviewed-on: http://git.am.freescale.net:8181/27894 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Sandeep Malik <Sandeep.Malik@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-23dpaa_eth: Fix Shared-MAC and MACless compilation issueCristian Sovaiala
Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: Icdfb39e75fd1c7268b26209f1bcd9b0755e6192f Reviewed-on: http://git.am.freescale.net:8181/33299 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-03-23fsl/dpa: fixup to support 2.5G SGMIIShengzhou Liu
- correct the location of disabling auto-neg for 2.5G in SetupSgmiiInternalPhy. - add the missing condition e_ENET_MODE_SGMII_2500 in memac_init_phy. - fix sgmii_2500 to sgmii-2500 to match u-boot. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Change-Id: I3e3481f1a22e0931acaaaf739dccce944e91e76c Reviewed-on: http://git.am.freescale.net:8181/25752 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-23dpaa_eth: fix compile error when selecting 1588 configYangbo Lu
Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com> Change-Id: I56995d4297e8b1001dc8089ae650604dea311428 Reviewed-on: http://git.am.freescale.net:8181/32977 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-20fsl: Use ccflags-y instead of deprecated EXTRA_CFLAGSWang Dongsheng
This allows users to pass in additional compiler flags through the environment variable EXTRA_CFLAGS, e.g. make EXTRA_CFLAGS=-Wno-error Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Change-Id: I36513506ee1671c31bb076e9b73c2e8e2442cf4f Reviewed-on: http://git.am.freescale.net:8181/33146 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-19dpaa_eth: remove unused argumentMadalin Bucur
Removed unnecessary argument to dpa_bp_free(). Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ib16b37b0057857875805eb5692e1fd5a273883cb Reviewed-on: http://git.am.freescale.net:8181/32981 Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2015-03-18dpaa_eth: use proper recycling conditionMadalin Bucur
The condition that needs to be evaluated to determine if a certain fd is to be recycled (buffers released in the buffer pool by HW) is (fd.bpid != 0xff). Several places in the code were using the previous condition (fd.cmd & FM_FD_CMD_FCO) that is always true after the unification of the recycling and confirmation paths. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I23789acc6879086f356ca9accfe400122fd4f0f3 Reviewed-on: http://git.am.freescale.net:8181/32879 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2015-03-17fmd: disable auto-neg if ports is SGMII2.5GMandy Lavi
In order to do so it was also required to introduce a new if type for SGMII2.5G Change-Id: Iddbe223d8b716c3ed348c7a8a53bee0c037f04f4 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/23474 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-03-12dpaa_eth: fix udev interferenceMadalin Bucur
udev renames each new interface as soon as it's created so all interfaces are named eth1, resulting in name conflicts for the debugfs files created based on device name. This patch fixes that problem by imposing eth1..N naming for the debugfs entries. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I105c0b1bf0cc604ae6c3f18eb74769b05e0367a2 Reviewed-on: http://git.am.freescale.net:8181/32669 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2015-03-11dpaa_eth: fix unused variable warningMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
2015-03-11dpaa_eth: remove unnecessary operation for onicRotariu Marian Cristian-B44860
Protocol and nexthdr, variables from ipv4 and ipv6 layers, are 1 byte long, therefore no byte order conversion is needed. Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Change-Id: Ibaa4da641b2eeb29c8186aac9714b154eee5ab13 Reviewed-on: http://git.am.freescale.net:8181/20908 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32488
2015-03-11dpaa_eth: add reference for ioremap callsMarian-Cristian Rotariu
Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: I3b79c9bb946102f52361278126d12606a1c5652e Reviewed-on: http://git.am.freescale.net:8181/32485 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2015-03-11dpaa_eth: mark per CPU variablesRotariu Marian Cristian-B44860
This annotation helps sparse track and signal issues related to per-CPU variables. Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Change-Id: I197d6225b5b6447c78f09865c3bd09b62e43ab04 Reviewed-on: http://git.am.freescale.net:8181/20905 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32487
2015-03-11dpaa_eth: fix PFC supportMadalin Bucur
PFC support code was using a removed FQ type. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
2015-03-11dpaa_eth: fix the address settings of a FDMarian-Cristian Rotariu
There is no need to set high and low addresses separately. Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: I584d11704d7d0f790ccbab7b35c7ec2ba7b1402a Reviewed-on: http://git.am.freescale.net:8181/32484 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2015-03-11dpaa_eth: memset the local declared arrayMarian-Cristian Rotariu
For some reason, in the simulator, the newly declared local array does not have the value set on 0. This patch will memset the array to 0. These values are sent to the BMan driver. Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: I1a8c9c48748885e021d7d45ce3286e23a4e3c39d Reviewed-on: http://git.am.freescale.net:8181/30393 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Yang Li <LeoLi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32505
2015-03-11dpaa_eth: fix debugfs errorsMarian-Cristian Rotariu
This patch removes one header dependency and attaches the debugfs directory of the DPAA Ethernet driver to the root directory of the debugfs. Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: Ib84fcbd86be7e9666ff8274c2aa52915771df988 Reviewed-on: http://git.am.freescale.net:8181/29106 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Mingkai Hu <Mingkai.Hu@freescale.com> Reviewed-by: Yang Li <LeoLi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32504
2015-03-11dpaa_eth: fix endianness issue in the dts parserMarian-Cristian Rotariu
The phandle value in the dtb is a BE value and will not be properly parsed on a LE architecture. This patch adds the proper device tree parser API call that has the conversion to a proper architecture integrated in its implementation. Change-Id: I2c462acaf0801bb47a2179e02fc9c8d610a6f0ff Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/25779 Reviewed-on: http://git.am.freescale.net:8181/32503 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2015-03-11dpaa_eth: make the S/G rx routine endian portableMarian-Cristian Rotariu
This patch modifies the shared S/G rx routine used by shared and macless driver to properly receive the S/G frames from FMan. Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: Icc467cb9ced12db75db28876e606e23fd3ee7788 Reviewed-on: http://git.am.freescale.net:8181/22852 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32502
2015-03-11dpaa_eth: convert sg entry to be endian portableMarian-Cristian Rotariu
The S/G entry resides in the main memory and is used directly by the FMan, therefore it needs proper conversion on both rx and tx. Change-Id: I4d85d80589fb8b72e98a13b9665ff2ebffcfc387 Reviewed-on: http://git.am.freescale.net:8181/22443 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com> Tested-by: Marian Cristian Rotariu <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32501
2015-03-11dpaa_eth: make the common code endian portableMarian-Cristian Rotariu
The parse results structure is in the main memory and is used by the FMan, which is BE. Also, the release function for an SG table entry should use the address in a proper CPU endianness. Signed-off-by: Marian-Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: Iddc6ee051426a1a584e3a8b15a18b6b1544d8b49 Reviewed-on: http://git.am.freescale.net:8181/22451 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32500
2015-03-11dpaa_eth: make onic dt parser unaware of endianessRotariu Marian Cristian-B44860
The device tree values are stored in BE format. It is the of parser and driver parser job to convert the data into CPU endianness. This patch converts bpid, fqids values and phandles to CPU endianness. Change-Id: I0ea0453151f7e175c5112f145c47c6bc182a6694 Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20909 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32499
2015-03-11mac: make the dt parser endianness-freeRotariu Marian Cristian-B44860
The OF API used in the mac dev driver parses the device tree and uses raw pointers to data. If the CPU is LE the values read will be mixed and the device will not probe. This patch belongs to the big effort of porting eth & mac drivers to ARM architecture. Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Change-Id: Ibb7893d950e92bf4038cf565172a77432adc1055 Reviewed-on: http://git.am.freescale.net:8181/20928 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32498
2015-03-11dpaa_eth: fix static declarations for onicRotariu Marian Cristian-B44860
The function should be properly declared as being extern or static. The lack of scope identifier will result in a sparse error. Change-Id: I32713c3c806ed6d14ae9c33d732fe42aec354b2f Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20906 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32497
2015-03-11offline_port: convert dt into CPU endiannessRotariu Marian Cristian-B44860
The device tree values are stored in BE format by the dt compiler. In order to support different architectures, not only BE, the values read by the offline port driver should be converted into CPU endianness. This patch convert the dt values into CPU endianness and fixes some sparse errors related to endianness. Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Change-Id: Id7adce3b6f73619c58ac1cee9201bb63131f8d58 Reviewed-on: http://git.am.freescale.net:8181/21083 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32496
2015-03-11dpaa_eth: convert fq dts entries to CPU endianessRotariu Marian Cristian-B44860
The data related to fqs from dts are in BE. In order to be used by the CPU, the data need to be converted into CPU endianess. Because the current fqids structure is used in many ways and in many files, the code for endianess conversion is not localized. To make this patch as simple as possible, an intermediary variable was used. Change-Id: I1beec33fa3ce816899e3bb02e0cf88ed0b0d0520 Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20964 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32495
2015-03-11dpaa_eth: fix forward declarations for maclessRotariu Marian Cristian-B44860
The function should be properly declared as being extern or static. The lack of scope identifier together with the lack of the forward declaration will result in a sparse error. Change-Id: I0b976be7c27d9b6ae66d1725433fb1aefcc407ba Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20937 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32494
2015-03-11dpaa_eth: remove unnecessary conversionRotariu Marian Cristian-B44860
Protocol and nexthdr, variables from ipv4 and ipv6 layers, are 1 byte long, therefore no byte order conversion is needed. Change-Id: I487b044d9ad942cf39ccbb500318ae8d7d0d9e08 Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20934 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32493
2015-03-11dpaa_eth: move static variable definitionRotariu Marian Cristian-B44860
The definition of any static variable should be in the header file. Error reported by sparse. Change-Id: Ic419e2cd80c05d1b4618d9260a61b6857aa4874a Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20986 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32492
2015-03-11dpaa_eth: convert bp dts node in CPU endianessRotariu Marian Cristian-B44860
The addresses used to parse the device tree contain BE data as the entire device tree data. Because the CPU operates with bp data, conversion to CPU endianess is needed. Change-Id: I0f876bde5bbb9832f15289b6ecb192f6c3ba5f56 Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20933 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32491