/net/bridge/ |
D | br_stp_bpdu.c | 89 buf[5] = bpdu->root.prio[0]; in br_send_config_bpdu() 90 buf[6] = bpdu->root.prio[1]; in br_send_config_bpdu() 91 buf[7] = bpdu->root.addr[0]; in br_send_config_bpdu() 92 buf[8] = bpdu->root.addr[1]; in br_send_config_bpdu() 93 buf[9] = bpdu->root.addr[2]; in br_send_config_bpdu() 94 buf[10] = bpdu->root.addr[3]; in br_send_config_bpdu() 95 buf[11] = bpdu->root.addr[4]; in br_send_config_bpdu() 96 buf[12] = bpdu->root.addr[5]; in br_send_config_bpdu() 194 bpdu.root.prio[0] = buf[2]; in br_stp_rcv() 195 bpdu.root.prio[1] = buf[3]; in br_stp_rcv() [all …]
|
D | br_stp.c | 181 bpdu.root = br->designated_root; in br_transmit_config() 188 struct net_bridge_port *root in br_transmit_config() local 190 bpdu.message_age = (jiffies - root->designated_age) in br_transmit_config() 210 p->designated_root = bpdu->root; in br_record_config_information() 292 t = memcmp(&bpdu->root, &p->designated_root, 8); in br_supersedes_port_info()
|
D | br_private_stp.h | 35 bridge_id root; member
|
/net/sched/ |
D | cls_cgroup.c | 32 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); in cls_cgroup_classify() 83 static void cls_cgroup_destroy_rcu(struct rcu_head *root) in cls_cgroup_destroy_rcu() argument 85 struct cls_cgroup_head *head = container_of(root, in cls_cgroup_destroy_rcu() 100 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_change() 145 rcu_assign_pointer(tp->root, new); in cls_cgroup_change() 156 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_destroy() 159 RCU_INIT_POINTER(tp->root, NULL); in cls_cgroup_destroy() 171 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_walk() 187 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_dump()
|
D | cls_basic.c | 44 struct basic_head *head = rcu_dereference_bh(tp->root); in basic_classify() 62 struct basic_head *head = rtnl_dereference(tp->root); in basic_get() 87 rcu_assign_pointer(tp->root, head); in basic_init() 102 struct basic_head *head = rtnl_dereference(tp->root); in basic_destroy() 110 RCU_INIT_POINTER(tp->root, NULL); in basic_destroy() 116 struct basic_head *head = rtnl_dereference(tp->root); in basic_delete() 173 struct basic_head *head = rtnl_dereference(tp->root); in basic_change() 239 struct basic_head *head = rtnl_dereference(tp->root); in basic_walk()
|
D | cls_fw.c | 62 struct fw_head *head = rcu_dereference_bh(tp->root); in fw_classify() 100 struct fw_head *head = rtnl_dereference(tp->root); in fw_get() 133 struct fw_head *head = rtnl_dereference(tp->root); in fw_destroy() 148 RCU_INIT_POINTER(tp->root, NULL); in fw_destroy() 154 struct fw_head *head = rtnl_dereference(tp->root); in fw_delete() 187 struct fw_head *head = rtnl_dereference(tp->root); in fw_change_attrs() 236 struct fw_head *head = rtnl_dereference(tp->root); in fw_change() 303 rcu_assign_pointer(tp->root, head); in fw_change() 331 struct fw_head *head = rtnl_dereference(tp->root); in fw_walk() 361 struct fw_head *head = rtnl_dereference(tp->root); in fw_dump()
|
D | cls_bpf.c | 55 struct cls_bpf_head *head = rcu_dereference_bh(tp->root); in cls_bpf_classify() 88 rcu_assign_pointer(tp->root, head); in cls_bpf_init() 112 struct cls_bpf_head *head = rtnl_dereference(tp->root); in cls_bpf_delete() 129 struct cls_bpf_head *head = rtnl_dereference(tp->root); in cls_bpf_destroy() 138 RCU_INIT_POINTER(tp->root, NULL); in cls_bpf_destroy() 144 struct cls_bpf_head *head = rtnl_dereference(tp->root); in cls_bpf_get() 245 struct cls_bpf_head *head = rtnl_dereference(tp->root); in cls_bpf_change() 344 struct cls_bpf_head *head = rtnl_dereference(tp->root); in cls_bpf_walk()
|
D | cls_tcindex.c | 84 struct tcindex_data *p = rcu_dereference_bh(tp->root); in tcindex_classify() 109 struct tcindex_data *p = rtnl_dereference(tp->root); in tcindex_get() 139 rcu_assign_pointer(tp->root, p); in tcindex_init() 146 struct tcindex_data *p = rtnl_dereference(tp->root); in tcindex_delete() 381 rcu_assign_pointer(tp->root, cp); in tcindex_set_parms() 420 struct tcindex_data *p = rtnl_dereference(tp->root); in tcindex_change() 441 struct tcindex_data *p = rtnl_dereference(tp->root); in tcindex_walk() 480 struct tcindex_data *p = rtnl_dereference(tp->root); in tcindex_destroy() 489 RCU_INIT_POINTER(tp->root, NULL); in tcindex_destroy() 497 struct tcindex_data *p = rtnl_dereference(tp->root); in tcindex_dump()
|
D | sch_fq.c | 175 struct rb_root *root, in fq_gc() argument 182 p = &root->rb_node; in fq_gc() 209 rb_erase(&f->fq_node, root); in fq_gc() 218 struct rb_root *root; in fq_classify() local 232 root = &q->fq_root[hash_32((u32)(long)sk, q->fq_trees_log)]; in fq_classify() 236 fq_gc(q, root, sk); in fq_classify() 238 p = &root->rb_node; in fq_classify() 276 rb_insert_color(&f->fq_node, root); in fq_classify() 503 struct rb_root *root; in fq_reset() local 516 root = &q->fq_root[idx]; in fq_reset() [all …]
|
D | sch_hfsc.c | 177 struct hfsc_class root; /* root class */ member 1050 parent = &q->root; in hfsc_change_class() 1121 if (cl != &q->root) in hfsc_destroy_class() 1131 if (cl->level > 0 || cl->filter_cnt > 0 || cl == &q->root) in hfsc_delete_class() 1167 head = &q->root; in hfsc_classify() 1168 tcf = rcu_dereference_bh(q->root.filter_list); in hfsc_classify() 1295 cl = &q->root; in hfsc_tcf_chain() 1422 if (q->root.cl_cfmin != 0) { in hfsc_schedule_watchdog() 1423 if (next_time == 0 || next_time > q->root.cl_cfmin) in hfsc_schedule_watchdog() 1424 next_time = q->root.cl_cfmin; in hfsc_schedule_watchdog() [all …]
|
D | cls_rsvp.h | 134 struct rsvp_head *head = rcu_dereference_bh(tp->root); in rsvp_classify() 227 struct rsvp_head *head = rtnl_dereference(tp->root); in rsvp_replace() 254 struct rsvp_head *head = rtnl_dereference(tp->root); in rsvp_get() 284 rcu_assign_pointer(tp->root, data); in rsvp_init() 300 struct rsvp_head *data = rtnl_dereference(tp->root); in rsvp_destroy() 306 RCU_INIT_POINTER(tp->root, NULL); in rsvp_destroy() 330 struct rsvp_head *head = rtnl_dereference(tp->root); in rsvp_delete() 370 struct rsvp_head *data = rtnl_dereference(tp->root); in gen_handle() 456 struct rsvp_head *data = rtnl_dereference(tp->root); in rsvp_change() 624 struct rsvp_head *head = rtnl_dereference(tp->root); in rsvp_walk()
|
D | cls_route.c | 131 struct route4_head *head = rcu_dereference_bh(tp->root); in route4_classify() 232 struct route4_head *head = rtnl_dereference(tp->root); in route4_get() 279 struct route4_head *head = rtnl_dereference(tp->root); in route4_destroy() 306 RCU_INIT_POINTER(tp->root, NULL); in route4_destroy() 312 struct route4_head *head = rtnl_dereference(tp->root); in route4_delete() 469 struct route4_head *head = rtnl_dereference(tp->root); in route4_change() 495 rcu_assign_pointer(tp->root, head); in route4_change() 562 struct route4_head *head = rtnl_dereference(tp->root); in route4_walk()
|
D | cls_flow.c | 282 struct flow_head *head = rcu_dereference_bh(tp->root); in flow_classify() 367 struct flow_head *head = rtnl_dereference(tp->root); in flow_change() 559 rcu_assign_pointer(tp->root, head); in flow_init() 565 struct flow_head *head = rtnl_dereference(tp->root); in flow_destroy() 572 RCU_INIT_POINTER(tp->root, NULL); in flow_destroy() 578 struct flow_head *head = rtnl_dereference(tp->root); in flow_get() 654 struct flow_head *head = rtnl_dereference(tp->root); in flow_walk()
|
D | sch_api.c | 259 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root() argument 263 if (!(root->flags & TCQ_F_BUILTIN) && in qdisc_match_from_root() 264 root->handle == handle) in qdisc_match_from_root() 265 return root; in qdisc_match_from_root() 267 list_for_each_entry(q, &root->list, list) { in qdisc_match_from_root() 277 struct Qdisc *root = qdisc_dev(q)->qdisc; in qdisc_list_add() local 279 WARN_ON_ONCE(root == &noop_qdisc); in qdisc_list_add() 280 list_add_tail(&q->list, &root->list); in qdisc_list_add() 1423 static int tc_dump_qdisc_root(struct Qdisc *root, struct sk_buff *skb, in tc_dump_qdisc_root() argument 1430 if (!root) in tc_dump_qdisc_root() [all …]
|
D | cls_u32.c | 112 struct tc_u_hnode *ht = rcu_dereference_bh(tp->root); in u32_classify() 292 ht = rtnl_dereference(tp->root); in u32_get() 355 rcu_assign_pointer(tp->root, root_ht); in u32_init() 473 struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); in u32_destroy() 506 struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); in u32_delete() 626 ht = rtnl_dereference(tp->root); in u32_replace_knode() 772 ht = rtnl_dereference(tp->root); in u32_change() 780 ht = rtnl_dereference(tp->root); in u32_change()
|
D | sch_htb.c | 269 static void htb_add_to_id_tree(struct rb_root *root, in htb_add_to_id_tree() argument 272 struct rb_node **p = &root->rb_node, *parent = NULL; in htb_add_to_id_tree() 285 rb_insert_color(&cl->node[prio], root); in htb_add_to_id_tree() 350 static void htb_safe_rb_erase(struct rb_node *rb, struct rb_root *root) in htb_safe_rb_erase() argument 355 rb_erase(rb, root); in htb_safe_rb_erase() 760 struct rb_node *root; in htb_lookup_leaf() member 766 sp->root = hprio->row.rb_node; in htb_lookup_leaf() 776 htb_id_find_next_upper(prio, sp->root, *sp->pid); in htb_lookup_leaf() 782 *sp->pptr = sp->root; in htb_lookup_leaf() 801 (++sp)->root = clp->feed.rb_node; in htb_lookup_leaf()
|
/net/netfilter/ |
D | nft_rbtree.c | 24 struct rb_root root; member 40 const struct rb_node *parent = priv->root.rb_node; in nft_rbtree_lookup() 94 p = &priv->root.rb_node; in __nft_rbtree_insert() 107 rb_insert_color(&new->node, &priv->root); in __nft_rbtree_insert() 149 rb_erase(&rbe->node, &priv->root); in nft_rbtree_remove() 157 const struct rb_node *parent = priv->root.rb_node; in nft_rbtree_get() 194 for (node = rb_first(&priv->root); node != NULL; node = rb_next(node)) { in nft_rbtree_walk() 227 priv->root = RB_ROOT; in nft_rbtree_init() 237 while ((node = priv->root.rb_node) != NULL) { in nft_rbtree_destroy() 238 rb_erase(node, &priv->root); in nft_rbtree_destroy()
|
D | xt_connlimit.c | 187 static void tree_nodes_free(struct rb_root *root, in tree_nodes_free() argument 195 rb_erase(&rbconn->node, root); in tree_nodes_free() 201 count_tree(struct net *net, struct rb_root *root, in count_tree() argument 216 rbnode = &(root->rb_node); in count_tree() 234 tree_nodes_free(root, gc_nodes, gc_count); in count_tree() 255 tree_nodes_free(root, gc_nodes, gc_count); in count_tree() 284 rb_insert_color(&rbconn->node, root); in count_tree() 295 struct rb_root *root; in count_them() local 301 root = &data->climit_root6[hash]; in count_them() 304 root = &data->climit_root4[hash]; in count_them() [all …]
|
D | xt_qtaguid.c | 176 static struct tag_node *tag_node_tree_search(struct rb_root *root, tag_t tag) in tag_node_tree_search() argument 178 struct rb_node *node = root->rb_node; in tag_node_tree_search() 199 static void tag_node_tree_insert(struct tag_node *data, struct rb_root *root) in tag_node_tree_insert() argument 201 struct rb_node **new = &(root->rb_node), *parent = NULL; in tag_node_tree_insert() 223 rb_insert_color(&data->node, root); in tag_node_tree_insert() 226 static void tag_stat_tree_insert(struct tag_stat *data, struct rb_root *root) in tag_stat_tree_insert() argument 228 tag_node_tree_insert(&data->tn, root); in tag_stat_tree_insert() 231 static struct tag_stat *tag_stat_tree_search(struct rb_root *root, tag_t tag) in tag_stat_tree_search() argument 233 struct tag_node *node = tag_node_tree_search(root, tag); in tag_stat_tree_search() 240 struct rb_root *root) in tag_counter_set_tree_insert() argument [all …]
|
/net/ipv6/ |
D | ip6_fib.c | 321 w->root = &table->tb6_root; in fib6_dump_table() 332 cb->args[5] = w->root->fn_sernum; in fib6_dump_table() 335 if (cb->args[5] != w->root->fn_sernum) { in fib6_dump_table() 337 cb->args[5] = w->root->fn_sernum; in fib6_dump_table() 339 w->node = w->root; in fib6_dump_table() 427 static struct fib6_node *fib6_add_1(struct fib6_node *root, in fib6_add_1() argument 442 fn = root; in fib6_add_1() 871 int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info, in fib6_add() argument 889 fn = fib6_add_1(root, &rt->rt6i_dst.addr, rt->rt6i_dst.plen, in fib6_add() 1022 static struct fib6_node *fib6_lookup_1(struct fib6_node *root, in fib6_lookup_1() argument [all …]
|
/net/ipv4/ |
D | inetpeer.c | 73 bp->root = peer_avl_empty_rcu; in inet_peer_base_init() 188 *stackptr++ = &_base->root; \ 189 for (u = rcu_deref_locked(_base->root, _base); \ 214 struct inet_peer *u = rcu_dereference(base->root); in lookup_rcu() 545 struct inet_peer *root; in inetpeer_invalidate_tree() local 549 root = rcu_deref_locked(base->root, base); in inetpeer_invalidate_tree() 550 if (root != peer_avl_empty) { in inetpeer_invalidate_tree() 551 base->root = peer_avl_empty_rcu; in inetpeer_invalidate_tree() 553 call_rcu(&root->gc_rcu, inetpeer_inval_rcu); in inetpeer_invalidate_tree()
|
/net/netfilter/ipset/ |
D | ip_set_hash_netiface.c | 49 rbtree_destroy(struct rb_root *root) in rbtree_destroy() argument 53 rbtree_postorder_for_each_entry_safe(node, next, root, node) in rbtree_destroy() 56 *root = RB_ROOT; in rbtree_destroy() 60 iface_test(struct rb_root *root, const char **iface) in iface_test() argument 62 struct rb_node *n = root->rb_node; in iface_test() 81 iface_add(struct rb_root *root, const char **iface) in iface_add() argument 83 struct rb_node **n = &(root->rb_node), *p = NULL; in iface_add() 107 rb_insert_color(&d->node, root); in iface_add()
|
/net/ceph/ |
D | osdmap.c | 367 struct rb_root *root) in __insert_pg_mapping() argument 369 struct rb_node **p = &root->rb_node; in __insert_pg_mapping() 388 rb_insert_color(&new->node, root); in __insert_pg_mapping() 392 static struct ceph_pg_mapping *__lookup_pg_mapping(struct rb_root *root, in __lookup_pg_mapping() argument 395 struct rb_node *n = root->rb_node; in __lookup_pg_mapping() 415 static int __remove_pg_mapping(struct rb_root *root, struct ceph_pg pgid) in __remove_pg_mapping() argument 417 struct ceph_pg_mapping *pg = __lookup_pg_mapping(root, pgid); in __remove_pg_mapping() 422 rb_erase(&pg->node, root); in __remove_pg_mapping() 433 static int __insert_pg_pool(struct rb_root *root, struct ceph_pg_pool_info *new) in __insert_pg_pool() argument 435 struct rb_node **p = &root->rb_node; in __insert_pg_pool() [all …]
|
/net/bridge/netfilter/ |
D | ebt_stp.c | 30 uint8_t root[8]; member 56 v16 = NR16(stpc->root); in ebt_filter_config() 64 verdict |= (stpc->root[2+i] ^ c->root_addr[i]) & in ebt_filter_config()
|
/net/sunrpc/ |
D | rpc_pipe.c | 1326 rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data) in rpc_gssd_dummy_populate() argument 1336 gssd_dentry = d_hash_and_lookup(root, &q); in rpc_gssd_dummy_populate() 1388 struct dentry *root, *gssd_dentry; in rpc_fill_super() local 1401 sb->s_root = root = d_make_root(inode); in rpc_fill_super() 1402 if (!root) in rpc_fill_super() 1404 if (rpc_populate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF, NULL)) in rpc_fill_super() 1407 gssd_dentry = rpc_gssd_dummy_populate(root, sn->gssd_dummy); in rpc_fill_super() 1409 __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); in rpc_fill_super() 1432 __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); in rpc_fill_super()
|