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