recv.c (37acd687269f8cb8366598e292f96eb5605d3e3a) | recv.c (f1693c63ab133d16994cc50f773982b5905af264) |
---|---|
1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 89 unchanged lines hidden (view full) --- 98 if (delta == 0) 99 return; 100 101 rs->rs_rcv_bytes += delta; 102 if (delta > 0) 103 rds_stats_add(s_recv_bytes_added_to_socket, delta); 104 else 105 rds_stats_add(s_recv_bytes_removed_from_socket, -delta); | 1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 89 unchanged lines hidden (view full) --- 98 if (delta == 0) 99 return; 100 101 rs->rs_rcv_bytes += delta; 102 if (delta > 0) 103 rds_stats_add(s_recv_bytes_added_to_socket, delta); 104 else 105 rds_stats_add(s_recv_bytes_removed_from_socket, -delta); |
106 107 /* loop transport doesn't send/recv congestion updates */ 108 if (rs->rs_transport->t_type == RDS_TRANS_LOOP) 109 return; 110 |
|
106 now_congested = rs->rs_rcv_bytes > rds_sk_rcvbuf(rs); 107 108 rdsdebug("rs %p (%pI4:%u) recv bytes %d buf %d " 109 "now_cong %d delta %d\n", 110 rs, &rs->rs_bound_addr, 111 ntohs(rs->rs_bound_port), rs->rs_rcv_bytes, 112 rds_sk_rcvbuf(rs), now_congested, delta); 113 --- 659 unchanged lines hidden --- | 111 now_congested = rs->rs_rcv_bytes > rds_sk_rcvbuf(rs); 112 113 rdsdebug("rs %p (%pI4:%u) recv bytes %d buf %d " 114 "now_cong %d delta %d\n", 115 rs, &rs->rs_bound_addr, 116 ntohs(rs->rs_bound_port), rs->rs_rcv_bytes, 117 rds_sk_rcvbuf(rs), now_congested, delta); 118 --- 659 unchanged lines hidden --- |