Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/rtrs-clt: For conn rejection use actual err number

When the connection establishment request is rejected from the server
side, then the actual error number sent back should be used.

Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Link: https://patch.msgid.link/20260107161517.56357-10-haris.iqbal@ionos.com
Reviewed-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com>
Reviewed-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Md Haris Iqbal and committed by
Leon Romanovsky
fc290630 6405f72e

+2 -2
+2 -2
drivers/infiniband/ulp/rtrs/rtrs-clt.c
··· 1928 1928 struct rtrs_path *s = con->c.path; 1929 1929 const struct rtrs_msg_conn_rsp *msg; 1930 1930 const char *rej_msg; 1931 - int status, errno; 1931 + int status, errno = -ECONNRESET; 1932 1932 u8 data_len; 1933 1933 1934 1934 status = ev->status; ··· 1950 1950 status, rej_msg); 1951 1951 } 1952 1952 1953 - return -ECONNRESET; 1953 + return errno; 1954 1954 } 1955 1955 1956 1956 void rtrs_clt_close_conns(struct rtrs_clt_path *clt_path, bool wait)