eepro100: Pad received short frames
authorStefan Weil <weil@mail.berlios.de>
Sat, 30 Apr 2011 20:40:07 +0000 (22:40 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 5 May 2011 13:04:45 +0000 (16:04 +0300)
commit792f1d639443c3895df82306e13bb144627ad6bc
treee2f90d04af7df251c5c5235679085b8bd97716e6
parent27112f18f9025d537f3e6f6df3e574e7f0902cda
eepro100: Pad received short frames

QEMU sends frames smaller than 60 bytes to ethernet nics.
Such frames are rejected by real NICs and their emulations.
To avoid this behaviour, other NIC emulations pad received
frames. This patch enables this workaround for eepro100, too.

All related code is marked with CONFIG_PAD_RECEIVED_FRAMES,
so we can drop this in case QEMU's networking code is
ever changed.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/eepro100.c