Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp194651rdb; Tue, 19 Dec 2023 13:38:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAMOgcNX5GV96sC5lYQ0LEe6qFcGTyxS9mnQzfHbr4INFufDKmeGn4rmzgzsDKmepnWyPG X-Received: by 2002:a17:902:d506:b0:1d3:d8be:f28e with SMTP id b6-20020a170902d50600b001d3d8bef28emr2431341plg.53.1703021912123; Tue, 19 Dec 2023 13:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703021912; cv=none; d=google.com; s=arc-20160816; b=OEWPNhZU82qjjZzBIbYuQy7ofBqEH0JR9LtToqPy9PpoR2G+Ss21RyYmPnhFY02Bdm wMU+TJEt6ejovQY8/kmoX4s1l1aGQYtA7sQs4xgOm9rj9rcDXvjWdYjVlgHPF//R2f4R QBBN1d9UrH1GxZpQuYXzzxZ0pEVT8e9XBdAZW4Znx8g+lYIAjO5QS+1fDCHaV/SWIqX8 y/4tj3TNvHVZtY2swlcrC1O7AQ7Md5pJNB1n3QAmxfu5C9ztEiWxgOaOYQKzmTN/O1iR q0q9q+wlKYitQJFf34FJthri/8GMo//ObEWXfMXiG/3qRzgMLZ0bS/Th+MOz+1+IdChD f9lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=0M171/Xt05UpnOirXfqUkrZqEANWtoncjlPpKCiAASM=; fh=LSz9aBqJ/yXKOLoR2R99PC1FL7tLYlG9wR+gd1B4vgo=; b=DqiMPM92GP+EdEq16imn/6W5U13ilUi8gsGatnAlNLziF9Em+bXvGaVpcxN6/0SNrv kIPQMXSLjTBsnatshhwS2bw5w+uTWgDq+KyWh7EVdQohekVxrYPXTGEe5L/zX+42FeG4 pDb2ww72ie+oA9HseAsunzEL5nM/chgNukES1VERWN0PD0cFODAF+hLgrDp+dtavffOS I8Q2EJ5ebDA7ay6eLIvvWaUo0GfA7j9Rem6pByZizW7u5r4dUmvHFyh/ixEoyjuElrhD eOYKlnZBJ/XX6UfwfRaSqZJSpcZLtZzIyspe/wbugryHypWMeEDesDAIEoGPWJMvdYVM 57yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gkc7AUaq; spf=pass (google.com: domain of linux-kernel+bounces-5975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t8-20020a1709028c8800b001d08be55d01si19829069plo.101.2023.12.19.13.38.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:38:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gkc7AUaq; spf=pass (google.com: domain of linux-kernel+bounces-5975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E0CF7B24270 for ; Tue, 19 Dec 2023 21:38:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28A683B2AD; Tue, 19 Dec 2023 21:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Gkc7AUaq" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4CE2D3A8DB; Tue, 19 Dec 2023 21:38:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A159C433C8; Tue, 19 Dec 2023 21:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703021897; bh=OTUYQIOoV+0YKQKbrrxB0SoB7Y//YH3bCks8wgeg91U=; h=From:Subject:Date:To:Cc:From; b=Gkc7AUaqKaN/KT+QKupBNCx6Q6ja1xYr973gIT7ENGaK+bkOl4CMgrdIZUVrKnzNX Uyd3XIff9fMlEe9QOzydvKbS+s4CRXMI7b8AEKk2qA6TjMcBjXxgfOQ7Oqzxnvol2s okc6jKgTccOTE2OGMqJaf4HH2XHR0W0BgcWEqs8SGFyla7bOelARtDk5P4NndAGC1m 3/S7VWotqWk0n+rbm/pPLemMFyHggL4gUsmjXHJZB0iib7+TDuk0b5TyaZXJcW2UfI h8H3ZonCr+5MhahMeBrUL6mjjph37QxJ6mpRjfnd6DRGXvFjDQeWUfPeZy9+CLc4Yw pY2GVgpSH+HIA== From: Matthieu Baerts Subject: [PATCH net-next 0/4] mptcp: cleanup and support more ephemeral ports sockopts Date: Tue, 19 Dec 2023 22:31:03 +0100 Message-Id: <20231219-upstream-net-next-20231219-mptcp-sockopts-ephemeral-ports-v1-0-2b13bedfcaf8@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJcLgmUC/z2NQQrCMBBFr1Jm7YCT2qJeRboIcbRBkwwzUQqld zcIuviLx4f3VjDWyAbnbgXld7RYcgPadRBmn++M8doY3N715OiEL7Gq7BNmrm1Lxf+VpAZBK+F RpBqyzJxY/ROlaOPxMAzO8bGnkaD5RfkWl2/7Aj8bTNv2AaDe25KVAAAA To: mptcp@lists.linux.dev, Mat Martineau , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Matthieu Baerts , Davide Caratti , Maxim Galaganov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1224; i=matttbe@kernel.org; h=from:subject:message-id; bh=OTUYQIOoV+0YKQKbrrxB0SoB7Y//YH3bCks8wgeg91U=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBlgg1GgJ2hrXIcmnM6OfCZnROIMuN6eedUzJXtc CC6277Z1R6JAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZYINRgAKCRD2t4JPQmmg cx0eD/9xC9Pfdlve6uheSVii3I4/4GqaRLnXpZQyN9x1/nrmfzHGSiHh41ttRd50K8VTmlJ2USS W02ur6sGocBW0/nTw+nF+Zoe7lGCMPoQMqfBcpjMMi00JQzcUStW+smQghN2QQQYsI+SaMY3/L3 5rb3GeqslJePZQYDbw4Bn2pZVmECWvIKcVm06IKsXdVCY+XDW77vWpEAOpa5HjA8EyNT7/ePpry K6+pULHEwEi78cprUxkFm0dyuFJu95JVrNWqXiao7L/IVhEJPWj3z2GCHk42+jIV8Wcuk+dOMug MwfjWeXkheVUvg5MTsu3N17dRYqmwTkQFbO4la66UcIwxVj6k24S3liC6bRiw5rE/7fNdp05GR1 TKRIH/EY3pnBsYTRat+u6TNZCXAEQgliN5W2uszBsXXCgbX1UVrlCIKQqDKrgBIsA4zkP4wNdSn WVuIxlHHX7KgDbL7CQ6HrSqjIlf3mq3arsvURzWmWUDPyixbI836H6l57dYPgUg38JYqB2L/p2b MHvWDinffxoy4xo27oRY/JRefeqRtvqvCx0Wf3/P7kL/hm3UlbFERoR2TSpg9v6JCtZfCaUzN6z hd/nsc6rhUjSMYb5UNA3BMZuJnF5ar02jVwH/1Ddc9i27kj33xyCSdrYTjdhjiTePrl4HPnQRLz h/koSFzxkEEe1Ig== X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 Patch 1 is a cleanup one: mptcp_is_tcpsk() helper was modifying sock_ops in some cases which is unexpected with that name. Patch 2 to 4 add support for two socket options: IP_LOCAL_PORT_RANGE and IP_BIND_ADDRESS_NO_PORT. The first one is a preparation patch, the second one adds the support while the last one modifies an existing selftest to validate the new features. Signed-off-by: Matthieu Baerts --- Davide Caratti (1): mptcp: don't overwrite sock_ops in mptcp_is_tcpsk() Maxim Galaganov (3): mptcp: rename mptcp_setsockopt_sol_ip_set_transparent() mptcp: sockopt: support IP_LOCAL_PORT_RANGE and IP_BIND_ADDRESS_NO_PORT selftests/net: add MPTCP coverage for IP_LOCAL_PORT_RANGE net/mptcp/protocol.c | 108 +++++++++------------- net/mptcp/sockopt.c | 27 +++++- tools/testing/selftests/net/ip_local_port_range.c | 12 +++ 3 files changed, 79 insertions(+), 68 deletions(-) --- base-commit: 62ed78f3baff396bd928ee77077580c5aa940149 change-id: 20231219-upstream-net-next-20231219-mptcp-sockopts-ephemeral-ports-645522e83161 Best regards, -- Matthieu Baerts