Home
last modified time | relevance | path

Searched refs:link_net (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.15/net/core/
Drtnetlink.c1571 struct net *link_net = dev->rtnl_link_ops->get_link_net(dev); in rtnl_fill_link_netnsid() local
1573 if (!net_eq(dev_net(dev), link_net)) { in rtnl_fill_link_netnsid()
1574 int id = peernet2id_alloc(src_net, link_net, gfp); in rtnl_fill_link_netnsid()
3262 struct net *dest_net, *link_net; in __rtnl_newlink() local
3435 link_net = get_net_ns_by_id(dest_net, id); in __rtnl_newlink()
3436 if (!link_net) { in __rtnl_newlink()
3442 if (!netlink_ns_capable(skb, link_net->user_ns, CAP_NET_ADMIN)) in __rtnl_newlink()
3445 link_net = NULL; in __rtnl_newlink()
3448 dev = rtnl_create_link(link_net ? : dest_net, ifname, in __rtnl_newlink()
3458 err = ops->newlink(link_net ? : net, dev, tb, data, extack); in __rtnl_newlink()
[all …]