Lines Matching defs:link
216 struct rtnl_link *link, *old;
237 link = kmemdup(old, sizeof(*old), GFP_KERNEL);
238 if (!link)
241 link = kzalloc(sizeof(*link), GFP_KERNEL);
242 if (!link)
246 WARN_ON(link->owner && link->owner != owner);
247 link->owner = owner;
249 WARN_ON(doit && link->doit && link->doit != doit);
251 link->doit = doit;
252 WARN_ON(dumpit && link->dumpit && link->dumpit != dumpit);
254 link->dumpit = dumpit;
258 link->flags |= flags;
261 rcu_assign_pointer(tab[msgindex], link);
331 struct rtnl_link *link;
344 link = rtnl_dereference(tab[msgindex]);
348 kfree_rcu(link, rcu);
364 struct rtnl_link *link;
377 link = rtnl_dereference(tab[msgindex]);
378 if (!link)
382 kfree_rcu(link, rcu);
1304 /* The default value for VF link state is "auto"
2134 NL_SET_ERR_MSG(extack, "Invalid header for link dump");
2141 NL_SET_ERR_MSG(extack, "Invalid values in header for link dump request");
2145 NL_SET_ERR_MSG(extack, "Filter by device index not supported for link dumps");
2222 NL_SET_ERR_MSG(extack, "Unsupported attribute in link dump request");
2295 /* Examine the link attributes and figure out which
2309 * examining the link attributes in the following order:
3118 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",
3694 request_module("rtnl-link-%s", kind);
3732 NL_SET_ERR_MSG(extack, "Invalid header for get link");
3743 NL_SET_ERR_MSG(extack, "Invalid values in header for get link request");
3763 NL_SET_ERR_MSG(extack, "Unsupported attribute in get link request");
3985 struct rtnl_link *link;
3998 link = rcu_dereference_rtnl(tab[type]);
3999 if (!link)
4002 dumpit = link->dumpit;
4978 NL_SET_ERR_MSG(extack, "Invalid header for bridge link dump");
4985 NL_SET_ERR_MSG(extack, "Invalid values in header for bridge link dump request");
5012 NL_SET_ERR_MSG(extack, "Unsupported attribute in bridge link dump request");
6220 NL_SET_ERR_MSG(extack, "IPv6 entry group address is link-local all nodes");
6339 struct rtnl_link *link;
6370 link = rtnl_get_link(family, type);
6371 if (!link || !link->dumpit) {
6373 link = rtnl_get_link(family, type);
6374 if (!link || !link->dumpit)
6377 owner = link->owner;
6378 dumpit = link->dumpit;
6406 link = rtnl_get_link(family, type);
6407 if (!link || !link->doit) {
6409 link = rtnl_get_link(PF_UNSPEC, type);
6410 if (!link || !link->doit)
6414 owner = link->owner;
6420 flags = link->flags;
6429 doit = link->doit;
6439 link = rtnl_get_link(family, type);
6440 if (link && link->doit)
6441 err = link->doit(skb, nlh, extack);