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 3079A5A026F for ; Wed, 6 Dec 2023 17:48:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701881303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YuDeg3kqX/b9fH+MP9upRDvX42lhHyoV9lttgpVosg8=; b=d+oAc9QFVAhP5FoSD+n65YwNrAexmGil4mJAd8C6IO2QZraL3TdiD0gmDor1t84SueGmgJ +69GBNga7RaHuVXJfvh74ShA6tG5ttO0e9iC6QHTJj6hV3JaKwErIaGO4tV4BVVvzG4dt/ ZMaRcUu41bPfmU9kqjRgB7umvPvn7Mo= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-185-uPdNdEVLPze6vyIbBpn_EQ-1; Wed, 06 Dec 2023 11:48:21 -0500 X-MC-Unique: uPdNdEVLPze6vyIbBpn_EQ-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-77dcbd6edb0so1070941285a.1 for ; Wed, 06 Dec 2023 08:48:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701881301; x=1702486101; h=content-transfer-encoding:in-reply-to:from:references: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=YuDeg3kqX/b9fH+MP9upRDvX42lhHyoV9lttgpVosg8=; b=Wq5YV9JXS/xYKYXfFGpxpZUAF0GZd1LAOJfqXbW9waen3C/krXqCx0v/KSY4FZ4N0T USBC+DybsAReXbb/FxZU7GBOQSDTVTuj7afEOHdFBZhnPgI0xmIKYvmy4ZJXR5PgAtmN 62F34BaXtCit82Z4W/Bn7Ua51L4aD7WZ5QablAKkei29gOS7gBXD4ORaf1uHOIb/SjgA uhyBIAXIb4M6blacdDQGG8Pdeo38d7x+F9ZxrlIR7CtMFTaUJp96396l69mPO3iEeRQh ipdWDLNIQZQqjKZp9OHrKSf2YfSU9x66IkDnNaf7nFUM5wJLXkfuvsf8OtWsidnfHi5J +gtQ== X-Gm-Message-State: AOJu0Yx/mV0djoxpnj8x51LPLKRHAlaD9x71fNukbOYjHKTy5LsE9cKJ b/UdorUO2xaC9oZuL5knYHFu7ZcOCa3dDOr1FukhfO0qWilwwUWS7Gw/VjMJZCNyEG3xcbQyODu DJvBR6sDFZ6I02r5Wiz0CuPTnsOvwax4r+FOatE0tSB6488c/LuMCw+XGkfT2eo0naf9h4w== X-Received: by 2002:a05:620a:270a:b0:77f:fe5:4b66 with SMTP id b10-20020a05620a270a00b0077f0fe54b66mr1413313qkp.81.1701881301166; Wed, 06 Dec 2023 08:48:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IElyX7I1hvxdQdVbcKKzkygVfI6O6UFhiIS/SErFMvutEnof0sYwut71rxd/ZBDWDdYwIYXew== X-Received: by 2002:a05:620a:270a:b0:77f:fe5:4b66 with SMTP id b10-20020a05620a270a00b0077f0fe54b66mr1413300qkp.81.1701881300872; Wed, 06 Dec 2023 08:48:20 -0800 (PST) Received: from [10.0.0.97] ([24.225.234.80]) by smtp.gmail.com with ESMTPSA id t1-20020a05620a034100b0077dc528fd6asm79069qkm.73.2023.12.06.08.48.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Dec 2023 08:48:20 -0800 (PST) Message-ID: Date: Wed, 6 Dec 2023 11:48:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [RFC net-next v2] tcp: add support for read with offset when using MSG_PEEK To: passt-dev@passt.top, sbrivio@redhat.com, lvivier@redhat.com, dgibson@redhat.com References: <20231205232028.1490809-1-jmaloy@redhat.com> From: Jon Maloy In-Reply-To: <20231205232028.1490809-1-jmaloy@redhat.com> 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: 6RN575Z6ZLF7G3SDNVJRV4I6MGZO4RUW X-Message-ID-Hash: 6RN575Z6ZLF7G3SDNVJRV4I6MGZO4RUW 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 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: Tm90ZSB0aGF0IEkgb25seSBzZW50IHRoaXMgb25lIHRvIHBhc3N0LWRldiwgbm90IG5ldGRldi4N Ckkgd291bGQgYXBwcmVjaWF0ZSBmZWVkYmFjayBhbmQgcG9zc2libGUgYWNrL3Jldmlld2VkLWJ5 wqAgYXMgc29vbiBhcyANCnBvc3NpYmxlIHNvIEkgY2FuIHNlbmQgaXQgdG8gbmV0ZGV2Lg0KDQov Ly9qb24NCg0KT24gMjAyMy0xMi0wNSAxODoyMCwgSm9uIE1hbG95IHdyb3RlOg0KPiBXaGVuIHJl YWRpbmcgcmVjZWl2ZWQgbWVzc2FnZXMgd2l0aCBNU0dfUEVFSywgd2Ugc29tZXRpbmVzIGhhdmUg dG8gcmVhZA0KPiB0aGUgbGVhZGluZyBieXRlcyBvZiB0aGUgc3RyZWFtIHNldmVyYWwgdGltZXMs IG9ubHkgdG8gcmVhY2ggdGhlIGJ5dGVzDQo+IHdlIHJlY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