net/virtio: reinitialize device when configuring
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 13 Oct 2016 14:16:02 +0000 (16:16 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 18:30:33 +0000 (20:30 +0200)
commit60e6f4707ef2291238471bde8378c43cc95810f5
tree4a4404a2def50a2bc8a9326c5f35211680bed224
parent45e4acd476644872d69a8d2f469712912c174957
net/virtio: reinitialize device when configuring

Add the ability to reset the virtio device in the configure callback
if the features flag changed since previous reset. This will be possible
with the introduction of offload support in next commits.

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
drivers/net/virtio/virtio_pci.h