summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c
diff options
context:
space:
mode:
authorMandy Lavi <mandy.lavi@freescale.com>2014-04-06 11:18:54 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-04-29 15:32:44 (GMT)
commitd9300967a2cead787ec535e5bb7ff87be881d510 (patch)
treeafdb171e1e01add3114fa17bc4a01238a227dccb /drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c
parent967c39a59a9b78af06b1e8d335935ed93769f08c (diff)
downloadlinux-fsl-qoriq-d9300967a2cead787ec535e5bb7ff87be881d510.tar.xz
fmd: remove resource allocation algorithm
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c')
-rw-r--r--drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c
index 2c464cb..e24f929 100644
--- a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c
+++ b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c
@@ -862,18 +862,6 @@ static t_Error InitFmPortDev(t_LnxWrpFmPortDev *p_LnxWrpFmPortDev)
i++;
}
-#if defined(CONFIG_FMAN_RESOURCE_ALLOCATION_ALGORITHM)
-#if (DPAA_VERSION >= 11)
-#warning The resource allocation algorithm is not available for FMan v3 platforms
-#else
- /* even if these functions return w/ error, do not crash kernel.
- Do not return anything because the container function is not
- linux complient (it should return -EIO). */
- fm_config_precalculate_fifosize(p_LnxWrpFmPortDev);
- fm_config_precalculate_open_dma(p_LnxWrpFmPortDev);
- fm_config_precalculate_tnums(p_LnxWrpFmPortDev);
-#endif
-#endif
if ((p_LnxWrpFmPortDev->settings.param.portType != e_FM_PORT_TYPE_TX) &&
(p_LnxWrpFmPortDev->settings.param.portType != e_FM_PORT_TYPE_TX_10G)) {