e1000: Pad short frames to minimum size (60 bytes)
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Sat, 18 Sep 2010 20:43:45 +0000 (21:43 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 Sep 2010 18:03:39 +0000 (20:03 +0200)
commit81cb0152021240df7184aba7c02e732f77cbb9f5
tree1d31734cd3afa2cef5fc7b7f0aeb31f0f44546b3
parent9f23c9ecc33395e97c34cb572ad797a8605d3170
e1000: Pad short frames to minimum size (60 bytes)

The OpenIndiana (Solaris) e1000g driver drops frames that are too long
or too short.  It expects to receive frames of at least the Ethernet
minimum size.  ARP requests in particular are small and will be dropped
if they are not padded appropriately, preventing a Solaris VM from
becoming visible on the network.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/e1000.c