hw/net/spapr_llan: Provide counter with dropped rx frames to the guest
commit5c29dd8c28c3c7718cc37b38c5171b3caf629928
authorThomas Huth <thuth@redhat.com>
Mon, 4 Apr 2016 10:13:10 +0000 (4 12:13 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 26 May 2016 23:40:23 +0000 (27 09:40 +1000)
tree953ecb3e14535f981afd606f662a146b6f785577
parent8836630f5d2df198dca2da9a1f1fb2d2a0c310a0
hw/net/spapr_llan: Provide counter with dropped rx frames to the guest

The last 8 bytes of the receive buffer list page (that has been supplied
by the guest with the H_REGISTER_LOGICAL_LAN call) contain a counter
for frames that have been dropped because there was no suitable receive
buffer available. This patch introduces code to use this field to
provide the information about dropped rx packets to the guest.
There it can be queried with "ethtool -S eth0 | grep rx_no_buffer".

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/net/spapr_llan.c