ftgmac100: check RX and TX buffer alignment
commit55efb365191635d9839600f1f44502769e66aabf
authorCédric Le Goater <clg@kaod.org>
Thu, 30 Jan 2020 16:02:02 +0000 (30 16:02 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jan 2020 16:02:02 +0000 (30 16:02 +0000)
tree092c10daa36018a469b0a8685eddf60ae11045b8
parenta29e3e127077709c6b733475a3a031bc49adf293
ftgmac100: check RX and TX buffer alignment

These buffers should be aligned on 16 bytes.

Ignore invalid RX and TX buffer addresses and log an error. All
incoming and outgoing traffic will be dropped because no valid RX or
TX descriptors will be available.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20200114103433.30534-4-clg@kaod.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/ftgmac100.c