diff options
| author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-01-11 13:25:35 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2018-01-11 13:25:35 +0000 |
| commit | 7bac20dc5111963083686743dee00e0ae4fd976b (patch) | |
| tree | ed035f5a0d22c7fd8f0da5dae70f9fa1bb12dc36 /include/hw/net/imx_fec.h | |
| parent | b2b012afdd9c03ba8a1619f45301d34f358d367b (diff) | |
| download | focaccia-qemu-7bac20dc5111963083686743dee00e0ae4fd976b.tar.gz focaccia-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/imx_fec.h')
| -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 |