diff options
author | Mandy Lavi <mandy.lavi@freescale.com> | 2014-06-02 18:51:38 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-06-04 23:47:38 (GMT) |
commit | 7096dc170792ceafc697db01bd2ebec789d67b8c (patch) | |
tree | 2ecf2cfe0bb1a0c668e12d4fc502876342319b2c /drivers/net/ethernet/freescale | |
parent | 593c068e0f5ade8908fcb3d6d12045037d757c2e (diff) | |
download | linux-fsl-qoriq-7096dc170792ceafc697db01bd2ebec789d67b8c.tar.xz |
fmd: add new attribute total-fifo-size to fman chosen node
This will enable increasing the total allowed fifo-size
to more than 120KB for FManV1 parts (up to 160KB)
for the purpose of better traffic performance in case
that jumbo frames are involved
Change-Id: I3e357e08656af7d4f6c7e1c071212ccc81825449
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/13297
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Nir Erez <nir.erez@freescale.com>
Reviewed-by: Thomas Trefny <Tom.Trefny@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rwxr-xr-x | drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c index b4d3fc0..600cbc5 100755 --- a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c +++ b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm.c @@ -736,6 +736,17 @@ static t_Error CheckNConfigFmAdvArgs (t_LnxWrpFmDev *p_LnxWrpFmDev) RETURN_ERROR(MINOR, err, NO_MSG); } + uint32_prop = (uint32_t *)of_get_property(dev_node, + "total-fifo-size", &lenp); + if (uint32_prop) { + if (WARN_ON(lenp != sizeof(uint32_t))) + RETURN_ERROR(MINOR, E_INVALID_VALUE, NO_MSG); + + if (FM_ConfigTotalFifoSize(p_LnxWrpFmDev->h_Dev, + *uint32_prop) != E_OK) + RETURN_ERROR(MINOR, E_INVALID_VALUE, NO_MSG); + } + uint32_prop = (uint32_t *)of_get_property(dev_node, "tnum-aging-period", &lenp); if (uint32_prop) { |