diff options
Diffstat (limited to 'drivers/net/ethernet/freescale')
-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) |