[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAF=yD-L_2bBmf-crV_-1XW-jzwF-_F5hLJ0fRpM+p7bHNQJ_sQ@mail.gmail.com>
Date: Tue, 22 Aug 2017 17:32:03 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Mike Maloney <maloneykernel@...il.com>
Cc: Network Development <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Soheil Hassas Yeganeh <soheil@...gle.com>,
Mike Maloney <maloney@...gle.com>
Subject: Re: [PATCH v2 net-next 1/2] tcp: Extend SOF_TIMESTAMPING_RX_SOFTWARE
to TCP recvmsg
On Tue, Aug 22, 2017 at 5:08 PM, Mike Maloney <maloneykernel@...il.com> wrote:
> From: Mike Maloney <maloney@...gle.com>
>
> When SOF_TIMESTAMPING_RX_SOFTWARE is enabled for tcp sockets, return the
> timestamp corresponding to the highest sequence number data returned.
>
> Previously the skb->tstamp is overwritten when a TCP packet is placed
> in the out of order queue. While the packet is in the ooo queue, save the
> timestamp in the TCB_SKB_CB. This space is shared with the gso_*
> options which are only used on the tx path, and a previously unused 4
> byte hole.
>
> When skbs are coalesced either in the sk_receive_queue or the
> out_of_order_queue always choose the timestamp of the appended skb to
> maintain the invariant of returning the timestamp of the last byte in
> the recvmsg buffer.
>
> Signed-off-by: Mike Maloney <maloney@...gle.com>
Acked-by: Willem de Bruijn <willemb@...gle.com>
Powered by blists - more mailing lists