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