Lines Matching refs:port
64 * finer-grained communication of per-port congestion. The sender does a very
65 * inexpensive bit test to test if the port it's about to send to is congested
239 * port congested from both send and recv paths.
299 void rds_cong_set_bit(struct rds_cong_map *map, __be16 port)
305 &map->m_addr, ntohs(port), map);
307 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS;
308 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS;
313 void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port)
319 &map->m_addr, ntohs(port), map);
321 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS;
322 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS;
327 static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port)
332 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS;
333 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS;
357 /* update congestion map for now-closed port */
368 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock,
371 if (!rds_cong_test_bit(map, port))
380 rs->rs_cong_mask |= RDS_CONG_MONITOR_MASK(ntohs(port));
385 if (!rds_cong_test_bit(map, port))
393 rdsdebug("waiting on map %p for port %u\n", map, be16_to_cpu(port));
396 !rds_cong_test_bit(map, port));