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

rds: Return proper "tos" value to user-space

The proper "tos" value needs to be returned
to user-space (sockopt RDS_INFO_CONNECTIONS).

Fixes: 3eb450367d08 ("rds: add type of service(tos) infrastructure")
Signed-off-by: Gerd Rausch <gerd.rausch@oracle.com>
Reviewed-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>

authored by

Gerd Rausch and committed by
Santosh Shilimkar
fc640d4c 8c6166cf

+1
+1
net/rds/connection.c
··· 736 736 cinfo->next_rx_seq = cp->cp_next_rx_seq; 737 737 cinfo->laddr = conn->c_laddr.s6_addr32[3]; 738 738 cinfo->faddr = conn->c_faddr.s6_addr32[3]; 739 + cinfo->tos = conn->c_tos; 739 740 strncpy(cinfo->transport, conn->c_trans->t_name, 740 741 sizeof(cinfo->transport)); 741 742 cinfo->flags = 0;