From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id AA4215A0274 for ; Fri, 26 Apr 2024 01:24:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714087474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xQe8M//oVgRLxV7nr7ckCLe84rhuM0Ks8EIxNS5XNic=; b=BfCrPlxXBNDCa+6jOjvztW8UFTnaOOM+MGov9ekxj+p5X5Ki/XQEEx5ciZ80NdTNt9c/Ko gwafq4b7uOGDh2iJG/XTMpgytZr5y1cebYNCabcSt71scWZLvqF3HM/u9KT2ia8NwuLhN2 sZGXZn8e8XVoJxee1hpj6oXM9ehfCts= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-43-z-47uag5NbCLVA4pm2FPlg-1; Thu, 25 Apr 2024 19:23:30 -0400 X-MC-Unique: z-47uag5NbCLVA4pm2FPlg-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-61891efba06so26754577b3.0 for ; Thu, 25 Apr 2024 16:23:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714087410; x=1714692210; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xQe8M//oVgRLxV7nr7ckCLe84rhuM0Ks8EIxNS5XNic=; b=RfFJqKVs3QbU9d2+s0c4FvIllCBTyIkXYPYC3DljslZ6wyIWYCeWGirRhuS+JXRUY/ h+91FB6gQVdtBNcvs6CacOq5vjJbiBq+zJRdHN8cPgYLQMz8q4EJ0nIIzXquJLs9iueo C960ZaeTk2bNEPPMtNyjEMaGOEIrq91id5EqDY/JnqwyESJb+r5zTYZ4iGQHvb1alPUS YS4ne6S3vJzwFwS0aIHyI3Ml28BxIzPu2CsIiZh89dxwkllvt9qSgK4tqNDajHKEsJaJ icqq9pwYonNTD9iB8Vuvo6RBEuiiFCa3ChuLGEgz7eA5fVEeeOkRpyk3MWF6Oko+y77K KP+A== X-Gm-Message-State: AOJu0YwbkVOyDOmJTvGbUvp3AMmMTHNF89kQ8GrgId4hCDyVoO3DXj9t /szwv79wq/8xbtkPPr3eKhkY0ksUIiCkyX9MsHrHWjuDHQweEj2zb+xK2RC2i5ApuZHcjs/8Zgn imG0+G649O6Nznu0YdPac603YTvuaIzgbvBg3GuQHF/ABtW/nEg== X-Received: by 2002:a81:4c09:0:b0:614:cd12:d55d with SMTP id z9-20020a814c09000000b00614cd12d55dmr1083153ywa.10.1714087410094; Thu, 25 Apr 2024 16:23:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpOzNJg2qUeNQa59CJb0Ogg6Rm4dpQ8suUf35yYjaiR//k7KnKIC615/3C955x49DsQaVoyw== X-Received: by 2002:a81:4c09:0:b0:614:cd12:d55d with SMTP id z9-20020a814c09000000b00614cd12d55dmr1083137ywa.10.1714087409679; Thu, 25 Apr 2024 16:23:29 -0700 (PDT) Received: from [10.0.0.97] ([24.225.234.80]) by smtp.gmail.com with ESMTPSA id g6-20020ac870c6000000b004347627f12esm7371427qtp.11.2024.04.25.16.23.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 16:23:29 -0700 (PDT) Message-ID: <72322857-eb15-26c8-1713-d999acd05364@redhat.com> Date: Thu, 25 Apr 2024 19:23:28 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 1/2] tcp: leverage support of SO_PEEK_OFF socket option when available To: David Gibson References: <20240420191920.104876-1-jmaloy@redhat.com> <20240420191920.104876-2-jmaloy@redhat.com> From: Jon Maloy In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Message-ID-Hash: B3IR26DKARJRZY3XH2HC3W6BZY7U5TAD X-Message-ID-Hash: B3IR26DKARJRZY3XH2HC3W6BZY7U5TAD X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, sbrivio@redhat.com, lvivier@redhat.com, dgibson@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: DQoNCk9uIDIwMjQtMDQtMjMgMjA6NDQsIERhdmlkIEdpYnNvbiB3cm90ZToNCj4gT24gU2F0LCBB cHIgMjAsIDIwMjQgYXQgMDM6MTk6MTlQTSAtMDQwMCwgSm9uIE1hbG95IHdyb3RlOg0KPj4gVGhl IGtlcm5lbCBtYXkgc3VwcG9ydCByZWN2bXNnKE1TR19QRUVLKSwgc3RhcnRpbmcgcmVhZGluZyBk YXRhIGZyb20gYQ0KPiBOb3Qgd29ydGggYSByZXNwaW4gb24gaXRzIG93biwgYnV0IEkgdGhpbmsg dGhlIGNvbW1hIGFib3ZlIGlzDQo+IG1pc3BsYWNlZCwgYW5kIGZvciBtZSBtYWtlcyB0aGUgc2Vu dGVuY2UgbXVjaCBoYXJkZXIgdG8gcmVhZC4NCj4NCj4+IGdpdmVuIG9mZnNldCBzZXQgYnkgdGhl IFNPX1BFRUtfT0ZGIHNvY2tldCBv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