summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
AgeCommit message (Collapse)Author
2015-11-26fmd: remove cc-aging supportHEADmasterMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-25fmd: relocate aging_support field to maintain compatibilityMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-24fmd: move compat_copy_fm_pcd_kg_scheme_spc out of DPAA 11 defMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-24fmd: PCD: fix offline port blocked by fragmented IPV6Mandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-24fmd: Add support for IPF after HManMandy Lavi
fmd: change cc owners attribute from uint8 to unit16 fmd: change manip owner attribute from uint8 to unit16 fmd: add risc load monitor in sysfs fmd: Fix modification of nodes pointed by HM fmd: add missing fields in pcd_manip_hdr_insrt_ip Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-24Merge pull request #69 in SDK/linux-devel from ↵Yin Honghua-R63875
~R27762/linux-devel:add_hm_node_stats to master * commit 'a9d0ea5a4d3b679ae3316c93b455d2ccc993772d': fmd: Render header manip node statistics available in user space
2015-11-18fmd: add ioctl call to retrieve scheme counter - spcMandy Lavi
Based on FM_PCD_KgSchemeGetCounter() function which is already exposed by the API Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-16fmd: Render header manip node statistics available in user spaceMarian Chereji
Added a user space interface for the "FM_PCD_ManipGetStatistics" function for retrieving header manipulation nodes statistics (including IP reassembly and fragmentation). Signed-off-by: Marian Chereji <marian.chereji@freescale.com>
2015-11-09fmd: fix compat layer for aging_supportMandy Lavi
This attribute should have been added also to the compat layer while it was implemented in the general layer Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-02fmd: fix locks in ModifyKey functionMandy Lavi
Fixing an issue that occurs when there are two root ccnodes and both of them point to the same miss ccnode Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-11-02fmd: support aging in CCMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-10-26Revert "gianfar: Add dma transfer endian property support"Claudiu Manoil
This reverts commit 20af0dc3a4003cdfaaac974dfe131e030b857dcd. Revert this non-upstreamable patch (DMACTRL[LE] hack) from SDK1.9, to sync gianfar with following usptream u-boot fix: git.denx.de/?p=u-boot/u-boot-arm.git/ commit: ebe4c1e6469444753bd2ba93fe63e6183cf2905c (“ls102xa: etsec: Use proper settings for BE BDs”). Details about the fix are documented by this uboot commit. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
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-10-21net, gianfar, rt: Update TX_TIMEOUT to 5HZAbhimanyu
Increased TX_TIMEOUT to 5HZ to improve performance in case of Real-Time. Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com> Signed-off-by: Abhimanyu <abhimanyu@freescale.com>
2015-10-14fmd: fix policer spelling issuesMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-10-14fmd: Remove FM_PORT_PcdPrsModifyStartOffset routine - not supportedMandy Lavi
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
2015-09-24dpaa_eth: Add a configurable dpa_tx callCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@freescale.com>
2015-06-01Merge branch 'qoriq-sdk' into LS1-SDK-Rev2.0jason
2015-05-27fmd: fix case label consistencyMandy Lavi
Change-Id: I41397d36e3966e099e53d8d5c35b2fdbd27e2055 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/36866 Reviewed-by: Igal Liberman <Igal.Liberman@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-25Revert "gianfar: Disable Rx snooping for LS1"Claudiu Manoil
This reverts commit 7b1b36aa677846919b11ef4befa211063ed45702. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: Ie309215f0085b3c7624a337444f54c38ecc65d69 Reviewed-on: http://git.am.freescale.net:8181/29540 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Sandeep Malik <Sandeep.Malik@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/36549
2015-05-25Revert "gianfar: Remove tx snooping support from LS1"Claudiu Manoil
This reverts commit f2cb63dfbbc290dd37fb4a4272f4905104ea5ebb. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Change-Id: Id060915a002e4eabae23a521da4283eb447216ef Reviewed-on: http://git.am.freescale.net:8181/29539 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Sandeep Malik <Sandeep.Malik@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/36548
2015-05-20fmd: fix buffer overflow in dsar sysfs printoutsMandy Lavi
Change-Id: Id5ecb2f85caea934dc3de2b69e538af45316e14f Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/36567 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Eyal Harari <Eyal.Harari@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-19fmd: fix licensing conflictsMandy Lavi
Change-Id: Ib662fba72d3ad0e5260bcc36006fa0dd7158b056 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/36405 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Nir Erez <nir.erez@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-14fmd: fix ioctl of FM_CtrlMonGetCountersPan Jiafei
Signed-off-by: Pan Jiafei <Jiafei.Pan@freescale.com> Change-Id: If3f1264a02dbc9241b10e6050ff0c55c17170ab1 Reviewed-on: http://git.am.freescale.net:8181/35983 Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-13mdio: remove unused workaround for xgmac_mdio_readShengzhou Liu
The bug in xgmac_mdio_read have been fixed, so remove the temporary workaround which is no longer needed. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Change-Id: I7d932208ff81bd00f6c761b57c5b1dacf456e48b Reviewed-on: http://git.am.freescale.net:8181/35748 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xiaobo Xie <X.Xie@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-08fmd: fix total-fifo-size related error messagesMandy Lavi
Change-Id: Ibb15bb7b55678030e577c7ec6e0f0980b49e985b Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/36009 Reviewed-by: Eyal Harari <Eyal.Harari@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-08fmd: add replication of relative_storage_profile_id in compat layerMandy Lavi
Change-Id: I408d577d952f3ce9237dce1105ef1e577ad2cc6b Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35819 Reviewed-by: Eyal Harari <Eyal.Harari@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@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-05-05fmd: clear parser start offset for all casesMandy Lavi
Change-Id: I408df80410abae8d39ed73299b4e5df2e76cc8ad Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35430 Reviewed-by: Liron Himi <Liron.Himi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-05fmd: fix parsing of IPv6 GRE frames on inbound OPMandy Lavi
Change-Id: Ic55d4f698c2d406d524e54f817a07f0810f87e25 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35329 Reviewed-by: Liron Himi <Liron.Himi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-05-05fmd: rtc: set ClkRatio to 1 for T4 devicesMandy Lavi
Change-Id: I059708174df6e363b3b35102231130c1b9ccbedc Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35897 Reviewed-by: Yangbo Lu <yangbo.lu@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-04-30fmd: Add support for SW parser being run before HW parserMandy Lavi
Change-Id: Ia1830aa7a73fcc081dc6e54ee0599b10747bcd2b Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35266 Reviewed-by: Liron Himi <Liron.Himi@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
2015-04-28net/fsl: fix a bug in xgmac_mdioShaohui Xie
There is a bug in xgmac_mdio_read when clear the bit MDIO_STAT_ENC, which '&' is missed in 'mdio_stat &= ~MDIO_STAT_ENC'. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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-27fmd: Alter MACsec MFL when the SCI is missing from the SecTAGCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@freescale.com> Change-Id: I5f8d3dcebad92e14972ef9e48188e7df6642cc0a Reviewed-on: http://git.am.freescale.net:8181/35473 Reviewed-by: Liron Himi <Liron.Himi@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@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-23fmd: chage IRAM_SIZE macro to depend on FMan block versionMandy Lavi
Change-Id: Ia3943df8ebeca664c64782b3eb76f26dafde4fd7 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35431 Reviewed-by: Liron Himi <Liron.Himi@freescale.com> Tested-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@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-21fmd: rtc: consider RCW[FM_MAC_RAT] when calcuating rtc ref clockMandy Lavi
Change-Id: I1b8a2966ad45f995e7e6b3cdca7f8ed5e0dd397a Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/35026 Reviewed-by: Igal Liberman <Igal.Liberman@freescale.com> Reviewed-by: Yangbo Lu <yangbo.lu@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com> Tested-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-06fmd: Fix incorrect disabling of macsec cfg ptp registerCamelia Groza
Signed-off-by: Camelia Groza <camelia.groza@freescale.com> Change-Id: I7ae237524eea4a1a7587850152ca88eb74a9807d Reviewed-on: http://git.am.freescale.net:8181/34261 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-04-03fsl/mdio: fixup for rtl8211f on t1023rdbShengzhou Liu
As the 50us delay was not enough and lead to RTL8211F PHY not working on some T1023RDB boards. so increase the delay to make it work stably. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Change-Id: Iff011d0b762e087ae401a510c71e06b8181061c5 Reviewed-on: http://git.am.freescale.net:8181/34201 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Shaohui Xie <Shaohui.Xie@freescale.com> Reviewed-by: Honghua Yin <Hong-Hua.Yin@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-30fmd: Fix build issue in case FSL_FMAN_TEST is selectedCristian Sovaiala
Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: Ic80a3f28c92aba18af32416d9216759f819c3e8c Reviewed-on: http://git.am.freescale.net:8181/33687 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
2015-03-30fmd: Automatically select FSL_DPAA_HOOKS optionCristian Sovaiala
The hooks in the DPAA Ethernet driver are guarded by a new config option FSL_DPAA_HOOKS therefore select this option when enabling FSL_FMAN_TEST. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I52a22ae0357f9169741b8ccb17fc669a087cde36 Reviewed-on: http://git.am.freescale.net:8181/33686 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>