virtio-net: reorganize receive_filter()
commitbbe2f399b222f1f2fcf5cd2ea78e4f5c9a66c64e
authorAlex Williamson <alex.williamson@hp.com>
Fri, 5 Jun 2009 20:47:02 +0000 (5 14:47 -0600)
committerMark McLoughlin <markmc@redhat.com>
Tue, 9 Jun 2009 10:38:50 +0000 (9 11:38 +0100)
tree990edb89cb7d8f94089cf1e13aa369c76c9050f5
parentf10c592e8d35e59a11cf7af1484ab1051acc3ef6
virtio-net: reorganize receive_filter()

Reorganize receive_filter to better handle the split between
unicast and multicast filtering.  This allows us to skip the
broadcast check on unicast packets and leads to more opportunities
for optimization.

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