All of lore.kernel.org
 help / color / mirror / Atom feed
* netpoll_setup questions
@ 2004-10-27 15:50 Jeff Moyer
  2004-10-27 17:30 ` Matt Mackall
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Moyer @ 2004-10-27 15:50 UTC (permalink / raw)
  To: mpm; +Cc: linux-kernel

Hi, Matt,

The section of code in the body of this if statement:

	if (!(ndev->flags & IFF_UP)) {

is a bit broken.  First, upon discussion with jgarzik, it seems we should
not check for IFF_UP, but instead do netif_running.  However, I'm wondering
why we try to force the interface up in the first place?  Just because we
force it up doesn't mean that it will get an IP address.  And, in the case
where it doesn't, you will get an oops further on when dereferencing the
ifa_list.  So, why does this section of code exist at all?  If it has a
good purpose, can we replace it with a call to ndev->open?

Thanks!

Jeff

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-28 16:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 15:50 netpoll_setup questions 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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.