* [PATCH resend] virtio_net: remove double ether_setup
@ 2007-12-11 11:38 Christian Borntraeger
[not found] ` <200712111238.53960.borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Christian Borntraeger @ 2007-12-11 11:38 UTC (permalink / raw)
To: Rusty Russell, virtualization-qjLDD68F18O7TbgM5vRIOg
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
netdev-u79uwXL29TY76Z2rM5mHXA
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.
Signed-off-by: Christian Borntraeger <borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
---
drivers/net/virtio_net.c | 1 -
1 file changed, 1 deletion(-)
Index: kvm/drivers/net/virtio_net.c
===================================================================
--- kvm.orig/drivers/net/virtio_net.c
+++ 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
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <200712111238.53960.borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH resend] virtio_net: remove double ether_setup [not found] ` <200712111238.53960.borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> @ 2007-12-12 1:41 ` Rusty Russell 2007-12-12 7:34 ` [PATCH] " Christian Borntraeger 0 siblings, 1 reply; 3+ messages in thread From: Rusty Russell @ 2007-12-12 1:41 UTC (permalink / raw) To: Christian Borntraeger Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, virtualization-qjLDD68F18O7TbgM5vRIOg, netdev-u79uwXL29TY76Z2rM5mHXA 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. > > Signed-off-by: Christian Borntraeger <borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> Acked-by: Rusty Russell <rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org> 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] virtio_net: remove double ether_setup 2007-12-12 1:41 ` Rusty Russell @ 2007-12-12 7:34 ` Christian Borntraeger 0 siblings, 0 replies; 3+ messages in thread From: Christian Borntraeger @ 2007-12-12 7:34 UTC (permalink / raw) To: Andrew Morton; +Cc: Rusty Russell, virtualization, kvm-devel, netdev Am Mittwoch, 12. Dezember 2007 schrieb Rusty Russell: > 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. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-) Index: kvm/drivers/net/virtio_net.c =================================================================== --- kvm.orig/drivers/net/virtio_net.c +++ 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); ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-12 7:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 11:38 [PATCH resend] virtio_net: remove double ether_setup Christian Borntraeger
[not found] ` <200712111238.53960.borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2007-12-12 1:41 ` Rusty Russell
2007-12-12 7:34 ` [PATCH] " Christian Borntraeger
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).