Home
last modified time | relevance | path

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

/net/tipc/
Dname_distr.c98 struct name_table *nt = tipc_name_table(net); in tipc_named_publish() local
103 list_add_tail_rcu(&p->binding_node, &nt->node_scope); in tipc_named_publish()
106 write_lock_bh(&nt->cluster_scope_lock); in tipc_named_publish()
107 list_add_tail(&p->binding_node, &nt->cluster_scope); in tipc_named_publish()
108 write_unlock_bh(&nt->cluster_scope_lock); in tipc_named_publish()
114 msg_set_named_seqno(buf_msg(skb), nt->snd_nxt++); in tipc_named_publish()
128 struct name_table *nt = tipc_name_table(net); in tipc_named_withdraw() local
132 write_lock_bh(&nt->cluster_scope_lock); in tipc_named_withdraw()
134 write_unlock_bh(&nt->cluster_scope_lock); in tipc_named_withdraw()
143 msg_set_named_seqno(buf_msg(skb), nt->snd_nxt++); in tipc_named_withdraw()
[all …]
Dname_table.c260 struct name_table *nt = tipc_name_table(net); in tipc_service_create() local
275 hd = &nt->services[hash(ua->sr.type)]; in tipc_service_create()
464 struct name_table *nt = tipc_name_table(net); in tipc_service_find() local
468 service_head = &nt->services[hash(ua->sr.type)]; in tipc_service_find()
763 struct name_table *nt = tipc_name_table(net); in tipc_nametbl_publish() local
771 if (nt->local_publ_count >= TIPC_MAX_PUBL) { in tipc_nametbl_publish()
778 nt->local_publ_count++; in tipc_nametbl_publish()
781 rc_dests = nt->rc_dests; in tipc_nametbl_publish()
801 struct name_table *nt = tipc_name_table(net); in tipc_nametbl_withdraw() local
811 nt->local_publ_count--; in tipc_nametbl_withdraw()
[all …]
Dnetlink_compat.c903 struct nlattr *nt[TIPC_NLA_NAME_TABLE_MAX + 1]; in tipc_nl_compat_name_table_dump() local
913 err = nla_parse_nested_deprecated(nt, TIPC_NLA_NAME_TABLE_MAX, in tipc_nl_compat_name_table_dump()
919 if (!nt[TIPC_NLA_NAME_TABLE_PUBL]) in tipc_nl_compat_name_table_dump()
923 nt[TIPC_NLA_NAME_TABLE_PUBL], NULL, in tipc_nl_compat_name_table_dump()
/net/ipv6/
Dip6_gre.c349 struct ip6_tnl *t, *nt; in ip6gre_tunnel_locate() local
374 nt = netdev_priv(dev); in ip6gre_tunnel_locate()
375 nt->parms = *parms; in ip6gre_tunnel_locate()
378 nt->dev = dev; in ip6gre_tunnel_locate()
379 nt->net = dev_net(dev); in ip6gre_tunnel_locate()
384 ip6gre_tnl_link_config(nt, 1); in ip6gre_tunnel_locate()
387 if (!(nt->parms.o_flags & TUNNEL_SEQ)) in ip6gre_tunnel_locate()
390 ip6gre_tunnel_link(ign, nt); in ip6gre_tunnel_locate()
391 return nt; in ip6gre_tunnel_locate()
1458 struct ip6_tnl *nt = netdev_priv(dev); in ip6gre_tnl_init_features() local
[all …]
Dsit.c233 struct ip_tunnel *t, *nt; in ipip6_tunnel_locate() local
268 nt = netdev_priv(dev); in ipip6_tunnel_locate()
270 nt->parms = *parms; in ipip6_tunnel_locate()
277 return nt; in ipip6_tunnel_locate()
1623 struct ip_tunnel *nt; in ipip6_newlink() local
1630 nt = netdev_priv(dev); in ipip6_newlink()
1633 err = ip_tunnel_encap_setup(nt, &ipencap); in ipip6_newlink()
1638 ipip6_netlink_parms(data, &nt->parms, &nt->fwmark); in ipip6_newlink()
1640 if (ipip6_tunnel_locate(net, &nt->parms, 0)) in ipip6_newlink()
1657 err = ipip6_tunnel_update_6rd(nt, &ip6rd); in ipip6_newlink()
Dip6_vti.c1014 struct ip6_tnl *nt; in vti6_newlink() local
1016 nt = netdev_priv(dev); in vti6_newlink()
1017 vti6_netlink_parms(data, &nt->parms); in vti6_newlink()
1019 nt->parms.proto = IPPROTO_IPV6; in vti6_newlink()
1021 if (vti6_locate(net, &nt->parms, 0)) in vti6_newlink()
Dip6_tunnel.c2027 struct ip6_tnl *nt, *t; in ip6_tnl_newlink() local
2030 nt = netdev_priv(dev); in ip6_tnl_newlink()
2033 err = ip6_tnl_encap_setup(nt, &ipencap); in ip6_tnl_newlink()
2038 ip6_tnl_netlink_parms(data, &nt->parms); in ip6_tnl_newlink()
2040 if (nt->parms.collect_md) { in ip6_tnl_newlink()
2044 t = ip6_tnl_locate(net, &nt->parms, 0); in ip6_tnl_newlink()
/net/ipv4/
Dip_tunnel.c332 struct ip_tunnel *nt; in ip_tunnel_create() local
347 nt = netdev_priv(dev); in ip_tunnel_create()
348 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create()
354 ip_tunnel_add(itn, nt); in ip_tunnel_create()
355 return nt; in ip_tunnel_create()
1131 struct ip_tunnel *nt; in ip_tunnel_newlink() local
1137 nt = netdev_priv(dev); in ip_tunnel_newlink()
1138 itn = net_generic(net, nt->ip_tnl_net_id); in ip_tunnel_newlink()
1140 if (nt->collect_md) { in ip_tunnel_newlink()
1148 nt->net = net; in ip_tunnel_newlink()
[all …]
/net/netlink/
Daf_netlink.c190 int netlink_add_tap(struct netlink_tap *nt) in netlink_add_tap() argument
192 struct net *net = dev_net(nt->dev); in netlink_add_tap()
195 if (unlikely(nt->dev->type != ARPHRD_NETLINK)) in netlink_add_tap()
199 list_add_rcu(&nt->list, &nn->netlink_tap_all); in netlink_add_tap()
202 __module_get(nt->module); in netlink_add_tap()
208 static int __netlink_remove_tap(struct netlink_tap *nt) in __netlink_remove_tap() argument
210 struct net *net = dev_net(nt->dev); in __netlink_remove_tap()
218 if (nt == tmp) { in __netlink_remove_tap()
219 list_del_rcu(&nt->list); in __netlink_remove_tap()
225 pr_warn("__netlink_remove_tap: %p not found\n", nt); in __netlink_remove_tap()
[all …]
/net/switchdev/
Dswitchdev.c101 static int switchdev_port_attr_notify(enum switchdev_notifier_type nt, in switchdev_port_attr_notify() argument
114 rc = call_switchdev_blocking_notifiers(nt, dev, in switchdev_port_attr_notify()
193 static int switchdev_port_obj_notify(enum switchdev_notifier_type nt, in switchdev_port_obj_notify() argument
206 rc = call_switchdev_blocking_notifiers(nt, dev, &obj_info.info, extack); in switchdev_port_obj_notify()
/net/netfilter/
Dnf_tables_api.c1443 struct nft_table *table, *nt; in nft_flush() local
1446 list_for_each_entry_safe(table, nt, &nft_net->tables, list) { in nft_flush()
10580 struct nft_table *table, *nt; in __nft_release_tables() local
10582 list_for_each_entry_safe(table, nt, &nft_net->tables, list) { in __nft_release_tables()