hw/net/spapr_llan: Extract rx buffer code into separate functions
commitd6f39fdfcd30b3f65f9aad396e7caa49285a5a0a
authorThomas Huth <thuth@redhat.com>
Mon, 21 Mar 2016 16:25:22 +0000 (21 17:25 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 24 Mar 2016 00:17:34 +0000 (24 11:17 +1100)
treecf95922c78538351a755868e6c8e1afcbdbee0d0
parent9c1cf38d28fd0c09efc08b6f9e86dff293248e44
hw/net/spapr_llan: Extract rx buffer code into separate functions

Refactor the code a little bit by extracting the code that reads
and writes the receive buffer list page into separate functions.
There should be no functional change in this patch, this is just
a preparation for the upcoming extensions that introduce receive
buffer pools.

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