summaryrefslogtreecommitdiffstats
path: root/net/rds/tcp.c
diff options
context:
space:
mode:
authorSantosh Shilimkar2018-10-24 05:21:14 +0200
committerSantosh Shilimkar2019-02-04 23:59:12 +0100
commit3eb450367d0823226515ee24712ed08eccb33eb9 (patch)
treed45c2920e6845dcd8a042c751c8b9dddcd48b913 /net/rds/tcp.c
parentrds: rdma: add consumer reject (diff)
downloadkernel-qcow2-linux-3eb450367d0823226515ee24712ed08eccb33eb9.tar.gz
kernel-qcow2-linux-3eb450367d0823226515ee24712ed08eccb33eb9.tar.xz
kernel-qcow2-linux-3eb450367d0823226515ee24712ed08eccb33eb9.zip
rds: add type of service(tos) infrastructure
RDS Service type (TOS) is user-defined and needs to be configured via RDS IOCTL interface. It must be set before initiating any traffic and once set the TOS can not be changed. All out-going traffic from the socket will be associated with its TOS. Reviewed-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> [yanjun.zhu@oracle.com: Adapted original patch with ipv6 changes] Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Diffstat (limited to 'net/rds/tcp.c')
-rw-r--r--net/rds/tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index c16f0a362c32..eb6851952cbf 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -267,6 +267,7 @@ static void rds_tcp_tc_info(struct socket *rds_sock, unsigned int len,
tsinfo.last_sent_nxt = tc->t_last_sent_nxt;
tsinfo.last_expected_una = tc->t_last_expected_una;
tsinfo.last_seen_una = tc->t_last_seen_una;
+ tsinfo.tos = tc->t_cpath->cp_conn->c_tos;
rds_info_copy(iter, &tsinfo, sizeof(tsinfo));
}