From patchwork Tue May 11 13:36:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Westphal X-Patchwork-Id: 1477137 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.dev (client-ip=147.75.69.165; helo=sjc.edge.kernel.org; envelope-from=mptcp+bounces-624-incoming=patchwork.ozlabs.org@lists.linux.dev; receiver=) Received: from sjc.edge.kernel.org (sjc.edge.kernel.org [147.75.69.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fff9N2DDJz9sX1 for ; Tue, 11 May 2021 23:37:11 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sjc.edge.kernel.org (Postfix) with ESMTPS id 1852D3E0F23 for ; Tue, 11 May 2021 13:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 131AB2FAD; Tue, 11 May 2021 13:37:07 +0000 (UTC) X-Original-To: mptcp@lists.linux.dev Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [193.142.43.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFF1B70 for ; Tue, 11 May 2021 13:37:05 +0000 (UTC) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1lgSZM-0000T9-7L; Tue, 11 May 2021 15:37:04 +0200 From: Florian Westphal To: Cc: Florian Westphal Subject: [PATCH v2 mptcp-next 0/8] add cmsg support to receive path Date: Tue, 11 May 2021 15:36:51 +0200 Message-Id: <20210511133659.29982-1-fw@strlen.de> X-Mailer: git-send-email 2.26.3 X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Changes since v2: - fix indendation of a if line in patch 1 (Mat) - avoid useless conditional in patch 5 (Mat) This adds setsockopt support for busypoll + and the various SO_TIMESTAMP variants. To reduce copy&paste, a few helper functions get exported for mptcp sake. Last patch extends the existing setsockopt test case to also cover/enable SO_TIMESTAMP. Florian Westphal (8): mptcp: enable busypoll from mptcp receive path sock: expose so_timestamp options for mptcp sock: expose so_timestamping options for mptcp mptcp: sockopt: propagate timestamp request to subflows mptcp: setsockopt: handle SOL_SOCKET in one place only tcp: export timestamp helpers for mptcp mptcp: receive path cmsg support selftests: mptcp_connect: add SO_TIMESTAMPNS cmsg support include/net/sock.h | 3 + include/net/tcp.h | 4 + net/core/sock.c | 97 ++++++----- net/ipv4/tcp.c | 10 +- net/mptcp/protocol.c | 35 +++- net/mptcp/sockopt.c | 150 ++++++++++-------- .../selftests/net/mptcp/mptcp_connect.c | 125 ++++++++++++++- .../selftests/net/mptcp/mptcp_sockopt.sh | 4 +- 8 files changed, 304 insertions(+), 124 deletions(-)