From: Jeff Moyer <jmoyer@redhat.com>
To: Matt Mackall <mpm@selenic.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: netpoll_setup questions
Date: Thu, 28 Oct 2004 11:58:48 -0400 [thread overview]
Message-ID: <16769.5944.484586.755596@segfault.boston.redhat.com> (raw)
In-Reply-To: <20041027202942.GR31237@waste.org>
==> Regarding Re: netpoll_setup questions; Matt Mackall <mpm@selenic.com> adds:
mpm> On Wed, Oct 27, 2004 at 03:44:33PM -0400, Jeff Moyer wrote: Again,
mpm> does the oops actually happen? I'd expect I'd have seen it by now if
mpm> this were really a problem, but I don't mind adding another check.
>> I'm sorry, I should have said this before. Yes, it occurs. You simply
>> need to have an interface in the down state, plugged into a network that
>> will not auto-assign an address. Then, modprobe netconsole, and don't
>> specify what the local IP address is. Believe it or not, I have a bug
>> filed on this. ;)
mpm> Ok, fair enough. Resend your patch when you've tested it and I'll
mpm> forward it on to Andrew.
Patch attached, unchanged. This did indeed fix the problem.
-Jeff
Signed-off by: Jeff Moyer <jmoyer@redhat.com>
--- linux-2.6.9/net/core/netpoll.c~ 2004-10-21 17:49:10.000000000 -0400
+++ linux-2.6.9/net/core/netpoll.c 2004-10-27 14:53:57.492149880 -0400
@@ -571,7 +571,7 @@ int netpoll_setup(struct netpoll *np)
goto release;
}
- if (!(ndev->flags & IFF_UP)) {
+ if (!netif_running(ndev)) {
unsigned short oflags;
unsigned long atmost, atleast;
@@ -617,7 +617,7 @@ int netpoll_setup(struct netpoll *np)
rcu_read_lock();
in_dev = __in_dev_get(ndev);
- if (!in_dev) {
+ if (!in_dev || !in_dev->ifa_list) {
rcu_read_unlock();
printk(KERN_ERR "%s: no IP address for %s, aborting\n",
np->name, np->dev_name);
prev parent reply other threads:[~2004-10-28 16:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 15:50 Jeff Moyer
2004-10-27 17:30 ` Matt Mackall
2004-10-27 18:58 ` Jeff Moyer
2004-10-27 19:41 ` Matt Mackall
2004-10-27 19:44 ` Jeff Moyer
2004-10-27 20:29 ` Matt Mackall
2004-10-28 15:58 ` Jeff Moyer [this message]
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=16769.5944.484586.755596@segfault.boston.redhat.com \
--to=jmoyer@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.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
all inboxes | Powered by JetHome®