net/virtio: move device initialization in a function
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 13 Oct 2016 14:16:00 +0000 (16:16 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 18:15:29 +0000 (20:15 +0200)
commit198ab33677c9edd1d001154679ba0474244fe361
treed9950f0f63b8c5fdcf4e0f2782ae7fa1bc5d96f0
parentf46f6551436a5a7c8509a4cbade1a7fda39905b3
net/virtio: move device initialization in a function

Move all code related to device initialization in a new function
virtio_init_device().

This commit brings no functional change, it prepares the next commits
that will add the offload support. For that, it will be needed to
reinitialize the device from ethdev->configure(), using this new
function.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_ethdev.c