netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Horman <nhorman@tuxdriver.com>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>,
	netdev@vger.kernel.org, s.priebe@profihost.ag,
	"David S. Miller" <davem@davemloft.net>
Subject: Re: [Patch net-next] veth: add netpoll support
Date: Sun, 22 Jun 2014 08:13:16 -0400	[thread overview]
Message-ID: <20140622121315.GA7901@localhost.localdomain> (raw)
In-Reply-To: <53A49672.1060601@cogentembedded.com>

On Sat, Jun 21, 2014 at 12:15:46AM +0400, Sergei Shtylyov wrote:
> Hello.
> 
> On 06/21/2014 12:07 AM, Neil Horman wrote:
> 
> >>>It is trivial to add netpoll support to veth, since
> >>>it is not stacked device, we don't need to setup and cleanup
> >>>netpoll.
> 
> >>>Reported-by: Stefan Priebe <s.priebe@profihost.ag>
> >>>Cc: "David S. Miller" <davem@davemloft.net>
> >>>Cc: Neil Horman <nhorman@tuxdriver.com>
> >>>Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
> 
> >>>---
> >>>diff --git a/drivers/net/veth.c b/drivers/net/veth.c
> >>>index b4a10bc..03e781b 100644
> >>>--- a/drivers/net/veth.c
> >>>+++ b/drivers/net/veth.c
> >>>@@ -248,6 +248,13 @@ static void veth_dev_free(struct net_device *dev)
> >>>  	free_netdev(dev);
> >>>  }
> >>>
> >>>+#ifdef CONFIG_NET_POLL_CONTROLLER
> >>>+static void veth_poll_controller(struct net_device *dev)
> >>>+{
> >>>+	return;
> >>
> >>    Not needed.
> 
> >It is, a valid function poniter is how the stack determines if a given driver
> >supports netpoll. See the tun_poll_controller for another example
> >Neil
> 
>    I just said that *return* was not needed. :-)
> 
> >>
> >>>+}
> >>>+#endif	/* CONFIG_NET_POLL_CONTROLLER */
> >>>+
> >>>  static const struct net_device_ops veth_netdev_ops = {
> >>>  	.ndo_init            = veth_dev_init,
> >>>  	.ndo_open            = veth_open,
> 
> WBR, Sergei
> 
> 
My bad, thought you were referring to the function as a whole
Regards
Neil

  reply	other threads:[~2014-06-22 12:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20 19:17 [Patch net-next] veth: add netpoll support Cong Wang
2014-06-20 19:29 ` Neil Horman
2014-06-20 19:31 ` Sergei Shtylyov
2014-06-20 20:07   ` Neil Horman
2014-06-20 20:15     ` Sergei Shtylyov
2014-06-22 12:13       ` Neil Horman [this message]
2014-06-23 22:16         ` Cong Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140622121315.GA7901@localhost.localdomain \
    --to=nhorman@tuxdriver.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=s.priebe@profihost.ag \
    --cc=sergei.shtylyov@cogentembedded.com \
    --cc=xiyou.wangcong@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).