Lines Matching defs:link

177 	struct rtnl_link *link, *old;
198 link = kmemdup(old, sizeof(*old), GFP_KERNEL);
199 if (!link)
202 link = kzalloc(sizeof(*link), GFP_KERNEL);
203 if (!link)
207 WARN_ON(link->owner && link->owner != owner);
208 link->owner = owner;
210 WARN_ON(doit && link->doit && link->doit != doit);
212 link->doit = doit;
213 WARN_ON(dumpit && link->dumpit && link->dumpit != dumpit);
215 link->dumpit = dumpit;
217 link->flags |= flags;
220 rcu_assign_pointer(tab[msgindex], link);
289 struct rtnl_link **tab, *link;
302 link = tab[msgindex];
306 kfree_rcu(link, rcu);
321 struct rtnl_link **tab, *link;
334 link = tab[msgindex];
335 if (!link)
339 kfree_rcu(link, rcu);
1256 /* The default value for VF link state is "auto"
2028 NL_SET_ERR_MSG(extack, "Invalid header for link dump");
2035 NL_SET_ERR_MSG(extack, "Invalid values in header for link dump request");
2039 NL_SET_ERR_MSG(extack, "Filter by device index not supported for link dumps");
2116 NL_SET_ERR_MSG(extack, "Unsupported attribute in link dump request");
2189 /* Examine the link attributes and figure out which
2203 * examining the link attributes in the following order:
2962 net_warn_ratelimited("A link change request failed with some changes committed already. Interface %s may have been left with an inconsistent configuration, please check.\n",
3430 request_module("rtnl-link-%s", kind);
3541 NL_SET_ERR_MSG(extack, "Invalid header for get link");
3552 NL_SET_ERR_MSG(extack, "Invalid values in header for get link request");
3572 NL_SET_ERR_MSG(extack, "Unsupported attribute in get link request");
3796 struct rtnl_link *link;
3809 link = tab[type];
3810 if (!link)
3813 dumpit = link->dumpit;
4746 NL_SET_ERR_MSG(extack, "Invalid header for bridge link dump");
4753 NL_SET_ERR_MSG(extack, "Invalid values in header for bridge link dump request");
4780 NL_SET_ERR_MSG(extack, "Unsupported attribute in bridge link dump request");
5512 struct rtnl_link *link;
5543 link = rtnl_get_link(family, type);
5544 if (!link || !link->dumpit) {
5546 link = rtnl_get_link(family, type);
5547 if (!link || !link->dumpit)
5550 owner = link->owner;
5551 dumpit = link->dumpit;
5579 link = rtnl_get_link(family, type);
5580 if (!link || !link->doit) {
5582 link = rtnl_get_link(PF_UNSPEC, type);
5583 if (!link || !link->doit)
5587 owner = link->owner;
5593 flags = link->flags;
5595 doit = link->doit;
5605 link = rtnl_get_link(family, type);
5606 if (link && link->doit)
5607 err = link->doit(skb, nlh, extack);