Lines Matching refs:rtnl_link_ops
390 static const struct rtnl_link_ops *rtnl_link_ops_get(const char *kind) in rtnl_link_ops_get()
392 const struct rtnl_link_ops *ops; in rtnl_link_ops_get()
411 int __rtnl_link_register(struct rtnl_link_ops *ops) in __rtnl_link_register()
435 int rtnl_link_register(struct rtnl_link_ops *ops) in rtnl_link_register()
451 static void __rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops) in __rtnl_kill_links()
457 if (dev->rtnl_link_ops == ops) in __rtnl_kill_links()
471 void __rtnl_link_unregister(struct rtnl_link_ops *ops) in __rtnl_link_unregister()
517 void rtnl_link_unregister(struct rtnl_link_ops *ops) in rtnl_link_unregister()
531 const struct rtnl_link_ops *ops; in rtnl_link_get_slave_info_data_size()
540 ops = master_dev->rtnl_link_ops; in rtnl_link_get_slave_info_data_size()
554 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in rtnl_link_get_size()
651 if (master_dev && master_dev->rtnl_link_ops) in rtnl_have_link_slave_info()
661 const struct rtnl_link_ops *ops; in rtnl_link_slave_info_fill()
668 ops = master_dev->rtnl_link_ops; in rtnl_link_slave_info_fill()
692 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in rtnl_link_info_fill()
1609 if (dev->rtnl_link_ops && dev->rtnl_link_ops->get_link_net) { in rtnl_fill_link_netnsid()
1610 struct net *link_net = dev->rtnl_link_ops->get_link_net(dev); in rtnl_fill_link_netnsid()
1831 if (dev->rtnl_link_ops || rtnl_have_link_slave_info(dev)) { in rtnl_fill_ifinfo()
1985 static const struct rtnl_link_ops *linkinfo_to_kind_ops(const struct nlattr *nla) in linkinfo_to_kind_ops()
1987 const struct rtnl_link_ops *ops = NULL; in linkinfo_to_kind_ops()
2025 const struct rtnl_link_ops *kind_ops) in link_kind_filtered()
2027 if (kind_ops && dev->rtnl_link_ops != kind_ops) in link_kind_filtered()
2035 const struct rtnl_link_ops *kind_ops) in link_dump_filtered()
2127 const struct rtnl_link_ops *kind_ops = NULL; in rtnl_dump_ifinfo()
3088 const struct rtnl_link_ops *ops; in rtnl_group_dellink()
3091 ops = dev->rtnl_link_ops; in rtnl_group_dellink()
3102 const struct rtnl_link_ops *ops; in rtnl_group_dellink()
3104 ops = dev->rtnl_link_ops; in rtnl_group_dellink()
3115 const struct rtnl_link_ops *ops; in rtnl_delete_link()
3118 ops = dev->rtnl_link_ops; in rtnl_delete_link()
3208 const struct rtnl_link_ops *ops, in rtnl_create_link()
3251 dev->rtnl_link_ops = ops; in rtnl_create_link()
3313 const struct rtnl_link_ops *ops, in rtnl_newlink_create()
3414 const struct rtnl_link_ops *m_ops; in __rtnl_newlink()
3417 const struct rtnl_link_ops *ops; in __rtnl_newlink()
3455 m_ops = master_dev->rtnl_link_ops; in __rtnl_newlink()
3526 if (!ops || ops != dev->rtnl_link_ops || in __rtnl_newlink()
5465 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in rtnl_fill_statsinfo()
5486 const struct rtnl_link_ops *ops = NULL; in rtnl_fill_statsinfo()
5491 ops = master->rtnl_link_ops; in rtnl_fill_statsinfo()
5599 const struct rtnl_link_ops *ops = dev->rtnl_link_ops; in if_nlmsg_stats_size()
5612 const struct rtnl_link_ops *ops = NULL; in if_nlmsg_stats_size()
5618 ops = master->rtnl_link_ops; in if_nlmsg_stats_size()