[PATCH v4] net: tcp: fix rx timestamp behavior for tcp_recvmsg

2020-05-08 Thread Kelly Littlepage
From: Kelly Littlepage The stated intent of the original commit is to is to "return the timestamp corresponding to the highest sequence number data returned." The current implementation returns the timestamp for the last byte of the last fully read skb, which is not necessarily the la

[PATCH v3] net: tcp: fix rx timestamp behavior for tcp_recvmsg

2020-05-08 Thread Kelly Littlepage
TWARE to TCP recvmsg") Co-developed-by: Iris Liu Signed-off-by: Iris Liu Signed-off-by: Kelly Littlepage --- Reverted to the original subject line net/ipv4/tcp.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 6d87de434377..e72b

[PATCH v2] net: tcp: fixes commit 98aaa913b4ed ("tcp: Extend SOF_TIMESTAMPING_RX_SOFTWARE to TCP recvmsg")

2020-05-07 Thread Kelly Littlepage
ffer. This patch converts behavior to the original definition, and to the behavior of the previous draft versions of commit 98aaa913b4ed ("tcp: Extend SOF_TIMESTAMPING_RX_SOFTWARE to TCP recvmsg") which also match this behavior. Co-developed-by: Iris Liu Signed-off-by: Iris Liu Signed-off-

[PATCH] net: tcp: fix rx timestamp behavior for tcp_recvmsg

2020-05-04 Thread Kelly Littlepage
st. The proposed change addresses both problems while remaining consistent with 1.4 and the wording of commit 98aaa913b4ed ("tcp: Extend SOF_TIMESTAMPING_RX_SOFTWARE to TCP recvmsg"). Co-developed-by: Iris Liu Signed-off-by: Iris Liu Signed-off-by: Kelly Littlepage --- net/ipv4/tcp.c |