Home
last modified time | relevance | path

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

/linux-6.6.21/net/core/
Drtnetlink.c1632 struct net *link_net = dev->rtnl_link_ops->get_link_net(dev); in rtnl_fill_link_netnsid() local
1634 if (!net_eq(dev_net(dev), link_net)) { in rtnl_fill_link_netnsid()
1635 int id = peernet2id_alloc(src_net, link_net, gfp); in rtnl_fill_link_netnsid()
3440 struct net *dest_net, *link_net; in rtnl_newlink_create() local
3462 link_net = get_net_ns_by_id(dest_net, id); in rtnl_newlink_create()
3463 if (!link_net) { in rtnl_newlink_create()
3469 if (!netlink_ns_capable(skb, link_net->user_ns, CAP_NET_ADMIN)) in rtnl_newlink_create()
3472 link_net = NULL; in rtnl_newlink_create()
3475 dev = rtnl_create_link(link_net ? : dest_net, ifname, in rtnl_newlink_create()
3485 err = ops->newlink(link_net ? : net, dev, tb, data, extack); in rtnl_newlink_create()
[all …]