From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (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 3039F1EB5C2; Sat, 17 Jan 2026 19:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.96.220.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768679916; cv=none; b=hHhMVbiJcQwbe+A4xEyctqaD07EqmmPTzDZEFtmuLhuyAPiSECBrEYfHWDIUH4+9q8+AZMSUrvb0nB+/Ir6WTbioaP5FSDRXpeYApcoC+YOJJ5mHSV+04/sgw+ywXamRAF6iWeprJ8vE1Qad7BmRpXSDCwU8e+u4u6B6ZiSf7HQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768679916; c=relaxed/simple; bh=Tr4xu/PwhnYHf4/Lsag14Rbls96NnKkL3ksMbIp6iMM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=soKjuLWOGxT1DO5nuUrO/aRwwwYBWhknDQLBBWJIrgz2TzrYXGRKiNKz3R3DzRdnFPKr9nxcSH6Wvs97M+dDRFvwZ1XZ4267xlUH7UGI64eK60zhWCkQOY3waJxmaLIf2O/z7IuvOTLTqLWbtviOigkIW2F9C1FKNDQVJzgXkvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b=XV95wywm; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b="XV95wywm" Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id 0DAA82085A; Sat, 17 Jan 2026 20:58:25 +0100 (CET) X-Virus-Scanned: by secunet Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dB4qMyJEu88H; Sat, 17 Jan 2026 20:58:24 +0100 (CET) Received: from EXCH-02.secunet.de (rl2.secunet.de [10.32.0.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id 6DC0020799; Sat, 17 Jan 2026 20:58:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 6DC0020799 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1768679904; bh=M4Nla2joKWRdPpDutpkmM+vQsJhrlwnFprMz6Y88qKI=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=XV95wywmK+jZLH+0p7pr6JL5lKGgdcF/e+FNX1auuVIRu6IjIunJ5zdIZW1NTe0P1 T5pTpP5FNH/DT20pGyW1uzld3wYjxWAWnjRGm8yscNqH+Y8yIpGQOI766HG5o+X+a2 DE1UhbEv8Vi59kttK0cbddAEOmZuT85vHBent7IsKsYNbrq4+U9C+U/nvCSDQuYqz0 BtwNSNnpTcBn5JuswZ2OT+TMcSPIWdiK3ntgClb+m2mh6chntnFx4CkEj038D2S1Ei X14WDcz+t6HNNGlws5OfuYqRvFMcpp33iCdkjSqAW6CG6SfRnpxrTTQMMmt7jubc4F LlnGYmABlYFBA== Received: from moon.secunet.de (172.18.149.1) by EXCH-02.secunet.de (10.32.0.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Sat, 17 Jan 2026 20:58:23 +0100 From: Antony Antony To: Antony Antony , Steffen Klassert , Herbert Xu , CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Chiachang Wang , Yan Yan , , Simon Horman , Subject: [PATCH ipsec-next v2 1/4] xfrm: remove redundant assignments Date: Sat, 17 Jan 2026 20:58:05 +0100 Message-ID: X-Mailer: git-send-email 2.39.5 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EXCH-02.secunet.de (10.32.0.172) To EXCH-02.secunet.de (10.32.0.172) This assignments are overwritten within the same function further down commit e8961c50ee9cc ("xfrm: Refactor migration setup during the cloning process") x->props.family = m->new_family; Which actually moved it in the commit e03c3bba351f9 ("xfrm: Fix xfrm migrate issues when address family changes") And the initial commit 80c9abaabf428 ("[XFRM]: Extension for dynamic update of endpoint address(es)") added x->props.saddr = orig->props.saddr; and memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); Signed-off-by: Antony Antony -- v1->v2: remove extra saddr copy, previous line --- net/xfrm/xfrm_state.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 9e14e453b55c..4fd73a970a7a 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1980,8 +1980,6 @@ static struct xfrm_state *xfrm_state_clone_and_setup(struct xfrm_state *orig, x->props.mode = orig->props.mode; x->props.replay_window = orig->props.replay_window; x->props.reqid = orig->props.reqid; - x->props.family = orig->props.family; - x->props.saddr = orig->props.saddr; if (orig->aalg) { x->aalg = xfrm_algo_auth_clone(orig->aalg); -- 2.39.5 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (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 7AB3B2E0925; Sat, 17 Jan 2026 20:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.96.220.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768680009; cv=none; b=MugKBysp9VNSNgmXNWcmNmK33etjRzOz9t1ZlDrFQyvkGFKpASeyztAkJb886r54uVXdiM2585TQ9K+gxmEjkV2NgRD6l+6xjGvOgQLR28arna4xd+nmv9xC96457DX/ZXVmuwz9uFHOA/8P7pwzLM/IfFaA3yfdCWJEqoSBV2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768680009; c=relaxed/simple; bh=Tr4xu/PwhnYHf4/Lsag14Rbls96NnKkL3ksMbIp6iMM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jbxA4tGKMZNpaPhENTlp6M91S6seQL81Z4hc59JQyo3UpdhNuR9DDQt98ok/SVNfL6H7z4zYFmXG8MN83mcZ58hKAdCn4tdZuuloixASbDZROK6K5VrMVqSV6iWqJYaulkPaINf86o0Rj2O3weL3s/gtjWAjhfrMDN0Bih1vhIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b=POmdBRPO; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b="POmdBRPO" Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id 8F1382085A; Sat, 17 Jan 2026 21:00:05 +0100 (CET) X-Virus-Scanned: by secunet Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MxEhrdZXHNpq; Sat, 17 Jan 2026 21:00:05 +0100 (CET) Received: from EXCH-02.secunet.de (rl2.secunet.de [10.32.0.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id 1225220799; Sat, 17 Jan 2026 21:00:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 1225220799 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1768680005; bh=M4Nla2joKWRdPpDutpkmM+vQsJhrlwnFprMz6Y88qKI=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=POmdBRPO52zih3dBRi/93G+zII4Yj8wgo6/1xyLG5najcDNUabqrMxlOfqHX1xeBe l5NhIo+ti5PHgtw4Ef+AmsiEWjB6CY6FYz8kwwaeImyK695VG3ag3WuCUwXijjf4/a tsb/SawsLFIUS474z2hMesStdqGa4K5z0qZQ0pI20Avk2qa9Y1GED/XqBzz+ooZr00 JbIF/mm92rIMY1LpuIN9Olf5ugyhyFMa8MMYaGOnaTELW8/7ZbkuOmZfPinW9pNIBo eZUpv8JYHLNrwlddjFrOq9Hw8Y9T6axbxEl213CcvnVDPEO9G3OLEMxyniRM5sYLkW s+iNj6YTZW44g== Received: from moon.secunet.de (172.18.149.1) by EXCH-02.secunet.de (10.32.0.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Sat, 17 Jan 2026 21:00:04 +0100 From: Antony Antony To: Antony Antony , Steffen Klassert , Herbert Xu , CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Chiachang Wang , Yan Yan , , Simon Horman , Subject: [PATCH ipsec-next v2 1/4] xfrm: remove redundant assignments Date: Sat, 17 Jan 2026 20:59:50 +0100 Message-ID: X-Mailer: git-send-email 2.39.5 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EXCH-02.secunet.de (10.32.0.172) To EXCH-02.secunet.de (10.32.0.172) Message-ID: <20260117195950.GgoX123H5BqHJl6VaibTFq3UkKhsf6dowg6EXy6JOoA@z> This assignments are overwritten within the same function further down commit e8961c50ee9cc ("xfrm: Refactor migration setup during the cloning process") x->props.family = m->new_family; Which actually moved it in the commit e03c3bba351f9 ("xfrm: Fix xfrm migrate issues when address family changes") And the initial commit 80c9abaabf428 ("[XFRM]: Extension for dynamic update of endpoint address(es)") added x->props.saddr = orig->props.saddr; and memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); Signed-off-by: Antony Antony -- v1->v2: remove extra saddr copy, previous line --- net/xfrm/xfrm_state.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 9e14e453b55c..4fd73a970a7a 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1980,8 +1980,6 @@ static struct xfrm_state *xfrm_state_clone_and_setup(struct xfrm_state *orig, x->props.mode = orig->props.mode; x->props.replay_window = orig->props.replay_window; x->props.reqid = orig->props.reqid; - x->props.family = orig->props.family; - x->props.saddr = orig->props.saddr; if (orig->aalg) { x->aalg = xfrm_algo_auth_clone(orig->aalg); -- 2.39.5 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (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 99AEF2417F0; Sat, 17 Jan 2026 20:06:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.96.220.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768680397; cv=none; b=ettyx3oMLADFddrIwP8K7J8kCKqnPNM38nUe0w5RYDtdCeWD7b1ts6iE6afkfrtNnbSBLQbgTdiNbMlkmayiyoHq3uwP+k28R98Zv+5//JuqYQ693JbvtpRexG6hfOXpId/cnRXsNEGuRsMrGDwcW49r5Ugp+d1jlDFdJuWnG2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768680397; c=relaxed/simple; bh=McBfmnnEkA+VZYmqzhNi4kRUbW9eYfFWPDIlaRVdc2A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XjwBKpkbckaO2NHt6xpD9XjQaLaGPa98zs0t9g2fT2Y6p2hwWK2DPnqKPLcJlnUk5R+zIaqux57pEiWxOSYvLFfzelT8a33u/WwGiYmBAukQhNIAfeJI2eA6c13j2z1/HDdXwN+cwj5yVZu1MWz2KE0DWLpPjBHs3ps3U2+1Ezk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b=EmufzurN; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b="EmufzurN" Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id AFA612085A; Sat, 17 Jan 2026 21:06:33 +0100 (CET) X-Virus-Scanned: by secunet Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bPi8zy-_4fBp; Sat, 17 Jan 2026 21:06:33 +0100 (CET) Received: from EXCH-02.secunet.de (rl2.secunet.de [10.32.0.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id 2E8D620799; Sat, 17 Jan 2026 21:06:33 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 2E8D620799 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1768680393; bh=5BQ439mslfuweEeq26rQ7YLVOhzXbgR+eNZ0ziniS8Q=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=EmufzurNFjkAHqbqpgCNMtgzeJhidyh4JRG04yHMthLyrgwGs1AiYXzqoZZVhiTC2 YVDT7y9DzT/F6X3NhwhkrGJPTZvDE3BhcLgJ+xgEF+Rrk257yi9DffGvieblH5hZjM BGGbWNHFlvO9OYJ/OZMzXmZ8JQKQdSWuV76lZmmAXRg/3bgUPxYLX2n8tsnA9YUMjZ OsGTYlmLNrRm860x66t161NCU+4etVKmqCDwYu8pHwxc+WbutToh35YRVSb5ytJWJ7 C4EGYAq4LixuE3mBaw7l7DFTLnJbnqFI78WQS4Cs8JDfCWaUpBp6cHFQDknOJV3TMa Ry5+EwvpecCeg== Received: from moon.secunet.de (172.18.149.1) by EXCH-02.secunet.de (10.32.0.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Sat, 17 Jan 2026 21:06:32 +0100 From: Antony Antony To: Antony Antony , Steffen Klassert , Herbert Xu , CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Chiachang Wang , Yan Yan , , Simon Horman , Subject: [PATCH ipsec-next v2 1/4] xfrm: remove redundant assignments Date: Sat, 17 Jan 2026 21:06:19 +0100 Message-ID: X-Mailer: git-send-email 2.39.5 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EXCH-01.secunet.de (10.32.0.171) To EXCH-02.secunet.de (10.32.0.172) Message-ID: <20260117200619.7cNqWIMPCuFlcz3EW6vzb14dkfLaiqvTV2eFuuSPUes@z> This assignments are overwritten within the same function further down commit e8961c50ee9cc ("xfrm: Refactor migration setup during the cloning process") x->props.family = m->new_family; Which actually moved it in the commit e03c3bba351f9 ("xfrm: Fix xfrm migrate issues when address family changes") And the initial commit 80c9abaabf428 ("[XFRM]: Extension for dynamic update of endpoint address(es)") added x->props.saddr = orig->props.saddr; and memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); Signed-off-by: Antony Antony --- v1->v2: remove extra saddr copy, previous line --- net/xfrm/xfrm_state.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 9e14e453b55c..4fd73a970a7a 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1980,8 +1980,6 @@ static struct xfrm_state *xfrm_state_clone_and_setup(struct xfrm_state *orig, x->props.mode = orig->props.mode; x->props.replay_window = orig->props.replay_window; x->props.reqid = orig->props.reqid; - x->props.family = orig->props.family; - x->props.saddr = orig->props.saddr; if (orig->aalg) { x->aalg = xfrm_algo_auth_clone(orig->aalg); -- 2.39.5