Netdev List
 help / color / mirror / Atom feed
* [0/6] Allow registration/change name notifications to fail
@ 2007-07-26  9:07 Herbert Xu
  2007-07-26  9:09 ` [PATCH 1/6] [NET]: Call uninit if necessary in register_netdevice Herbert Xu
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Herbert Xu @ 2007-07-26  9:07 UTC (permalink / raw)
  To: David S. Miller, netdev; +Cc: Patrick McHardy, Herbert Xu

Hi Dave:

This series of patches adds support to let netdev registration
and change name events to fail.  Failures of the former kind
prevents the device from registered while the latter attempts
to roll back the change (which unfortunately can also fail).

If the failure occurs while a netdev is being registered,
then the registration as a whole will fail.  If it occurs
when a protocol is being registered, then that protocol
will fail to register instead.

Having this allows us to flag allocations failures in a 
meaningful way rather than letting the next action that
requires what is allocated to flag the failure.

In particular, this allows the reporting of failures to
allocate the IPv4/IPv6 device objects.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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

end of thread, other threads:[~2007-07-31  0:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26  9:07 [0/6] Allow registration/change name notifications to fail Herbert Xu
2007-07-26  9:09 ` [PATCH 1/6] [NET]: Call uninit if necessary in register_netdevice Herbert Xu
2007-07-30 23:29   ` David Miller
2007-07-26  9:09 ` [PATCH 2/6] [NET]: Take dev_base_lock when moving device name hash list entry Herbert Xu
2007-07-30 23:36   ` David Miller
2007-07-26  9:09 ` [PATCH 3/6] [NET] loopback: Panic if registration fails Herbert Xu
2007-07-30 23:38   ` David Miller
2007-07-26  9:09 ` [PATCH 4/6] [NET]: Allow netdev REGISTER/CHANGENAME events to fail Herbert Xu
2007-07-31  0:03   ` David Miller
2007-07-26  9:09 ` [PATCH 5/6] [IPV4/IPV6]: Fail registration if inet device construction fails Herbert Xu
2007-07-31  0:05   ` David Miller
2007-07-26  9:09 ` [PATCH 6/6] [IPV6]: Remove circular dependency on if_inet6.h Herbert Xu
2007-07-31  0:06   ` David Miller
2007-07-26 10:37 ` [0/6] Allow registration/change name notifications to fail Stephen Hemminger
2007-07-26 11:03   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox