diff options
author | Mandy Lavi <mandy.lavi@freescale.com> | 2013-05-28 08:06:07 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-28 22:41:11 (GMT) |
commit | 286e6743957e850f10cade7b2abddbf9572467a8 (patch) | |
tree | ee0160071277678aa3cc0e5223796169ac0cad10 /drivers/net/ethernet/freescale/fman | |
parent | 5f4547769dd851644f6276ee8caafbe5727d7ccb (diff) | |
download | linux-fsl-qoriq-286e6743957e850f10cade7b2abddbf9572467a8.tar.xz |
fmd: applied the appropriate liodn_offset to all VSPs
CR:ENGR00263170
The previous default liodn_offset is no longer valid in sdk1.4
Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com>
Change-Id: I9acbe9433e4c569b197139d5d9201af740f318f0
Reviewed-on: http://git.am.freescale.net:8181/2732
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c index c958675..3c372a3 100644 --- a/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c +++ b/drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_ioctls_fm.c @@ -2790,7 +2790,12 @@ invalid_port_id: #endif if (copy_from_user(¶m, (void *)arg, sizeof(param))) RETURN_ERROR(MINOR, E_WRITE_FAILED, NO_MSG); - param.p_fm = p_LnxWrpFmDev->h_Dev; + { + uint8_t portId = param.port_params.port_id; + param.p_fm = p_LnxWrpFmDev->h_Dev; + param.liodn_offset = + p_LnxWrpFmDev->rxPorts[portId].settings.param.specificParams.rxParams.liodnOffset; + } param.id = FM_VSP_Config((t_FmVspParams *)¶m); #if defined(CONFIG_COMPAT) |