mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[RTNL]: Introduce the rtnl_kill_links helper.
This one is responsible for calling ->dellink on each net device found in net to help with vlan net_exit hook in the nearest future. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3a931a80cb
commit
669f87baab
2 changed files with 22 additions and 8 deletions
|
@ -74,6 +74,7 @@ struct rtnl_link_ops {
|
|||
|
||||
extern int __rtnl_link_register(struct rtnl_link_ops *ops);
|
||||
extern void __rtnl_link_unregister(struct rtnl_link_ops *ops);
|
||||
extern void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops);
|
||||
|
||||
extern int rtnl_link_register(struct rtnl_link_ops *ops);
|
||||
extern void rtnl_link_unregister(struct rtnl_link_ops *ops);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue