spapr-vlan: Don't touch last entry in buffer list
commit439ce1401bac1687c711cb6acf4ee8f3f457c05e
authorAnton Blanchard <anton@samba.org>
Fri, 22 Aug 2014 01:50:57 +0000 (22 11:50 +1000)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:52 +0000 (8 12:50 +0200)
tree3192a4e751af6404bcb3de01c35fe2aa2db6da0b
parent32420522482ffc20f8e9423af4f41f4e05ce3a56
spapr-vlan: Don't touch last entry in buffer list

The last 8 bytes of the buffer list is defined to contain the number
of dropped frames. At the moment we use it to store rx entries,
which trips up ethtool -S:

rx_no_buffer: 9223380832981355136

Fix this by skipping the last buffer list entry.

Signed-off-by: Anton Blanchard <anton@samba.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/net/spapr_llan.c