[Devel] Re: [PATCH 6/14][RTNL]: Introduce the rtnl_kill_links call.

2008-04-11 Thread Patrick McHardy
Pavel Emelyanov wrote: >>> for_each_net(net) { >>> -restart: >>> - for_each_netdev_safe(net, dev, n) { >>> - if (dev->rtnl_link_ops == ops) { >>> - ops->dellink(dev); >>> - goto restart; >>> - } >>

[Devel] Re: [PATCH 6/14][RTNL]: Introduce the rtnl_kill_links call.

2008-04-11 Thread Pavel Emelyanov
>> diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c >> index da99ac0..bc39e41 100644 >> --- a/net/core/rtnetlink.c >> +++ b/net/core/rtnetlink.c >> @@ -269,6 +269,26 @@ int rtnl_link_register(struct rtnl_link_ops *ops) >> >> EXPORT_SYMBOL_GPL(rtnl_link_register); >> >> +static void __rtnl_

[Devel] Re: [PATCH 6/14][RTNL]: Introduce the rtnl_kill_links call.

2008-04-10 Thread Daniel Hokka Zakrisson
Pavel Emelyanov wrote: > ... which will kill all the devices in the given net with > the given rtnl_link_ops. Will be used in VLAN patches later. > > Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> > > --- > include/net/rtnetlink.h |1 + > net/core/rtnetlink.c| 29