summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Hamciuc <bogdan.hamciuc@freescale.com>2013-06-10 16:57:04 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-07-22 21:39:35 (GMT)
commita6ac0e47cc40682f85bf8cfaa68554d649a76523 (patch)
tree498f55f4a2a93a08829b2d112de798b5e2686933
parent97b79471912e3befcbd3eee5fe4fe6100e7b05da (diff)
downloadlinux-fsl-qoriq-a6ac0e47cc40682f85bf8cfaa68554d649a76523.tar.xz
fmd,dpaa_eth: Selectively reenable FMan allocation algorithm
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>
-rw-r--r--drivers/net/ethernet/freescale/dpa/Kconfig1
-rw-r--r--drivers/net/ethernet/freescale/fman/Kconfig2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/Kconfig b/drivers/net/ethernet/freescale/dpa/Kconfig
index 06ea4f9..7afd3aa 100644
--- a/drivers/net/ethernet/freescale/dpa/Kconfig
+++ b/drivers/net/ethernet/freescale/dpa/Kconfig
@@ -36,6 +36,7 @@ choice FSL_DPAA_ETH_OPTIMIZE
config FSL_DPAA_ETH_OPTIMIZE_FOR_IPFWD
bool "Optimize for forwarding"
select FSL_DPAA_TX_RECYCLE if FMAN_T4240
+ select FMAN_RESOURCE_ALLOCATION_ALGORITHM if (FMAN_P3040_P4080_P5020 || FMAN_P1023)
---help---
Optimize the DPAA-Ethernet driver for IP/IPSec forwarding use-cases.
This option disabled SG support in the DPAA Ethernet driver.
diff --git a/drivers/net/ethernet/freescale/fman/Kconfig b/drivers/net/ethernet/freescale/fman/Kconfig
index a6d52e5..ec7449f 100644
--- a/drivers/net/ethernet/freescale/fman/Kconfig
+++ b/drivers/net/ethernet/freescale/fman/Kconfig
@@ -34,7 +34,7 @@ endmenu
config FMAN_RESOURCE_ALLOCATION_ALGORITHM
bool "Enable FMan dynamic resource allocation algorithm"
- default n
+ default y if ((FMAN_P3040_P4080_P5020 || FMAN_P1023) && FSL_DPAA_ETH_OPTIMIZE_FOR_IPFWD)
---help---
Enables algorithm for dynamic resource allocation