]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net/stellaris_enet: Correct handling of packet padding
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:36 +0000 (16:09 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Jun 2014 20:33:46 +0000 (15:33 -0500)
commit38a55f30700346b8b53e52445eaaf6b0e579a17b
treefaf97671adf1fdbb179326c1c02c11952553f594
parent7d09facec7d0b39bf1e8642ceb9a8a70f80919e6
hw/net/stellaris_enet: Correct handling of packet padding

The PADEN bit in the transmit control register enables padding of short
data packets out to the required minimum length. However a typo here
meant we were adjusting tx_fifo_len rather than tx_frame_len, so the
padding didn't actually happen. Fix this bug.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: qemu-stable@nongnu.org
(cherry picked from commit 7fd5f064d1c1a827a95ffe678418b3d5b8d2f108)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/stellaris_enet.c