• Yatin Manerkar's avatar
    virtio: Decouple virtqueues and vrings · 80098d52
    Yatin Manerkar authored
    Add struct virtqueue_ops back into the virtio core code to facilitate
    the use of virtqueue implementations other than vrings. This allows
    virtqueue implementations that use SMD drivers, USB drivers, or other
    mechanisms for transport.
    
    Add a new virtqueue operation, virtqueue_get_impl_size, to provide the
    functionality of virtqueue_get_vring_size from the previous collapsed
    implementation.
    
    This commit partially reverts commit
    7c5e9ed0
    
    .
    
    Change-Id: I1219c4f203879658dce5800f405291bf311564b4
    Signed-off-by: default avatarYatin Manerkar <yatinm@codeaurora.org>
    80098d52
virtio_net.c 31.6 KB