summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
AgeCommit message (Collapse)Author
2014-12-11Integrate t1024 patchesRich Schmitt
Merge remote-tracking branch 't1024-linux/master'
2014-12-11capwap: setup individual NAPI support for bridgePan Jiafei
DPA Shared Ethernet has no plan to support NAPI so far, so setup a dummy net device for NAPI. Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I2cdd19c0aa7cfe64a0a7fb4f1397b5a0e24cc5f6 Reviewed-on: http://git.am.freescale.net:8181/21951 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jianhua Xie <jianhua.xie@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11capwap: set higher priority for fqs back to outbound OPPan Jiafei
Fqs back to outbound OP must have a higher priority compared to fqs from core to outbound OP, otherwise the buffer will be exhausted. Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: Ia4de53493d06768f86c617340927e2af4d722011 Reviewed-on: http://git.am.freescale.net:8181/21442 Reviewed-by: Jianhua Xie <jianhua.xie@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Tested-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11capwap: fragmentation using a seperate bpPan Jiafei
This can avoid buffer pool is exhausted by others, so that it can avoid deadlock for outbound OP. Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I6fd1a604e0ae004837e02a4ac925360967da9827 Reviewed-on: http://git.am.freescale.net:8181/21441 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jianhua Xie <jianhua.xie@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11capwap: fix frag OP stuck issuePan Jiafei
It maybe a hw bug. Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I7f328e7f325e886ee1e1c2bd468117b1b043dd9a Reviewed-on: http://git.am.freescale.net:8181/21440 Reviewed-by: Jianhua Xie <jianhua.xie@freescale.com> Tested-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11capwap: fix stree test issue of fragPan Jiafei
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: Ifcd657229e3cbc9eab88866ac4a05230321a6a6d Reviewed-on: http://git.am.freescale.net:8181/21439 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Tested-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11capwap: add capwap supportPan Jiafei
CAPWAP stands for Control and Provisioning of Wireless Access Points. CAPWAP is a standard, interoperable protocol that enables a controller to manage a collection of wireless access points. There are three drivers in Kernel Space: CAPWAP Domain driver, CAPWAP Bridge driver and CAPWAP Tunnel driver. CAPWAP Domain Driver implements configuration for CAPWAP Domain, including PCD configuration and FQs setup. User must configure and initialize CAPWAP domain before CAPWAP Tunnel and CAPWAP Bridge works. CAPWAP Tunnel Driver is a misc device driver, which registers four misc devices for four CAPWAP tunnels: fsl-capwap-ctrl-dtls, fsl-capwap-ctl-n-dtls, fsl-capwap-data-dtls, fsl-capwap-data-n-dtls. The misc device provides file-operation to transmit/receive DTLS/non-DTLS packets. For example, read from the device fsl-capwap-ctrl-dtls can receive DTLS control packet; Write to the device fsl-capwap-ctrl-dtls can transmit DTLS control packet. The CAPWAP Bridge Driver is also a misc device driver; it can bridge packets between PCIe NIC and CAPWAP data tunnels. To support capwap drivers, there should be a shared ethernet port in dts file to use as CAPWAP Ethernet port. Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I7c99191156ebee5dd43673d20fb5c8469a780546 Reviewed-on: http://git.am.freescale.net:8181/21438 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jianhua Xie <jianhua.xie@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11fmd: add CapwapFragmentationStatsPan Jiafei
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: I98b45ed877ab65e5ce2cd673787a7657e5faacbc Reviewed-on: http://git.am.freescale.net:8181/21437 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Tested-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11fmd: add p_capwap_reassembly_manip to ioc_compat_fm_port_pcd_params_tPan Jiafei
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: Ia7c5b214817804e6e1ee31d74608ffbacd09cf39 Reviewed-on: http://git.am.freescale.net:8181/21433 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Tested-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11fmd: tmp capwap supportMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: I426f384c05479a5ddc1607e9b8fa92d972c612ce Reviewed-on: http://git.am.freescale.net:8181/21432 Reviewed-by: Jiafei Pan <Jiafei.Pan@freescale.com> Reviewed-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Tested-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
2014-12-11fmd: extend workaround of fman reset for T1024Shengzhou Liu
The same hang issue was observed on T1024 as well. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Change-Id: Ifad3fff1b430be90b6cc9548a959365ecd28236d Reviewed-on: http://git.am.freescale.net:8181/21425 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xiaobo Xie <X.Xie@freescale.com>
2014-12-11Merge branch 'ls1-linux/LS1-SDK' to commit 2ec9fb2.Matthew Weigel
2014-12-11gianfar: Add dma transfer endian property supportJingchang Lu
Signed-off-by: Jason Jin <Jason.Jin@freescale.com> Signed-off-by: Jingchang Lu <jingchang.lu@freescale.com> Change-Id: I3958f741a54691a882323a95b56bc7d8cb1311c4 Reviewed-on: http://git.am.freescale.net:8181/21179 Reviewed-by: Sandeep Malik <Sandeep.Malik@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
2014-12-11gianfar: Remove tx snooping support from LS1Claudiu Manoil
With tx snooping enabled the eTSEC Tx DMA stops in mid-traffic at this point. Remove the Tx snooping support from gianfar for now. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: I89018d6cd044e86c49c64b5343c6435ab38fcbf2 Reviewed-on: http://git.am.freescale.net:8181/21177 Reviewed-by: Sandeep Malik <Sandeep.Malik@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Consider dts property endianess on handlingJingchang Lu
Use of_property_read*() to get arch endian consistent property values. Do some refactoring in the process. Signed-off-by: Jingchang Lu <jingchang.lu@freescale.com> Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: I9ff10b73854a82333cfc830fed4b921a73519806 Reviewed-on: http://git.am.freescale.net:8181/21176 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Make FCB access endian safeClaudiu Manoil
Use conversion macros to correctly access the BE fields of the Rx and Tx Frame Control Block on LE CPUs. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: Ieb5b1d44449f6acbfcc39ba2a0d8cd23669b5d4c Reviewed-on: http://git.am.freescale.net:8181/21175 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Make BDs access endian safeClaudiu Manoil
Use conversion macros to correctly access the BE fields of the Rx and Tx Buffer Descriptors on LE CPUs. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: If8674c721fb8a9cec22b6921d08680c6afb531e2 Reviewed-on: http://git.am.freescale.net:8181/21174 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Exclude SRAM alloc from non-PPC (ARM)Claudiu Manoil
Allocation of Buffer Descriptors to SRAM is not supported by the ARM based LS1 platform. The CACHE_SRAM feature is PPC specific (mpc85xx SoC family more exactly). The mpc85xx CACHE_SRAM driver lies in the PPC architecture folders, so the API calls in gianfar must be excluded from non-PPC builds, otherwise obviously there will be compile errors on ARM (LS1). Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: I5594ec8fd104794d183426b973d35309d44b64e2 Reviewed-on: http://git.am.freescale.net:8181/21173 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Replace eieio with wmb for non-PPC archsClaudiu Manoil
Replace PPC specific eieio() with arch independent wmb() for other architectures, i.e. ARM. The eieio() macro is not defined on ARM and generates build error. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> --- Cherry-picked from commit: d55398ba81139bc826a8c2417a01280e99f08cf3 --- Change-Id: I6cd072cf6e28fc81a686afab8bc42921da2e5020 Reviewed-on: http://git.am.freescale.net:8181/21172 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Replace spin_event_timeout() with arch independentClaudiu Manoil
Use arch independent code to replace the powerpc dependent spin_event_timeout() from gfar_halt_nodisable(). Added GRS/GTS read accessors to clean-up the implementation of gfar_halt_nodisable(). Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> --- Cherry-picked from commit: a4feee89ce4590c7a4aead49ca5a4853dc6ea5dc --- Change-Id: Ie83fed01fbf4fac1593a7e5de62f90cbdad0b50f Reviewed-on: http://git.am.freescale.net:8181/21171 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Make MAC addr setup endian safe, cleanupClaudiu Manoil
Fix the 32-bit memory access that is not endian safe, i.e. not giving the desired byte layout for a LE CPU: tempval = *((u32 *) (tmpbuf + 4)), where 'char tmpbuf[]'. Get rid of rendundant local vars (tmpbuf[] and idx) and forced casts. Cleanup comments. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> --- Cherry-picked from commit: 83bfc3c4765c35ef0dfff8a3d6dedab88f3f50ea --- Change-Id: Id53e47096164a4829c87559a77be32fc2496e3a6 Reviewed-on: http://git.am.freescale.net:8181/21170 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Exclude PPC specific errata handling from ARM buildsClaudiu Manoil
This excludes the PPC specific instructions for PPC based SoC (MPC85xx family) version identification from ARM builds. The PPC specific macro mfspr() from asm/reg.h is not defined by the ARM architecture. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> --- Cherry-picked from commit: d6ef0bcce386531f250a8abee3c3595214ea1629 --- Change-Id: Ib61a944298c0b30c77b77089d0d960a82510a856 Reviewed-on: http://git.am.freescale.net:8181/21169 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Include missing headers for ARM buildsClaudiu Manoil
Include linux/of_address.h for of_iomap() and linux/of_irq.h for irq_of_parse_and_map(). This wasn't an issue for PPC, because these were implicitly included from asm/prom.h (via linux/of.h) for PPC builds only. ARM builds need these includes explicitly. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> --- Cherry-picked from commit: fd31a9528800b52c7a56a9cfa0af30b44dcfb0c9 Change-Id: I171a0f7025d262bc96bd6cd4fedec96a43b63b4e Reviewed-on: http://git.am.freescale.net:8181/21168 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11net/fsl_pq_mdio: Replace spin_event_timeout() with arch independentClaudiu Manoil
spin_event_timeout() is PPC dependent, use an arch independent equivalent instead. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> --- Cherry-picked from commit: e4b081f543030fc0b23d2cd7d1f6e3ac69d7f47f --- Change-Id: I0eee676e14600fbea105f888dfecb00f32309dad Reviewed-on: http://git.am.freescale.net:8181/21167 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11net/fsl_pq_mdio: Use ioread/iowrite32be() portable accessorsClaudiu Manoil
in_be32()/out_be32() are not defined by ARM. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> --- Cherry-picked from commit: f5bbd262e70ff2355ce4284b0ad9eaf93fb5e374 --- Change-Id: I0da4e74026f112181299880744dc1ccef474a9dc Reviewed-on: http://git.am.freescale.net:8181/21166 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11qe: move qe from arch/powerpc/sysdev/ to drivers/soc/Zhao Qiang
ls1 has qe ip block too, so move qe code from platform directory to public directory. Signed-off-by: Zhao Qiang <B45475@freescale.com> --- patch on upstream can be found with this link: http://patchwork.ozlabs.org/patch/385724/, it is under discussion Change-Id: I39aed531a4792990e3bb8ecc6f4e57f8d9b41bae Reviewed-on: http://git.am.freescale.net:8181/15818 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xiaobo Xie <X.Xie@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11gianfar: Fix the section mismatch warnings.Xiubo Li
Building with CONFIG_DEBUG_SECTION_MISMATCH enabled, the following WARNING is occured: LD drivers/net/built-in.o WARNING: drivers/net/built-in.o(.text+0xcd4c): Section mismatch in reference from the function gfar_probe() to the function .init.text:gfar_init_addr_hash_table() The function gfar_probe() references the function __init gfar_init_addr_hash_table(). This is often because gfar_probe lacks a __init annotation or the annotation of gfar_init_addr_hash_table is wrong. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net> --- This patch is pulled back from upstream: commit 898157ed7473683d515532f9f14bfd2f7743ccd2 Change-Id: If9e87dfccedd8d3eb9e0467ad14b7a940b17249f Reviewed-on: http://git.am.freescale.net:8181/19676 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
2014-12-11Merge tag 'pull-req-to-sdk-v1.7-20141022' of ↵Rich Schmitt
ssh://git.am.freescale.net:29418/sdk/dpaa Changes will be merged into SDK1.7 branch master.
2014-12-11dpaa_eth: fix bp drainingMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Id50a07d95bd2799db086a50301326fc0dac4ec31 Reviewed-on: http://git.am.freescale.net:8181/21378 Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com>
2014-12-11Merge commit '60cce3da4a8393d1e15bf1a9dbe3956a8aaabbaf'Rich Schmitt
2014-12-11offline_port: fix dt parser for tx frame queuesMarian Cristian Rotariu
With the current implementation the user has the possibility to initialize some queues that exit the offline port. The format of the device tree format is: fsl,qman-frame-queues-egress = <base_id1 count1 ... base_idn countn>; fsl,qman-channel-ids-egress = <channel_id1 ... channel_idn>; Intuitively, the base_id1, count1 frame queues batch are placed in the channel_id1 QMan channel. Because the list_add() adds an entry at the beginning of the list, the map between the frame queues and their channel ID is reversed. This patch adds a particular entry at the end of the fq list using list_add_tail() function. Signed-off-by: Marian Cristian Rotariu <marian.rotariu@freescale.com> Change-Id: I8d3a2fd3c36f63d15837ffe90bf6e4e8b041a3e5 Reviewed-on: http://git.am.freescale.net:8181/20154 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-19fmd: force port down when qbmi busyMandy Lavi
Change-Id: I17411cd51bb88c5294bbdf97b8bd18609a00a7f6 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/17708 Reviewed-by: Igal Liberman <Igal.Liberman@freescale.com> Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Tested-by: Mandy Lavi <Mandy.Lavi@freescale.com>
2014-10-08dpaa_eth: accept minimum MTU of at least 68Madalin Bucur
RFC 791 states that the minimum MTU needs to be 68 in order to allow datagram forwarding without further fragmentation. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I4f9602c49a5a9aaac0030f511a6abbf32954f82f Reviewed-on: http://git.am.freescale.net:8181/17073 Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com>
2014-10-08dpaa_eth: add required and active PAUSE frame settingsCristian Bercaru
Because the pause frame settings of a MAC device are forced to false when the link goes half-duplex and cannot be restored if autonegotiation is disabled, this patch introduces 2 sets of settings: requested and active. Requested settings are introduced by the users, via user-space programs such as ethtool, whereas active settings reflect whether FMan truly enables/disables PAUSE frames on TX/RX. Requested settings can only be changed by the user. Active settings can be changed by events such as auto-negotiation or a change in link duplexity and are derived from requested settings. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I5ea563614b28d6ba1827b571097861d39ff8751a Reviewed-on: http://git.am.freescale.net:8181/15553 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2014-10-08dpaa_eth: change type of PAUSE frame settings to booleanCristian Bercaru
This patch changes the type of PAUSE frames settings to boolean because they only accept the values true/false. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I6a3926054d4821f12937e96198c8435df38bf95c Reviewed-on: http://git.am.freescale.net:8181/15552 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2014-10-08fmd: use proper return valueMadalin Bucur
Channel value is uint16_t, return adequate type. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I4295b7f706e9db36ac9d6d02b8896fa11067f612 Reviewed-on: http://git.am.freescale.net:8181/18840 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08fmd: fix casting warningMandy Lavi
Coverity issue Change-Id: If0a7e1dffa09e3513b7ccb13a1dc09bf91056238 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/18831 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Tested-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2014-10-08dpaa_eth: add explicit cast where neededMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I20f1609771d66778acfbbca65e6d0b8ceecb326a Reviewed-on: http://git.am.freescale.net:8181/19077 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08dpaa_eth: fix dpa_bp_drain()Madalin Bucur
The continue jumps to the end of the loop, condition is evaluated and if ret is not > 0 the loop ends. Setting ret to 1 to continue processing until pool is drained. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: If0acf0eba9e1fc814ef61b939d717819a48c7e29 Reviewed-on: http://git.am.freescale.net:8181/19071 Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08dpaa_eth: add explicit cast where neededMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Idc795a681df8b11532e1fdbd2f18c365bfa8a671 Reviewed-on: http://git.am.freescale.net:8181/19007 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08dpaa_eth: add static qualifierMadalin Bucur
Add static qualifier for several functions. Change channel parameter type to uint16_t. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I759e8174d9bfe915ee11f25f572160d33bf4a9d3 Reviewed-on: http://git.am.freescale.net:8181/18843 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08dpaa_eth: add comment about unused error codeMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ica8066db566093bc89e50c23694b519820bf7ae8 Reviewed-on: http://git.am.freescale.net:8181/18842 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08dpaa_eth: verify return valueMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ife32e1984f5dc8f481dad223602163229526b861 Reviewed-on: http://git.am.freescale.net:8181/18841 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08dpaa_eth: add explicit cast where neededMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I6fe0041436e52d76a0677380935d15d8363ddbeb Reviewed-on: http://git.am.freescale.net:8181/18839 Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
2014-10-08dpaa_eth: fix dpa_get_channel return value checkMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I5594b9f26210f9a7237bdd51f529d40a2b008115 Reviewed-on: http://git.am.freescale.net:8181/17400 Reviewed-by: Cristian Bercaru <cristian.bercaru@freescale.com>
2014-10-08dpaa_eth: check qman_query_cgr return valueMadalin Bucur
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: I21558e105b5c3092e96b7e98b570e5613e8bc771 Reviewed-on: http://git.am.freescale.net:8181/17399 Reviewed-by: Cristian Bercaru <cristian.bercaru@freescale.com>
2014-09-29fmd: do not apply erratum A005127 on fmanV3LMandy Lavi
Change-Id: I3de0664e687cb75564d08758889c0cd0878acfb4 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/19953 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Tested-by: Mandy Lavi <Mandy.Lavi@freescale.com>
2014-09-19FMD: DSAR: Don't disable/enable Tx explicitly. Change call to exit DSAR to ↵Eyal Harari
fm_soc_resume Signed-off-by: Eyal Harari <Eyal.Harari@freesacle.com> Change-Id: I888b95ca0c7f2e13266ecf81c41e779666a6e612 Reviewed-on: http://git.am.freescale.net:8181/19106 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Richard Schmitt <richard.schmitt@freescale.com>
2014-09-05dpaa_eth: merge recycle and confirmation queuesMarian Rotariu
In FMan v3, special transmission queues, called recycle queues, were created because it was believed that the FCO flag from the FD is not enough to differentiate between frames that are recyclable and those who are not. The frame queue flags were used to signal the BMI to release the buffers back to the default buffer pool. The last findings and FMan improvements permit recycling activation only by using FD fields. With this patch, the recycling frame queues are not needed anymore. This patch also removes the code dependency on the FMan version and improves TCP traffic in forwarding scenarios due to single transmission queues, reducing the out-of-order segments. Signed-off-by: Marian Rotariu <marian.rotariu@freescale.com> Change-Id: Idd4fea4ef7883563df67cf21dea9e87435b2dee8 Reviewed-on: http://git.am.freescale.net:8181/16872 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2014-09-05FMD: DSAR: call device_set_wakeup_enable only for AR. Do it in .suspend and ↵Eyal Harari
.resume Signed-off-by: Eyal Harari <Eyal.Harari@freesacle.com>