netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [patch 1/3] softmac: return -EAGAIN from getscan while scanning
@ 2006-04-13 23:58 Jean Tourrilhes
  0 siblings, 0 replies; 21+ messages in thread
From: Jean Tourrilhes @ 2006-04-13 23:58 UTC (permalink / raw)
  To: Stephen Hemminger, netdev, Pete Zaitcev

Pete Zaitcev wrote :
> 
> Do you realize that "block" means "enterering the kernel and calling
> schedule()", which is exactly what is NOT happening in the patch?
> I would not mind if the tools "blocked in GIWSCAN", only until
> it returns success and not EGAIN.

	Do you realise that "block" means holding the netlink
mutex. Which means any networking ioctl and netlink operation is
blocked, which means ifconfig and iproute are blocked.
	The MadWifi driver take up to 15sec to perfom scanning.

> With EAGAIN returned, you have to a) block elsewhere and not in
> GIWSCAN (perhaps in sleep(2) or select(2)), or b) not block at all
> and loop.

	User-space authors are no dummy, they know that looping on
EAGAIN is bad, so most do a sleep (actually most user-space use libiw
which does a sleep).

> It is correct, no doubt. The discussion is about wether it is
> desirable.

	Yes, it is desirable, because we are pragmatic.

	Jean

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [patch 1/3] softmac: return -EAGAIN from getscan while scanning
@ 2006-04-14  0:01 Jean Tourrilhes
  2006-04-14 15:58 ` Herbert Xu
  0 siblings, 1 reply; 21+ messages in thread
From: Jean Tourrilhes @ 2006-04-14  0:01 UTC (permalink / raw)
  To: Stephen Hemminger, netdev

Stephen Hemminger wrote :
> 
> Sounds like you want a message interface like netlink, not ioctl's.

	We have the message interface (through a Wireless Events,
since WE-14). However, netlink is highly undesirable in embedded space
for bloat reason.

	Jean

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

end of thread, other threads:[~2006-04-15 21:31 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060411085805.949313000@sipsolutions.net>
2006-04-13  0:42 ` [patch 4] softmac: fix event sending Johannes Berg
     [not found] ` <20060411085841.252064000@sipsolutions.net>
2006-04-13  9:00   ` [patch 1/3] softmac: return -EAGAIN from getscan while scanning Pete Zaitcev
2006-04-13  9:06     ` Johannes Berg
2006-04-13  9:34       ` Johannes Berg
2006-04-13 12:14         ` Dan Williams
2006-04-13 16:13           ` Jean Tourrilhes
2006-04-15 19:24             ` Johannes Berg
2006-04-15 21:27               ` Dan Williams
2006-04-13 12:12     ` Dan Williams
2006-04-13 12:19       ` Johannes Berg
2006-04-13 16:00         ` Jouni Malinen
2006-04-13 22:28           ` Pete Zaitcev
2006-04-13 22:45             ` Jouni Malinen
2006-04-13 23:03               ` Stephen Hemminger
2006-04-13 23:35               ` Pete Zaitcev
2006-04-13 22:21       ` Pete Zaitcev
2006-04-13  9:41 ` [patch 5] softmac: report when scanning has finished Johannes Berg
2006-04-13 12:15   ` Dan Williams
2006-04-13 23:58 [patch 1/3] softmac: return -EAGAIN from getscan while scanning Jean Tourrilhes
  -- strict thread matches above, loose matches on Subject: below --
2006-04-14  0:01 Jean Tourrilhes
2006-04-14 15:58 ` Herbert Xu

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).