summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fman/Kconfig
AgeCommit message (Collapse)Author
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>
2015-03-23fmd: create new config flavor for FManV3LMandy Lavi
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. FmanV3H h/w block is integrated in B4860, B4420, T4240, T4160, T2080 etc FmanV3L h/w block is integrated in T1040, T1024, T1020, T1022 etc defconfig files changes: corenet64_fmanv3_smp_defconfig -> corenet64_fmanv3l_smp_defconfig corenet32_fmanv3_smp_defconfig -> corenet32_fmanv3l_smp_defconfig 85xx/e6500rev2_defconfig -> corenet64_fmanv3h_smp_defconfig Change-Id: I9fcfb454bc3bd2d72c5d55c616400a808e181413 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/30539 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>
2014-12-11powerpc/t1024: update defconfig and dts for fman_v3l platformShengzhou Liu
- add CONFIG_FMAN_V3L by default for FMan_V3L platform. - t1024 officially supports 6 portals of QMan/BMan instead of 10 - remove CONFIG_ALTIVEC as e5500 core has no ALTIVEC. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com> Change-Id: I71a5426ad441ef034c66e2d794a86b366092530d Reviewed-on: http://git.am.freescale.net:8181/23188 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Richard Schmitt <richard.schmitt@freescale.com>
2014-05-21fmd: disabling OH ports no longer availableCristian Bercaru
With this patch, the option FMAN_DISABLE_OH_TO_REUSE_RESOURCES is not availeble anymore because it depends on FMAN_RESOURCE_ALLOCATION_ALGORITHM, which no longer exists. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I67a1e45f8b8b11c9b191cae0d8c9b56bdc912876 Reviewed-on: http://git.am.freescale.net:8181/12502 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-05-13Revert "fman: updating default value of FSL_FM_RX_EXTRA_HEADROOM from 64 to ↵Richard Schmitt
128 bytes" This reverts commit 98345f7c55a5a52b30aa0982cec8644ad9636bdb. Change-Id: I7cc841b30ed0e23728b40dd10057edb9c54d07fe Reviewed-on: http://git.am.freescale.net:8181/12289 Reviewed-by: Richard Schmitt <richard.schmitt@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> Tested-by: Jose Rivera <German.Rivera@freescale.com>
2014-05-13fman: Add t10xx port constraintJianhua Xie
There are two FMAN V3 version: FMAN_V3H and FMAN_V3L. Some hardware resources are different between the two version. T1040, T1042, T1020, T1022 belong to FMAN_V3L, there are 4 Offline/Host Command Ports (O/H n) in FMAN_V3L. But there are 6 Offline/Host Command Ports (O/H n) in FMAN_V3H. This patch is correcting some definition like INTG_MAX_NUM_OF_FM, FM_MAX_NUM_OF_10G_MACS, FM_MAX_NUM_OF_1G_MACS and etc. according to (T1040RM Rev D, 04/2014) Signed-off-by: Jianhua Xie <jianhua.xie@freescale.com> Change-Id: I3f7fa9b70fad30b49cd76da57429ab8ad08b5176 Reviewed-on: http://git.am.freescale.net:8181/12241 Reviewed-by: Jiafei Pan <Jiafei.Pan@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-05-09fman: updating default value of FSL_FM_RX_EXTRA_HEADROOM from 64 to 128 bytesAlok Makhariya
64 is not enough to handle IPv6-IPSec and it will impact both Linux and ASF IPSec-IPv6 performance so updating the headroom to 128 bytes CR:ENGR00309290 Signed-off-by: Alok Makhariya <B46187@freescale.com> Change-Id: Iae44de3c58d616a846a5f04d2f3013f7c7581ad7 Reviewed-on: http://git.am.freescale.net:8181/12056 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Hemant Agrawal <hemant@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-04-29fmd: remove resource allocation algorithmMandy Lavi
After the removal of the resource allocation algorithm fmd will use the default configuration of resource allocation which should cover all common cases. Special un-common cases should use the chosen-node mechanism to program the resources differently Change-Id: I5943bc70f790bc3cc331a9cde6569fad6a882c8f Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/11567 Reviewed-by: Nir Erez <nir.erez@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> Tested-by: Jose Rivera <German.Rivera@freescale.com>
2014-04-04FMD: set the default number of PFC Classes of Service to a minimum of 3Cristian Bercaru
As PFC support is in the experimental phase, the default number of Classes of Service is set to a minimum of 3. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I5a2848788617a00cd72f2db51febcb4023a9bef5 Reviewed-on: http://git.am.freescale.net:8181/10652 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Mandy Lavi <Mandy.Lavi@freescale.com> Reviewed-by: Ehud Shiff <Ehud.Shiff@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-03-31FMD: add PFC support for FMan v3 platformsCristian Bercaru
Configure up to 4 PFC priorities each with its PAUSE quanta. Each PFC priority controls a Work Queue on a FMan port. When the private interfaces' buffer pool depletes, there are issued PFC frames for the number of all configured priorities. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I8a6102f4a77b44d07973a38b98493226e9b69bbd Reviewed-on: http://git.am.freescale.net:8181/9767 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2014-01-13fmd: fix a few spelling errorsMadalin Bucur
Fix some spelling errors reported by codespell. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ife8a41b1439798191140e2b3abc24f75ac208553 Reviewed-on: http://git.am.freescale.net:8181/7659 Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com> Tested-by: Jose Rivera <German.Rivera@freescale.com> (cherry picked from commit 7ef92c5cb08d9b09436daf52f5f359294995832c) Reviewed-on: http://git.am.freescale.net:8181/7825
2014-01-06dpaa_eth: Remove IPFWD driver codeIoana Radulescu
No longer maintain two driver flavours; the version that supports S/G frames has undergone an optimization process such that its forwarding performance is close to that of the driver being retired. All source code related to the forwarding driver is removed, along with the following Kconfig options: FSL_DPAA_ETH_OPTIMIZE_FOR_IPFWD, FSL_DPAA_ETH_OPTIMIZE_FOR_TERM, CONFIG_FSL_DPAA_ETH_SG_SUPPORT (code under this last define is now left unguarded). Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: Ibaf74414e2b7a3687ab06448484bc5d154ebf4a9 Reviewed-on: http://git.am.freescale.net:8181/6175 Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Gupta Rajan-B15745 <rajan.gupta@freescale.com> Reviewed-by: Thomas Trefny <Tom.Trefny@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/7668 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
2013-07-30fmd: Update range for FSL_FM_RX_EXTRA_HEADROOMIoana Radulescu
We need to reserve some space in the Rx skb buffer for NET_IP_ALIGN, otherwise on forwarding the stack may reallocate the skb header. The most easily available place to do this is the Rx extra headroom, so enforce the minimum non-zero possible value as lower end of the configuration range. While here, enforce (and comment on) the restriction to only set values which are a multiple of 16 bytes, which was missed in the previous version of the help text. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I9403a36f11cc1c7b9460126fb5ab97237f9bd105 Reviewed-on: http://git.am.freescale.net:8181/3482 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-22fmd,dpaa_eth: Selectively reenable FMan allocation algorithmBogdan Hamciuc
On P3/P4/P5 platforms, as well as on P1023, FMan's default resource allocation values are not enough to enable jumbo frame forwarding in the absence of SG support. Enable the (previously deselected) FMan dynamic resource allocation algorithm on those platforms, if the legacy DPAA-Ethernet driver (missing SG support) is used. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: Iec8224c331b95903d57291312791ac6bf0b7fa8a Reviewed-on: http://git.am.freescale.net:8181/3332 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-07-15dpaa_eth: undo merge on master branchMadalin Bucur
One of the merged patches was no longer needed and the rest break a large set of patches already prepared for review. The required patches are available on top of the large patch set. Revert "dpaa_eth: Handle buffer pool depletion" This reverts commit 1fd9018f9c6a10932e86285c256bfdf50da8c0c1. Revert "dpaa_eth: Fix pool counters on error path" This reverts commit e8a66453a9b71d4d5290bd4962cc6ec2fda1b848. Revert "dpaa_eth: Switch compile-time default optimization" This reverts commit 47a79e454a7f54b96b3133e139e707944375edca. Revert "fmd,dpaa_eth: Selectively reenable FMan allocation algorithm" This reverts commit 3cc98fd0b85bdb61f83672fdc4609b68f0c7a75f. Revert "dpaa_eth: Fix endless loop in case of memory depletion" This reverts commit b676b243d7ccdd4879ea8c5fb74a6d3e2a7f2e5e. Revert "dpaa_eth: Set a fixed upper limit for recycleable buffer size" This reverts commit 252b622b8058a309d2429a33c2e0de089be896ac. Revert "dpaa_eth: Fix computation of cache padding" This reverts commit a3b310dbe6d25132698a88618e7ef52bc6749177. Revert "dpaa_eth: Fix Tx/TxConfirm initialization bug" This reverts commit 429d9f28709eb7c916d4c6da4cccfae33906c510. Change-Id: I22765f8406f43bb2c7d84fbf5fdb67c74697a008 Reviewed-on: http://git.am.freescale.net:8181/3305 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-06-15Revert "fmd: Conditionally set default MAX_FRAME_SIZE"Bogdan Hamciuc
The initial patch was meant to allow the user to set any MTU she desires without rebooting the system and changing the kernel bootargs. This however led to problems when the user would manually choose FSL_DPAA_ETH_OPTIMIZE_FOR_IPFWD, because the default MAX_FRAME_SIZE=9600 would remain selected and this wasn't all that obvious. Reverting to the previous config selection is the best choice now. This reverts commit 68dbabbdb1e28169a372530ca3712c3b63296322. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: I71499e9b86f8909d049ff4347c4fe035e67d704a Reviewed-on: http://git.am.freescale.net:8181/2971 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Schmitt Richard-B43082 <B43082@freescale.com> Tested-by: Schmitt Richard-B43082 <B43082@freescale.com>
2013-06-11fmd,dpaa_eth: Selectively reenable FMan allocation algorithmBogdan Hamciuc
On P3/P4/P5 platforms, as well as on P1023, FMan's default resource allocation values are not enough to enable jumbo frame forwarding in the absence of SG support. Enable the (previously deselected) FMan dynamic resource allocation algorithm on those platforms, if the legacy DPAA-Ethernet driver (missing SG support) is used. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: I6dfc9e2c624c123febfc4d2cbe8fe1fda660525d Reviewed-on: http://git.am.freescale.net:8181/2929 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Lavi Mandy-R52568 <Mandy.Lavi@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-05-29fmd: Conditionally set default MAX_FRAME_SIZEBogdan Hamciuc
FSL_FM_MAX_FRAME_SIZE used to be conservatively set to 1522, to accomodate the driver without S/G support. But in fact the default value should depend on whether S/G support is available or not. Using 9600 as the default max frame size, if S/G support is available in the DPAA Ethernet driver. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: I82d4c0b41f4a46e3464eb4d64239bb3d4a4158dc Reviewed-on: http://git.am.freescale.net:8181/2759 Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@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-04-08dpaa: Fix dependencies for FMAN and DPAA EthernetAndy Fleming
BMAN and QMAN are merged, and both the DPAA Ethernet and FMAN drivers require the QMAN/BMAN support to build. We therefore note that dependency in the Kconfigs. Change-Id: I7eda3375ca0e9e760cd7650be08c9b41acaac9af Signed-off-by: Andy Fleming <afleming@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1112 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
2013-04-08fmd: fmd19 integrationMandy Lavi
Add fmd19 codebase, plus a minimal set of sources from dpaa-eth, necessary for bare compilation Change-Id: I390df8717671204e3d98a987135393bef4534e95 Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/1029 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>