virtio-net: MAC filter optimization
authorAlex Williamson <alex.williamson@hp.com>
Fri, 5 Jun 2009 20:47:13 +0000 (14:47 -0600)
committerMark McLoughlin <markmc@redhat.com>
Tue, 9 Jun 2009 10:38:50 +0000 (11:38 +0100)
commit6ee261400226e1cf4fa6efc979300786b7c46d2e
tree9cdf576d1579a85d85601d3e10ef92b33ea322ba
parent2191bb49d6f7c13acdab7bab856fce7eb20e5884
virtio-net: MAC filter optimization

The MAC filter table is received from the guest as two separate
buffers, one with unicast entries, the other with multicast
entries.  If we track the index dividing the two sets, we can
avoid searching the part of the table with the wrong type of
entries.

We could store this index as part of the save image, but its
trivially easy to discover it on load.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
hw/virtio-net.c