Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp198588rdb; Tue, 19 Dec 2023 13:49:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0smnHt4PqkJtTyVq1rOudUZbmY0dV6d1tylE0v6XBrLAGow5DNmGiOGrCbeknvJc8q4pq X-Received: by 2002:a05:6e02:16cb:b0:35d:9344:b033 with SMTP id 11-20020a056e0216cb00b0035d9344b033mr24190111ilx.12.1703022545559; Tue, 19 Dec 2023 13:49:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703022545; cv=none; d=google.com; s=arc-20160816; b=PtK35u/ohtBBd/N7pTdiJ/d43UpwUjPNaoOvI5IbYqnBszrGfe6xuPvHYt3sbwe/2C P6wH3l515MfqsUbzn2xUVnOgi0R87nU0lFn10t+UW/FDRavcYGTmEEbv0Yo3HaYvRxWU Szqdm42tGEnOB3zpnMlbBrEnnSSXY3pHRgpqofaHLxPzSK4biiRg3BJdbDyyUyFFXoQZ CsrRJXmwOT/+7T17zFXBOAU70bABOrR9TcyhChut6f8yYTLiiCnJUqXrksD7u6HzCdLk hu56TmjOevM3bx84Z4+Ala9xCvN2bcvq3KQ3cYNl2uV+awPmvkRWj19VUkyA8MZPC+Ck dclw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=9SD1pldbCZggPK+J+yWKry2bq8z7UC6Gl4i+8+cxlEY=; fh=aOwBygz+wKB3128x8oB/xLQze0DGN0/RLCJBUjfqRNQ=; b=DtcQ8aQnyJQm+//bVaq6HXSppjSbScpZdzDuw9S+gpn1hME2zNz2T5cM2DRQhqHfg0 qVVYhPHTEVVYsjUpjs7QBYrJraaBQ+ndKX78J66Pn8Iu6LQPkAoc4m3/3+ANUCRMaySU jPphmCvRhWKQPFjWED4OdESMlodMRVBPSG6kL1DnACM0NT8QfqAus3ZVggOlkU7gkGgu A/SfPL3dBg9M1S2lqBn9weBB7NIrKQF04zRnej97ERAJZQ3qpKFADPgtI5ByKGDi82Yw AyxyeWpISgwyT4iVlOzCNimTRzxVIwaIjV4NumHjHZikPOhR1yNN/5fL4FySo+Bb9ff9 BiGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CkKCl1TN; spf=pass (google.com: domain of linux-kernel+bounces-5977-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z64-20020a636543000000b005cd8938b10csi5570634pgb.631.2023.12.19.13.49.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:49:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5977-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CkKCl1TN; spf=pass (google.com: domain of linux-kernel+bounces-5977-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5977-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 35D35289111 for ; Tue, 19 Dec 2023 21:39:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B58D3D3A3; Tue, 19 Dec 2023 21:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CkKCl1TN" 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 4385C3D0D4; Tue, 19 Dec 2023 21:38:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C031CC433C9; Tue, 19 Dec 2023 21:38:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703021904; bh=aBjfw6fT7ns+cc6CISw+cYXM6DUUWWc2pJdKMlpk6Cs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CkKCl1TNYdbOkyCjQmBr7REKoe0KAojB26oGv6kloSJ0yKCjpJpIDIZNq+ZgTFdFp +p96bDLLf+SqLYSWIoomW9fksc7WzWLxgXM3dRvxT0O077MLEh6u7LF+jFxSBzKVzX rbckGuCpHc2BiBORyG+BB+3+dYneTqldA5+hizQdoHLJHHhjxNu5CbbI54Ck/n94AU zsnvDNVEcFb+NYaTSjKuNa9vs/OICm/sQOABGgH4DAjssoypiMzC1Hn5itPaZrE425 cI4xWlDFaMmFezKR70BJ8MWxW6ZgWx+F2kYpBwN3KEqzBkuBxivCm50komVPWni5Bq 8/UIFheBD+DNw== From: Matthieu Baerts Date: Tue, 19 Dec 2023 22:31:05 +0100 Subject: [PATCH net-next 2/4] mptcp: rename mptcp_setsockopt_sol_ip_set_transparent() 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 Message-Id: <20231219-upstream-net-next-20231219-mptcp-sockopts-ephemeral-ports-v1-2-2b13bedfcaf8@kernel.org> References: <20231219-upstream-net-next-20231219-mptcp-sockopts-ephemeral-ports-v1-0-2b13bedfcaf8@kernel.org> In-Reply-To: <20231219-upstream-net-next-20231219-mptcp-sockopts-ephemeral-ports-v1-0-2b13bedfcaf8@kernel.org> 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 , Maxim Galaganov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1404; i=matttbe@kernel.org; h=from:subject:message-id; bh=XEswUomoEVDRkr2zFcuVgd5ZmZS3x1/YVKLTXtSAG2Y=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBlgg1Gc19zG3z5FZc014YtOLHZwI0p6AgQkvKDA 0TQMeadrUaJAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZYINRgAKCRD2t4JPQmmg cx83D/9CIsHNlz8qyUptArMYLOswrCZAMJlfedxNZJJyOZxxm+ODAaGqkcyZOCbH4H8KUuQ6rba mxfsQKlbA3/+l4p40BD7l7Vx4LMub2DX9n+gmJQfGPd/hXlF+z56r/veTLruY9+n5K0IUhujCFu BzBqDqdmmAjtNpctgvxB0TjkVuZFGjaf4zQDqfDTck4DMwLy0wHl1zou8s2eym+JR69pQlipK0D r7oV/uuoVCJJub1bz/NVK/lUka/b7wKHdt2T0hLTM7ARjNEmZTmvjSYcsfFDaC7H05E2og9jeLG NfvZFOt9g15Q5d9d2GYSl2OvS+uXWQDYGaeS18pAaihETHuYxZiOmig8Hsc5kiQy8aNgtcUQ7TY 2s8SWc9ziu6j5wZqirVemi4Aay/X1XJiGBnVe7xqkyhRu0KKUK6pvqhchabkrW++nd6rXxTIiAW NSYuuOp/cNcmgV1S3/vXN43gJ/dV7EPH3/3UTlwrqBURTAmwEqSuyIPSq4KC4O2zHHJjLHmBcXu Sib2YLXKApgsaTmC19fSdVQ0ptFh6reEcqgK+qFSOsqSLvE0QUsaVkVIWVuEIF6Lk2ndK/lE5PQ Ioog4TYsNHrEDrwHOLO+aiL84la0YsRZkBQwi577lcMPWMxveYZlwbRQs1SKONKG/wX0WZqfGXG pcza2nO5ThCpt6A== X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 From: Maxim Galaganov Next patch extends this function so that it's not specific to IP_TRANSPARENT. Change function name to mptcp_setsockopt_sol_ip_set(). Reviewed-by: Mat Martineau Signed-off-by: Maxim Galaganov Signed-off-by: Matthieu Baerts --- net/mptcp/sockopt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/mptcp/sockopt.c b/net/mptcp/sockopt.c index cabe856b2a45..a4bf337e6f77 100644 --- a/net/mptcp/sockopt.c +++ b/net/mptcp/sockopt.c @@ -683,8 +683,8 @@ static int mptcp_setsockopt_sol_tcp_nodelay(struct mptcp_sock *msk, sockptr_t op return 0; } -static int mptcp_setsockopt_sol_ip_set_transparent(struct mptcp_sock *msk, int optname, - sockptr_t optval, unsigned int optlen) +static int mptcp_setsockopt_sol_ip_set(struct mptcp_sock *msk, int optname, + sockptr_t optval, unsigned int optlen) { struct sock *sk = (struct sock *)msk; struct sock *ssk; @@ -755,7 +755,7 @@ static int mptcp_setsockopt_v4(struct mptcp_sock *msk, int optname, switch (optname) { case IP_FREEBIND: case IP_TRANSPARENT: - return mptcp_setsockopt_sol_ip_set_transparent(msk, optname, optval, optlen); + return mptcp_setsockopt_sol_ip_set(msk, optname, optval, optlen); case IP_TOS: return mptcp_setsockopt_v4_set_tos(msk, optname, optval, optlen); } -- 2.40.1