Lines Matching refs:rtnl_link_ops
350 static const struct rtnl_link_ops *rtnl_link_ops_get(const char *kind) in rtnl_link_ops_get()
352 const struct rtnl_link_ops *ops; in rtnl_link_ops_get()
371 int __rtnl_link_register(struct rtnl_link_ops *ops) in __rtnl_link_register()
395 int rtnl_link_register(struct rtnl_link_ops *ops) in rtnl_link_register()
411 static void __rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops) in __rtnl_kill_links()
417 if (dev->rtnl_link_ops == ops) in __rtnl_kill_links()
431 void __rtnl_link_unregister(struct rtnl_link_ops *ops) in __rtnl_link_unregister()
477 void rtnl_link_unregister(struct rtnl_link_ops *ops) in rtnl_link_unregister()
491 const struct rtnl_link_ops *ops; in rtnl_link_get_slave_info_data_size()
500 ops = master_dev->rtnl_link_ops; in rtnl_link_get_slave_info_data_size()
514 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in rtnl_link_get_size()
609 if (master_dev && master_dev->rtnl_link_ops) in rtnl_have_link_slave_info()
619 const struct rtnl_link_ops *ops; in rtnl_link_slave_info_fill()
626 ops = master_dev->rtnl_link_ops; in rtnl_link_slave_info_fill()
650 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in rtnl_link_info_fill()
1523 if (dev->rtnl_link_ops && dev->rtnl_link_ops->get_link_net) { in rtnl_fill_link_netnsid()
1524 struct net *link_net = dev->rtnl_link_ops->get_link_net(dev); in rtnl_fill_link_netnsid()
1671 if (dev->rtnl_link_ops || rtnl_have_link_slave_info(dev)) { in rtnl_fill_ifinfo()
1795 static const struct rtnl_link_ops *linkinfo_to_kind_ops(const struct nlattr *nla) in linkinfo_to_kind_ops()
1797 const struct rtnl_link_ops *ops = NULL; in linkinfo_to_kind_ops()
1829 const struct rtnl_link_ops *kind_ops) in link_kind_filtered()
1831 if (kind_ops && dev->rtnl_link_ops != kind_ops) in link_kind_filtered()
1839 const struct rtnl_link_ops *kind_ops) in link_dump_filtered()
1876 const struct rtnl_link_ops *kind_ops = NULL; in rtnl_dump_ifinfo()
2700 const struct rtnl_link_ops *ops; in rtnl_group_dellink()
2703 ops = dev->rtnl_link_ops; in rtnl_group_dellink()
2714 const struct rtnl_link_ops *ops; in rtnl_group_dellink()
2716 ops = dev->rtnl_link_ops; in rtnl_group_dellink()
2727 const struct rtnl_link_ops *ops; in rtnl_delete_link()
2730 ops = dev->rtnl_link_ops; in rtnl_delete_link()
2822 const struct rtnl_link_ops *ops, struct nlattr *tb[]) in rtnl_create_link()
2850 dev->rtnl_link_ops = ops; in rtnl_create_link()
2904 const struct rtnl_link_ops *ops; in rtnl_newlink()
2905 const struct rtnl_link_ops *m_ops = NULL; in rtnl_newlink()
2945 m_ops = master_dev->rtnl_link_ops; in rtnl_newlink()
3021 if (!ops || ops != dev->rtnl_link_ops || in rtnl_newlink()
4350 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in rtnl_fill_statsinfo()
4369 const struct rtnl_link_ops *ops = NULL; in rtnl_fill_statsinfo()
4374 ops = master->rtnl_link_ops; in rtnl_fill_statsinfo()
4469 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in if_nlmsg_stats_size()
4482 const struct rtnl_link_ops *ops = NULL; in if_nlmsg_stats_size()
4488 ops = master->rtnl_link_ops; in if_nlmsg_stats_size()