Lines Matching refs:rxnet

15 	struct rxrpc_net *rxnet =
18 if (rxnet->live)
19 rxrpc_queue_work(&rxnet->service_conn_reaper);
24 struct rxrpc_net *rxnet =
27 if (rxnet->live)
28 rxrpc_queue_work(&rxnet->peer_keepalive_work);
36 struct rxrpc_net *rxnet = rxrpc_net(net);
39 rxnet->live = true;
40 get_random_bytes(&rxnet->epoch, sizeof(rxnet->epoch));
41 rxnet->epoch |= RXRPC_RANDOM_EPOCH;
43 INIT_LIST_HEAD(&rxnet->calls);
44 spin_lock_init(&rxnet->call_lock);
45 atomic_set(&rxnet->nr_calls, 1);
47 atomic_set(&rxnet->nr_conns, 1);
48 INIT_LIST_HEAD(&rxnet->conn_proc_list);
49 INIT_LIST_HEAD(&rxnet->service_conns);
50 rwlock_init(&rxnet->conn_lock);
51 INIT_WORK(&rxnet->service_conn_reaper,
53 timer_setup(&rxnet->service_conn_reap_timer,
56 atomic_set(&rxnet->nr_client_conns, 0);
58 INIT_HLIST_HEAD(&rxnet->local_endpoints);
59 mutex_init(&rxnet->local_mutex);
61 hash_init(rxnet->peer_hash);
62 spin_lock_init(&rxnet->peer_hash_lock);
63 for (i = 0; i < ARRAY_SIZE(rxnet->peer_keepalive); i++)
64 INIT_LIST_HEAD(&rxnet->peer_keepalive[i]);
65 INIT_LIST_HEAD(&rxnet->peer_keepalive_new);
66 timer_setup(&rxnet->peer_keepalive_timer,
68 INIT_WORK(&rxnet->peer_keepalive_work, rxrpc_peer_keepalive_worker);
69 rxnet->peer_keepalive_base = ktime_get_seconds();
72 rxnet->proc_net = proc_net_mkdir(net, "rxrpc", net->proc_net);
73 if (!rxnet->proc_net)
76 proc_create_net("calls", 0444, rxnet->proc_net, &rxrpc_call_seq_ops,
78 proc_create_net("conns", 0444, rxnet->proc_net,
81 proc_create_net("peers", 0444, rxnet->proc_net,
84 proc_create_net("locals", 0444, rxnet->proc_net,
87 proc_create_net_single_write("stats", S_IFREG | 0644, rxnet->proc_net,
92 rxnet->live = false;
101 struct rxrpc_net *rxnet = rxrpc_net(net);
103 rxnet->live = false;
104 del_timer_sync(&rxnet->peer_keepalive_timer);
105 cancel_work_sync(&rxnet->peer_keepalive_work);
107 del_timer_sync(&rxnet->peer_keepalive_timer);
108 rxrpc_destroy_all_calls(rxnet);
109 rxrpc_destroy_all_connections(rxnet);
110 rxrpc_destroy_all_peers(rxnet);
111 rxrpc_destroy_all_locals(rxnet);
112 proc_remove(rxnet->proc_net);