Lines Matching refs:ifname
1314 struct nlattr **tb, char *ifname, int modified) in do_setlink() argument
1326 err = dev_change_net_namespace(dev, net, ifname); in do_setlink()
1411 if (ifm->ifi_index > 0 && ifname[0]) { in do_setlink()
1412 err = dev_change_name(dev, ifname); in do_setlink()
1557 char ifname[IFNAMSIZ]; in rtnl_setlink() local
1564 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_setlink()
1566 ifname[0] = '\0'; in rtnl_setlink()
1573 dev = __dev_get_by_name(net, ifname); in rtnl_setlink()
1586 err = do_setlink(dev, ifm, tb, ifname, 0); in rtnl_setlink()
1597 char ifname[IFNAMSIZ]; in rtnl_dellink() local
1607 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_dellink()
1613 dev = __dev_get_by_name(net, ifname); in rtnl_dellink()
1651 char *ifname, const struct rtnl_link_ops *ops, struct nlattr *tb[]) in rtnl_create_link() argument
1665 dev = alloc_netdev_mq(ops->priv_size, ifname, ops->setup, num_queues); in rtnl_create_link()
1722 char ifname[IFNAMSIZ]; in rtnl_newlink() local
1735 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_newlink()
1737 ifname[0] = '\0'; in rtnl_newlink()
1743 if (ifname[0]) in rtnl_newlink()
1744 dev = __dev_get_by_name(net, ifname); in rtnl_newlink()
1808 return do_setlink(dev, ifm, tb, ifname, modified); in rtnl_newlink()
1838 if (!ifname[0]) in rtnl_newlink()
1839 snprintf(ifname, IFNAMSIZ, "%s%%d", ops->kind); in rtnl_newlink()
1845 dev = rtnl_create_link(net, dest_net, ifname, ops, tb); in rtnl_newlink()
1872 char ifname[IFNAMSIZ]; in rtnl_getlink() local
1884 nla_strlcpy(ifname, tb[IFLA_IFNAME], IFNAMSIZ); in rtnl_getlink()
1893 dev = __dev_get_by_name(net, ifname); in rtnl_getlink()