]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio-net: Use virtio_config_val() for retrieving config
authorSasha Levin <levinsasha928@gmail.com>
Sun, 14 Aug 2011 14:52:33 +0000 (17:52 +0300)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 00:15:23 +0000 (11:15 +1100)
commite3e03c4768618e1d40bf4144ff6489099c233625
tree3fe9f1c9d215f628a3aa7ea1c903b6cc08e82e6b
parent7bed0776850f3232ec31def0d538e446271841ed
virtio-net: Use virtio_config_val() for retrieving config

This patch modifies virtio-net to use virtio_config_val() instead
of a 'if(virtio_has_feature()) vdev->config->get()' construct to retrieve
optional values from the config space.

Cc: Amit Shah <amit.shah@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c