diff options
author | Andrey Smirnov | 2018-01-11 14:25:35 +0100 |
---|---|---|
committer | Peter Maydell | 2018-01-11 14:25:35 +0100 |
commit | 7bac20dc5111963083686743dee00e0ae4fd976b (patch) | |
tree | ed035f5a0d22c7fd8f0da5dae70f9fa1bb12dc36 /include/hw/net | |
parent | imx_fec: Change queue flushing heuristics (diff) | |
download | qemu-7bac20dc5111963083686743dee00e0ae4fd976b.tar.gz qemu-7bac20dc5111963083686743dee00e0ae4fd976b.tar.xz qemu-7bac20dc5111963083686743dee00e0ae4fd976b.zip |
imx_fec: Move Tx frame buffer away from the stack
Make Tx frame assembly buffer to be a paort of IMXFECState structure
to avoid a concern about having large data buffer on the stack.
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')
-rw-r--r-- | include/hw/net/imx_fec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/net/imx_fec.h b/include/hw/net/imx_fec.h index 62ad473b05..67993870a2 100644 --- a/include/hw/net/imx_fec.h +++ b/include/hw/net/imx_fec.h @@ -252,6 +252,9 @@ typedef struct IMXFECState { uint32_t phy_int_mask; bool is_fec; + + /* Buffer used to assemble a Tx frame */ + uint8_t frame[ENET_MAX_FRAME_SIZE]; } IMXFECState; #endif |