Skip to contentSkip to conversation

virtio_net: remove double ether_setup

PATCH RESEND In review Christian Borntraeger 3 participants 3 messages Dec 11, 2007 – Dec 12, 2007 1 message not in the archive

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 virtio_net: remove double ether_setup

Hello Rusty,

this is a small fix for virtio_net.
virtnet_probe already calls alloc_etherdev, which calls ether_setup. There is no need to do that again.

---
 drivers/net/virtio_net.c |    1 -
 1 file changed, 1 deletion(-)
drivers/net/virtio_net.c +0 -1
Index: kvm/drivers/net/virtio_net.c
===================================================================
@@ -329,11 +329,10 @@ static int virtnet_probe(struct virtio_d
 	dev = alloc_etherdev(sizeof(struct virtnet_info));
 	if (!dev)
 		return -ENOMEM;
 
 	/* Set up network device as normal. */
-	ether_setup(dev);
 	dev->open = virtnet_open;
 	dev->stop = virtnet_close;
 	dev->hard_start_xmit = start_xmit;
 	dev->features = NETIF_F_HIGHDMA;
 	SET_NETDEV_DEV(dev, &vdev->dev);

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

A message that is not in the archive (sent off-list or not yet received): 200712111238.53960.borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org

Acked-by
#2 lore raw
Quoted 7 lines · On Tuesday 11 December 2007 22:38:53 Christian Borntraeger wrote:

Hello Rusty,

this is a small fix for virtio_net.
virtnet_probe already calls alloc_etherdev, which calls ether_setup. There is no need to do that again.

Can you send straight to akpm or davem? I'm supposed to be on vacation at the moment (and not doing a very good job :)

Thanks,
Rusty.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

#3 lore raw

PATCH 1/1 virtio_net: remove double ether_setup

Am Mittwoch, 12. Dezember 2007 schrieb Rusty Russell:

Quoted 1 line

Can you send straight to akpm or davem? I'm supposed to be on vacation at

this is a small fix for virtio_net.
virtnet_probe already calls alloc_etherdev, which calls ether_setup. There is no need to do that again.

---
 drivers/net/virtio_net.c |    1 -
 1 file changed, 1 deletion(-)
drivers/net/virtio_net.c +0 -1
Index: kvm/drivers/net/virtio_net.c
===================================================================
@@ -329,11 +329,10 @@ static int virtnet_probe(struct virtio_d
 	dev = alloc_etherdev(sizeof(struct virtnet_info));
 	if (!dev)
 		return -ENOMEM;
 
 	/* Set up network device as normal. */
-	ether_setup(dev);
 	dev->open = virtnet_open;
 	dev->stop = virtnet_close;
 	dev->hard_start_xmit = start_xmit;
 	dev->features = NETIF_F_HIGHDMA;
 	SET_NETDEV_DEV(dev, &vdev->dev);