mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
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>
This commit is contained in:
parent
8c6166cfc9
commit
fc640d4cbe
@ -736,6 +736,7 @@ static int rds_conn_info_visitor(struct rds_conn_path *cp, void *buffer)
|
||||
cinfo->next_rx_seq = cp->cp_next_rx_seq;
|
||||
cinfo->laddr = conn->c_laddr.s6_addr32[3];
|
||||
cinfo->faddr = conn->c_faddr.s6_addr32[3];
|
||||
cinfo->tos = conn->c_tos;
|
||||
strncpy(cinfo->transport, conn->c_trans->t_name,
|
||||
sizeof(cinfo->transport));
|
||||
cinfo->flags = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user