]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Reanme net_device to net_dev
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:30 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:45 +0000 (10:42 +0300)
This patch makes virtio net device's name convention consistent with others in
virtio/*.c.  struct {net_dev, blk_dev, con_dev, rng_dev, p9_dev}.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/virtio/net.c

index 68967f204e7132de063881d828d2c9bc2ec3c359..7eebee0efc6a50fa9b1b87a74d9b1b24c6ad1de4 100644 (file)
@@ -40,7 +40,7 @@ static struct pci_device_header pci_header = {
        .subsys_id                      = VIRTIO_ID_NET,
 };
 
-struct net_device {
+struct net_dev {
        pthread_mutex_t                 mutex;
 
        struct virt_queue               vqs[VIRTIO_NET_NUM_QUEUES];
@@ -68,8 +68,9 @@ struct net_device {
 
 };
 
-static struct net_device ndev = {
-       .mutex                          = PTHREAD_MUTEX_INITIALIZER,
+
+static struct net_dev ndev = {
+       .mutex  = PTHREAD_MUTEX_INITIALIZER,
 
        .config = {
                .mac                    = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 },