-
Asias He authored
This patch reworks on virtio transport abstraction. * Move virtio transport operations to virtio operations and drop virtio/trans.c This makes the abstraction much cleaner. * Rename struct virtio_trans to struct virtio_device struct virtio_trans { void *virtio; enum virtio_trans_type type; struct virtio_trans_ops *trans_ops; struct virtio_ops *virtio_ops; }; struct virtio_device { void *virtio; struct virtio_ops *ops; }; The virtio_trans struct is bit confusing since it also includes virtio operations. * Introduce virtio_init() To init device, e.g. Before: virtio_trans_init() ndev->vtrans.trans_ops->init() ndev->vtrans.virtio_ops = &net_dev_virtio_ops After: virtio_init() Signed-off-by:
Asias He <asias.hejun@gmail.com> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
02eca50c