From: Eric Dumazet Subject: Re: [PATCH v2 net-next 4/4] tcp: implement coalescing on backlog queue Date: Tue, 27 Nov 2018 14:13:00 -0800 Message-ID: References: <20181127155738.73068-1-edumazet@google.com> <20181127155738.73068-5-edumazet@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: David Miller , Netdev , jean-louis@dupond.be, Yuchung Cheng , Eric Dumazet To: Neal Cardwell , Eric Dumazet Return-path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:33939 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726288AbeK1JMV (ORCPT ); Wed, 28 Nov 2018 04:12:21 -0500 Received: by mail-pg1-f196.google.com with SMTP id 17so8500174pgg.1 for ; Tue, 27 Nov 2018 14:13:02 -0800 (PST) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/27/2018 01:58 PM, Neal Cardwell wrote: > I wonder if technically perhaps the logic should skip coalescing if > the tail or skb has the TCP_FLAG_URG bit set? It seems if skbs are > coalesced, and some have urgent data and some do not, then the > TCP_FLAG_URG bit will be accumulated into the tail header, but there > will be no way to ensure the correct urgent offsets for the one or > more skbs with urgent data are passed along. Yes, I guess I need to fix that, thanks. I will simply make sure both thtail->urg and th->urg are not set. I could only test thtail->urg, but that would require copying th->urg_ptr and th->urg, and quite frankly we should not spend cycles on URG stuff.