diff options
author | Andrey Smirnov | 2018-01-11 14:25:36 +0100 |
---|---|---|
committer | Peter Maydell | 2018-01-11 14:25:36 +0100 |
commit | ff9a7feeab59323d70a9377e9196f042b0647d66 (patch) | |
tree | 70fe05a0b3902fd4619387c29263d3f1515fdfde /include/hw/net/lance.h | |
parent | imx_fec: Move Tx frame buffer away from the stack (diff) | |
download | qemu-ff9a7feeab59323d70a9377e9196f042b0647d66.tar.gz qemu-ff9a7feeab59323d70a9377e9196f042b0647d66.tar.xz qemu-ff9a7feeab59323d70a9377e9196f042b0647d66.zip |
imx_fec: Use ENET_FTRL to determine truncation length
Frame truncation length, TRUNC_FL, is determined by the contents of
ENET_FTRL register, so convert the code to use it instead of a
hardcoded constant.
To avoid the case where TRUNC_FL is greater that ENET_MAX_FRAME_SIZE,
increase the value of the latter to its theoretical maximum of 16K.
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org
Cc: yurovsky@gmail.com
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/net/lance.h')
0 files changed, 0 insertions, 0 deletions