virtio-net: reorganize receive_filter()