From: Asias He Date: Wed, 29 Jun 2011 08:47:30 +0000 (+0800) Subject: kvm tools: Reanme net_device to net_dev X-Git-Tag: next-20110824~3^2~162 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bdbbb8c38d947a1cbc64064b3be7c130adb835f3;p=karo-tx-linux.git kvm tools: Reanme net_device to net_dev 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 Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index 68967f204e71..7eebee0efc6a 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -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 },