rds_rdma_listen_init_common() reports every listener as being on RDS_PORT, but only the IPv4 caller binds that port; the IPv6 listener is bound to RDS_CM_PORT, as rds_rdma_listen_init() explains, and its debug line has claimed 18634 instead of 16385 since it was added. Print the port from the address the helper just bound. Assisted-by: Claude-Code:claude-fable-5 Signed-off-by: Allison Henderson --- net/rds/rdma_transport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c index 91ff1dde26af..3f853004c490 100644 --- a/net/rds/rdma_transport.c +++ b/net/rds/rdma_transport.c @@ -236,7 +236,10 @@ static int rds_rdma_listen_init_common(rdma_cm_event_handler handler, goto out; } - rdsdebug("cm %p listening on port %u\n", cm_id, RDS_PORT); + rdsdebug("cm %p listening on port %u\n", cm_id, + ntohs(sa->sa_family == AF_INET6 ? + ((struct sockaddr_in6 *)sa)->sin6_port : + ((struct sockaddr_in *)sa)->sin_port)); *ret_cm_id = cm_id; cm_id = NULL; -- 2.25.1