Home
last modified time | relevance | path

Searched refs:sk_rcvbuf (Results 1 – 25 of 66) sorted by relevance

123

/linux/include/trace/events/
A Dsock.h80 __field(int, sk_rcvbuf)
86 __entry->sk_rcvbuf = READ_ONCE(sk->sk_rcvbuf);
90 __entry->rmem_alloc, __entry->truesize, __entry->sk_rcvbuf)
/linux/net/atm/
A Datm_misc.c18 if (atomic_read(&sk_atm(vcc)->sk_rmem_alloc) <= sk_atm(vcc)->sk_rcvbuf) in atm_charge()
33 if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf) { in atm_alloc_charge()
/linux/net/tipc/
A Dgroup.h61 int *sk_rcvbuf, struct tipc_msg *hdr,
A Dgroup.c197 void tipc_group_join(struct net *net, struct tipc_group *grp, int *sk_rcvbuf) in tipc_group_join() argument
209 *sk_rcvbuf = tipc_group_rcvbuf_limit(grp); in tipc_group_join()
857 int *sk_rcvbuf, in tipc_group_member_evt() argument
923 *sk_rcvbuf = tipc_group_rcvbuf_limit(grp); in tipc_group_member_evt()
A Dsocket.c519 sk->sk_rcvbuf = sysctl_tipc_rmem[1]; in tipc_sk_create()
1813 tsk->rcv_win = tsk_adv_blocks(tsk->sk.sk_rcvbuf); in tipc_sk_build_ack()
2171 tipc_group_member_evt(tsk->group, &wakeup, &sk->sk_rcvbuf, in tipc_sk_proto_rcv()
2311 return READ_ONCE(sk->sk_rcvbuf); in rcvbuf_limit()
2314 return READ_ONCE(sk->sk_rcvbuf) << msg_importance(hdr); in rcvbuf_limit()
2317 return READ_ONCE(sk->sk_rcvbuf); in rcvbuf_limit()
3101 tipc_group_join(net, grp, &tsk->sk.sk_rcvbuf); in tipc_sk_join()
3991 i += scnprintf(buf + i, sz - i, " %d", sk->sk_rcvbuf); in tipc_sk_dump()
/linux/net/mptcp/
A Dsockopt.c101 WRITE_ONCE(ssk->sk_rcvbuf, sk->sk_rcvbuf); in mptcp_sol_socket_sync_intval()
1011 WRITE_ONCE(ssk->sk_rcvbuf, sk->sk_rcvbuf); in sync_socket_options()
A Dprotocol.c625 sk_rbuf = READ_ONCE(sk->sk_rcvbuf); in __mptcp_move_skbs_from_subflow()
628 int ssk_rbuf = READ_ONCE(ssk->sk_rcvbuf); in __mptcp_move_skbs_from_subflow()
631 WRITE_ONCE(sk->sk_rcvbuf, ssk_rbuf); in __mptcp_move_skbs_from_subflow()
789 ssk_rbuf = READ_ONCE(ssk->sk_rcvbuf); in mptcp_data_ready()
790 sk_rbuf = READ_ONCE(sk->sk_rcvbuf); in mptcp_data_ready()
1874 if (rcvbuf > sk->sk_rcvbuf) { in mptcp_rcv_space_adjust()
1878 WRITE_ONCE(sk->sk_rcvbuf, rcvbuf); in mptcp_rcv_space_adjust()
1891 WRITE_ONCE(ssk->sk_rcvbuf, rcvbuf); in mptcp_rcv_space_adjust()
2510 sk->sk_rcvbuf = sock_net(sk)->ipv4.sysctl_tcp_rmem[1]; in mptcp_init_sock()
/linux/net/x25/
A Dx25_dev.c58 queued = !sk_add_backlog(sk, skb, READ_ONCE(sk->sk_rcvbuf)); in x25_receive_data()
A Dx25_subr.c376 if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf >> 1) && in x25_check_rbuf()
/linux/net/ax25/
A Dax25_std_timer.c63 (sk->sk_rcvbuf >> 1) && in ax25_std_heartbeat_expiry()
A Dax25_ds_timer.c125 (sk->sk_rcvbuf >> 1) && in ax25_ds_heartbeat_expiry()
/linux/include/net/
A Ddn_nsp.h190 return atomic_read(&sk->sk_rmem_alloc) > (sk->sk_rcvbuf >> 1); in dn_congested()
A Dllc_c_ev.h222 (unsigned int)sk->sk_rcvbuf; in llc_conn_space()
/linux/include/crypto/
A Dif_alg.h213 return max_t(int, max_t(int, sk->sk_rcvbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_rcvbuf()
/linux/net/rose/
A Drose_timer.c141 if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf / 2) && in rose_heartbeat_expiry()
A Drose_in.c182 (sk->sk_rcvbuf >> 1)) in rose_state3_machine()
/linux/net/bluetooth/rfcomm/
A Dsock.c60 if (atomic_read(&sk->sk_rmem_alloc) >= sk->sk_rcvbuf) in rfcomm_sk_data_ready()
299 sk->sk_rcvbuf = RFCOMM_MAX_CREDITS * RFCOMM_DEFAULT_MTU * 10; in rfcomm_sock_alloc()
614 if (atomic_read(&sk->sk_rmem_alloc) <= (sk->sk_rcvbuf >> 2)) in rfcomm_sock_recvmsg()
/linux/net/sctp/
A Dassociola.c162 if ((sk->sk_rcvbuf/2) < SCTP_DEFAULT_MINWINDOW) in sctp_association_init()
165 asoc->rwnd = sk->sk_rcvbuf/2; in sctp_association_init()
1463 (asoc->base.sk->sk_rcvbuf >> net->sctp.rwnd_upd_shift), in sctp_peer_needs_update()
1553 if (rx_count >= asoc->base.sk->sk_rcvbuf) in sctp_assoc_rwnd_decrease()
A Dinput.c325 if (sk_add_backlog(sk, skb, READ_ONCE(sk->sk_rcvbuf))) in sctp_backlog_rcv()
340 if (!sk_add_backlog(sk, skb, READ_ONCE(sk->sk_rcvbuf))) in sctp_backlog_rcv()
367 ret = sk_add_backlog(sk, skb, READ_ONCE(sk->sk_rcvbuf)); in sctp_add_backlog()
A Dproc.c289 sk->sk_rcvbuf); in sctp_assocs_seq_show()
/linux/net/netrom/
A Dnr_timer.c134 if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf / 2) && in nr_heartbeat_expiry()
/linux/net/vmw_vsock/
A Dhyperv_transport.c370 rcvbuf = max_t(int, sk->sk_rcvbuf, RINGBUFFER_HVS_RCV_SIZE); in hvs_open_connection()
443 sk->sk_rcvbuf = RINGBUFFER_HVS_RCV_SIZE; in hvs_sock_init()
/linux/net/netlink/
A Daf_netlink.c1226 if ((atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf || in netlink_attachskb()
1240 if ((atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf || in netlink_attachskb()
1395 if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf && in netlink_broadcast_deliver()
1399 return atomic_read(&sk->sk_rmem_alloc) > (sk->sk_rcvbuf >> 1); in netlink_broadcast_deliver()
2003 atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf / 2) { in netlink_recvmsg()
2231 if (atomic_read(&sk->sk_rmem_alloc) >= sk->sk_rcvbuf) in netlink_dump()
/linux/net/ipv4/
A Dtcp_input.c580 if (sk->sk_rcvbuf < net->ipv4.sysctl_tcp_rmem[2] && in tcp_clamp_window()
584 WRITE_ONCE(sk->sk_rcvbuf, in tcp_clamp_window()
588 if (atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf) in tcp_clamp_window()
749 if (rcvbuf > sk->sk_rcvbuf) { in tcp_rcv_space_adjust()
750 WRITE_ONCE(sk->sk_rcvbuf, rcvbuf); in tcp_rcv_space_adjust()
5277 if (sum_tiny > sk->sk_rcvbuf >> 3) in tcp_collapse_ofo_queue()
5312 goal = sk->sk_rcvbuf >> 3; in tcp_prune_ofo_queue()
5324 goal = sk->sk_rcvbuf >> 3; in tcp_prune_ofo_queue()
5353 if (atomic_read(&sk->sk_rmem_alloc) >= sk->sk_rcvbuf) in tcp_prune_queue()
5358 if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf) in tcp_prune_queue()
[all …]
/linux/net/core/
A Dsock.c475 if (atomic_read(&sk->sk_rmem_alloc) >= sk->sk_rcvbuf) { in __sock_queue_rcv_skb()
527 if (sk_rcvqueues_full(sk, sk->sk_rcvbuf)) { in __sk_receive_skb()
544 } else if (sk_add_backlog(sk, skb, READ_ONCE(sk->sk_rcvbuf))) { in __sk_receive_skb()
936 WRITE_ONCE(sk->sk_rcvbuf, max_t(int, val * 2, SOCK_MIN_RCVBUF)); in __sock_set_rcvbuf()
1537 v.val = sk->sk_rcvbuf; in sock_getsockopt()
3207 sk->sk_rcvbuf = sysctl_rmem_default; in sock_init_data()
3524 mem[SK_MEMINFO_RCVBUF] = READ_ONCE(sk->sk_rcvbuf); in sk_get_meminfo()

Completed in 84 milliseconds

123