]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: tcp: compute m_ack_seq as offset from ->write_seq
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Thu, 18 Jan 2018 21:11:07 +0000 (13:11 -0800)
committerBrian Maly <brian.maly@oracle.com>
Tue, 26 Jun 2018 19:01:17 +0000 (15:01 -0400)
commit3bcdff1635fa74f717accbcd5787c53ceabce45c
treeed66b2c26818ffbb3e0832e5f9122736e17d6a69
parent91d05d47c91a5e683112993bb676bcbe19445f5a
rds: tcp: compute m_ack_seq as offset from ->write_seq

rds-tcp uses m_ack_seq to track the tcp ack# that indicates
that the peer has received a rds_message. The m_ack_seq is
used in rds_tcp_is_acked() to figure out when it is safe to
drop the rds_message from the RDS retransmit queue.

The m_ack_seq must be calculated as an offset from the right
edge of the in-flight tcp buffer, i.e., it should be based on
the ->write_seq, not the ->snd_nxt.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b589513e6354a5fd6934823b7fd66bffad41137a)

Orabug: 28085214

Signed-off-by: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Reviewed-by: Qing Huang <qing.huang@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/rds/tcp.c
net/rds/tcp.h
net/rds/tcp_send.c