netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* net: rtnetlink: support specifying device flags on device creation
@ 2010-02-26 16:34 Patrick McHardy
  2010-02-26 16:34 ` net 01/04: rtnetlink: ignore NETDEV_PRE_UP notifier in rtnetlink_event() Patrick McHardy
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Patrick McHardy @ 2010-02-26 16:34 UTC (permalink / raw)
  To: netdev; +Cc: Patrick McHardy

The following patches add support to specify the device flags (like UP) when
creating a new device through rtnl_link. This requires to surpress netlink
notifications until the device is fully configured in order to not confuse
userspace when changing the flags fails and registration has to be undone.
Once the device is configured, a single NEWLINK message with the full state
is sent.

The individual patch changelogs describe the necessary changes in more detail.


 drivers/net/veth.c        |   15 +++--
 include/linux/netdevice.h |    9 ++-
 include/net/rtnetlink.h   |    2 +
 net/core/dev.c            |  171 +++++++++++++++++++++++++++++----------------
 net/core/rtnetlink.c      |   59 ++++++++++++----
 5 files changed, 176 insertions(+), 80 deletions(-)

Patrick McHardy (4):
      net: rtnetlink: ignore NETDEV_PRE_UP notifier in rtnetlink_event()
      net: rtnetlink: handle rtnl_link netlink notifications manually
      net: dev: support deferring device flag change notifications
      net: rtnetlink: support specifying device flags on device creation

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

end of thread, other threads:[~2010-03-01 15:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 16:34 net: rtnetlink: support specifying device flags on device creation Patrick McHardy
2010-02-26 16:34 ` net 01/04: rtnetlink: ignore NETDEV_PRE_UP notifier in rtnetlink_event() Patrick McHardy
2010-02-26 16:34 ` net 02/04: rtnetlink: handle rtnl_link netlink notifications manually Patrick McHardy
2010-02-26 16:34 ` net 03/04: dev: support deferring device flag change notifications Patrick McHardy
2010-02-26 16:34 ` net 04/04: rtnetlink: support specifying device flags on device creation Patrick McHardy
2010-02-27 10:51 ` net: " David Miller
2010-03-01 15:24   ` Patrick McHardy

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