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.133.124]) by passt.top (Postfix) with ESMTP id 510BB5A0275 for ; Sat, 6 Apr 2024 20:21:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712427671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+t0KwwMdpKk8Cq1XYQJ4gt6vU14mdmDidKTllvwmDtw=; b=dW/SGdEKgkcSqJTc1Zg5XVDZicspp9h5Xs4RDmeq1cmc2dqi6is2C7XU59vgCMIxK8UZTC lHpPlqH9Ii8ka2RD82TTcLHG/Y95dAW0YikUjUTkNZ/phkt26/kt8toJnFZj0mnXzllRdF hCO16BULQUrNrGltBCA3ytx/XeHs2us= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-8-jWBbUgjvNLiqodp3T2XG4g-1; Sat, 06 Apr 2024 14:21:09 -0400 X-MC-Unique: jWBbUgjvNLiqodp3T2XG4g-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ACFB1927A65; Sat, 6 Apr 2024 18:21:08 +0000 (UTC) Received: from fenrir.redhat.com (unknown [10.22.8.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8074D430F56; Sat, 6 Apr 2024 18:21:07 +0000 (UTC) From: jmaloy@redhat.com To: netdev@vger.kernel.org, davem@davemloft.net Subject: [net-next 0/2] tcp: add support for SO_PEEK_OFF socket option Date: Sat, 6 Apr 2024 14:21:05 -0400 Message-ID: <20240406182107.261472-1-jmaloy@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 Message-ID-Hash: RHI2ALFA7HRU65NCABQPPLSQXNJK42PI X-Message-ID-Hash: RHI2ALFA7HRU65NCABQPPLSQXNJK42PI 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: kuba@kernel.org, passt-dev@passt.top, jmaloy@redhat.com, sbrivio@redhat.com, lvivier@redhat.com, dgibson@redhat.com, eric.dumazet@gmail.com, edumazet@google.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: From: Jon Maloy We add support for the SO_PEEK_OFF socket option as a new feature in TCP. In a separate patch, we fix a bug that was revealed while testing this feature. Jon Maloy (2): tcp: add support for SO_PEEK_OFF socket option tcp: correct handling of extreme menory squeeze net/ipv4/af_inet.c | 1 + net/ipv4/tcp.c | 16 ++++++++++------ net/ipv4/tcp_output.c | 14 +++++++++----- 3 files changed, 20 insertions(+), 11 deletions(-) -- 2.42.0