Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/rxrpc/
Dnet_ns.c15 struct rxrpc_net *rxnet = in rxrpc_client_conn_reap_timeout() local
18 if (rxnet->live) in rxrpc_client_conn_reap_timeout()
19 rxrpc_queue_work(&rxnet->client_conn_reaper); in rxrpc_client_conn_reap_timeout()
24 struct rxrpc_net *rxnet = in rxrpc_service_conn_reap_timeout() local
27 if (rxnet->live) in rxrpc_service_conn_reap_timeout()
28 rxrpc_queue_work(&rxnet->service_conn_reaper); in rxrpc_service_conn_reap_timeout()
33 struct rxrpc_net *rxnet = in rxrpc_peer_keepalive_timeout() local
36 if (rxnet->live) in rxrpc_peer_keepalive_timeout()
37 rxrpc_queue_work(&rxnet->peer_keepalive_work); in rxrpc_peer_keepalive_timeout()
45 struct rxrpc_net *rxnet = rxrpc_net(net); in rxrpc_init_net() local
[all …]
Dproc.c29 __acquires(rxnet->call_lock) in rxrpc_call_seq_start()
31 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq)); in rxrpc_call_seq_start() local
34 read_lock(&rxnet->call_lock); in rxrpc_call_seq_start()
35 return seq_list_start_head(&rxnet->calls, *_pos); in rxrpc_call_seq_start()
40 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq)); in rxrpc_call_seq_next() local
42 return seq_list_next(v, &rxnet->calls, pos); in rxrpc_call_seq_next()
46 __releases(rxnet->call_lock) in rxrpc_call_seq_stop()
49 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq)); in rxrpc_call_seq_stop() local
51 read_unlock(&rxnet->call_lock); in rxrpc_call_seq_stop()
61 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq)); in rxrpc_call_seq_show() local
[all …]
Dconn_client.c52 struct rxrpc_net *rxnet = conn->params.local->rxnet; in rxrpc_get_client_connection_id() local
68 conn->proto.epoch = rxnet->epoch; in rxrpc_get_client_connection_id()
161 struct rxrpc_net *rxnet = bundle->params.local->rxnet; in rxrpc_alloc_client_connection() local
191 atomic_inc(&rxnet->nr_conns); in rxrpc_alloc_client_connection()
192 write_lock(&rxnet->conn_lock); in rxrpc_alloc_client_connection()
193 list_add_tail(&conn->proc_link, &rxnet->conn_proc_list); in rxrpc_alloc_client_connection()
194 write_unlock(&rxnet->conn_lock); in rxrpc_alloc_client_connection()
205 atomic_inc(&rxnet->nr_client_conns); in rxrpc_alloc_client_connection()
225 struct rxrpc_net *rxnet; in rxrpc_may_reuse_conn() local
231 rxnet = conn->params.local->rxnet; in rxrpc_may_reuse_conn()
[all …]
Dpeer_event.c302 static void rxrpc_peer_keepalive_dispatch(struct rxrpc_net *rxnet, in rxrpc_peer_keepalive_dispatch() argument
308 const u8 mask = ARRAY_SIZE(rxnet->peer_keepalive) - 1; in rxrpc_peer_keepalive_dispatch()
312 spin_lock_bh(&rxnet->peer_hash_lock); in rxrpc_peer_keepalive_dispatch()
323 spin_unlock_bh(&rxnet->peer_hash_lock); in rxrpc_peer_keepalive_dispatch()
342 spin_lock_bh(&rxnet->peer_hash_lock); in rxrpc_peer_keepalive_dispatch()
344 &rxnet->peer_keepalive[slot & mask]); in rxrpc_peer_keepalive_dispatch()
350 spin_unlock_bh(&rxnet->peer_hash_lock); in rxrpc_peer_keepalive_dispatch()
358 struct rxrpc_net *rxnet = in rxrpc_peer_keepalive_worker() local
360 const u8 mask = ARRAY_SIZE(rxnet->peer_keepalive) - 1; in rxrpc_peer_keepalive_worker()
366 base = rxnet->peer_keepalive_base; in rxrpc_peer_keepalive_worker()
[all …]
Dconn_object.c235 struct rxrpc_net *rxnet = conn->params.local->rxnet; in rxrpc_kill_connection() local
243 write_lock(&rxnet->conn_lock); in rxrpc_kill_connection()
245 write_unlock(&rxnet->conn_lock); in rxrpc_kill_connection()
323 static void rxrpc_set_service_reap_timer(struct rxrpc_net *rxnet, in rxrpc_set_service_reap_timer() argument
326 if (rxnet->live) in rxrpc_set_service_reap_timer()
327 timer_reduce(&rxnet->service_conn_reap_timer, reap_at); in rxrpc_set_service_reap_timer()
343 rxrpc_set_service_reap_timer(conn->params.local->rxnet, in rxrpc_put_service_conn()
370 if (atomic_dec_and_test(&conn->params.local->rxnet->nr_conns)) in rxrpc_destroy_connection()
371 wake_up_var(&conn->params.local->rxnet->nr_conns); in rxrpc_destroy_connection()
384 struct rxrpc_net *rxnet = in rxrpc_service_connection_reaper() local
[all …]
Dlocal_object.c74 static struct rxrpc_local *rxrpc_alloc_local(struct rxrpc_net *rxnet, in rxrpc_alloc_local() argument
83 local->rxnet = rxnet; in rxrpc_alloc_local()
201 struct rxrpc_net *rxnet = rxrpc_net(net); in rxrpc_lookup_local() local
210 mutex_lock(&rxnet->local_mutex); in rxrpc_lookup_local()
212 for (cursor = rxnet->local_endpoints.next; in rxrpc_lookup_local()
213 cursor != &rxnet->local_endpoints; in rxrpc_lookup_local()
244 local = rxrpc_alloc_local(rxnet, srx); in rxrpc_lookup_local()
252 if (cursor != &rxnet->local_endpoints) in rxrpc_lookup_local()
259 mutex_unlock(&rxnet->local_mutex); in rxrpc_lookup_local()
270 mutex_unlock(&rxnet->local_mutex); in rxrpc_lookup_local()
[all …]
Dpeer_object.c120 struct rxrpc_net *rxnet = local->rxnet; in __rxrpc_lookup_peer_rcu() local
122 hash_for_each_possible_rcu(rxnet->peer_hash, peer, hash_link, hash_key) { in __rxrpc_lookup_peer_rcu()
316 struct rxrpc_net *rxnet = local->rxnet; in rxrpc_new_incoming_peer() local
322 spin_lock(&rxnet->peer_hash_lock); in rxrpc_new_incoming_peer()
323 hash_add_rcu(rxnet->peer_hash, &peer->hash_link, hash_key); in rxrpc_new_incoming_peer()
324 list_add_tail(&peer->keepalive_link, &rxnet->peer_keepalive_new); in rxrpc_new_incoming_peer()
325 spin_unlock(&rxnet->peer_hash_lock); in rxrpc_new_incoming_peer()
336 struct rxrpc_net *rxnet = local->rxnet; in rxrpc_lookup_peer() local
358 spin_lock_bh(&rxnet->peer_hash_lock); in rxrpc_lookup_peer()
365 hash_add_rcu(rxnet->peer_hash, in rxrpc_lookup_peer()
[all …]
Dcall_object.c106 struct rxrpc_net *rxnet = rxrpc_net(sock_net(&rx->sk)); in rxrpc_alloc_call() local
159 call->rxnet = rxnet; in rxrpc_alloc_call()
161 atomic_inc(&rxnet->nr_calls); in rxrpc_alloc_call()
259 struct rxrpc_net *rxnet; in rxrpc_new_client_call() local
319 rxnet = call->rxnet; in rxrpc_new_client_call()
320 write_lock(&rxnet->call_lock); in rxrpc_new_client_call()
321 list_add_tail(&call->link, &rxnet->calls); in rxrpc_new_client_call()
322 write_unlock(&rxnet->call_lock); in rxrpc_new_client_call()
589 struct rxrpc_net *rxnet = call->rxnet; in rxrpc_put_call() local
604 write_lock(&rxnet->call_lock); in rxrpc_put_call()
[all …]
Dconn_service.c125 struct rxrpc_connection *rxrpc_prealloc_service_connection(struct rxrpc_net *rxnet, in rxrpc_prealloc_service_connection() argument
138 atomic_inc(&rxnet->nr_conns); in rxrpc_prealloc_service_connection()
139 write_lock(&rxnet->conn_lock); in rxrpc_prealloc_service_connection()
140 list_add_tail(&conn->link, &rxnet->service_conns); in rxrpc_prealloc_service_connection()
141 list_add_tail(&conn->proc_link, &rxnet->conn_proc_list); in rxrpc_prealloc_service_connection()
142 write_unlock(&rxnet->conn_lock); in rxrpc_prealloc_service_connection()
Dcall_accept.c43 struct rxrpc_net *rxnet = rxrpc_net(sock_net(&rx->sk)); in rxrpc_service_prealloc_one() local
86 conn = rxrpc_prealloc_service_connection(rxnet, gfp); in rxrpc_service_prealloc_one()
142 rxnet = call->rxnet; in rxrpc_service_prealloc_one()
143 write_lock(&rxnet->call_lock); in rxrpc_service_prealloc_one()
144 list_add_tail(&call->link, &rxnet->calls); in rxrpc_service_prealloc_one()
145 write_unlock(&rxnet->call_lock); in rxrpc_service_prealloc_one()
183 struct rxrpc_net *rxnet = rxrpc_net(sock_net(&rx->sk)); in rxrpc_discard_prealloc() local
209 write_lock(&rxnet->conn_lock); in rxrpc_discard_prealloc()
212 write_unlock(&rxnet->conn_lock); in rxrpc_discard_prealloc()
214 if (atomic_dec_and_test(&rxnet->nr_conns)) in rxrpc_discard_prealloc()
[all …]
Daf_rxrpc.c748 struct rxrpc_net *rxnet; in rxrpc_create() local
788 rxnet = rxrpc_net(sock_net(&rx->sk)); in rxrpc_create()
789 timer_reduce(&rxnet->peer_keepalive_timer, jiffies + 1); in rxrpc_create()
Dar-internal.h268 struct rxrpc_net *rxnet; /* The network ns in which this resides */ member
557 struct rxrpc_net *rxnet; /* Network namespace to which call belongs */ member
Doutput.c644 whdr.epoch = htonl(peer->local->rxnet->epoch); in rxrpc_send_keepalive()