From mboxrd@z Thu Jan 1 00:00:00 1970 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 9F5D03D84 for ; Mon, 5 Jun 2023 08:48:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1A3DC4339B; Mon, 5 Jun 2023 08:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685954913; bh=r7DZ8gVQGOOHQS36hOyXNHcgFOD1Ygtq9SHGWVHQGLU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ch1tY9BXrV90YZ55bt/OC05fFxYK3sk8hK2Ju/+ic0JxDoIRWKkDgD1n7l2KDfDAE IhfzgtuGpx3oHjLZxVZ6ac2TbjBNiib3tRGR3mGnlTpZGAA/ff1vpEvWcPs8HweE9C TNbo265gT/ZtVcYq2MbUsUDRbhJfgbUO0oA6BWTey6X6qbc5/9y2vOe5kaqSGbmzSe Qd9E2O4He7dHip7g1aXJId6+ZwZd5ytzfsHdfF2oCNfrMPVsnq7LYcVgvsRUWL9kV/ oe5I57mtd/llyHp3kNP4pypTZBwg1cYreiZa2Q4/UbQXpRdDv6ckDOHV7POBr/HXas p5yAiB+QMk95Q== Date: Mon, 5 Jun 2023 11:48:29 +0300 From: Leon Romanovsky To: Herbert Xu Cc: Steffen Klassert , "David S. Miller" , Eric Dumazet , Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni Subject: Re: [PATCH ipsec-next] xfrm: delete not-needed clear to zero of encap_oa Message-ID: <20230605084829.GB22489@unreal> References: <1ed3e00428a0036bdea14eb4f5a45706a89f11eb.1685952635.git.leon@kernel.org> <20230605083456.GA22489@unreal> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jun 05, 2023 at 04:36:31PM +0800, Herbert Xu wrote: > On Mon, Jun 05, 2023 at 11:34:56AM +0300, Leon Romanovsky wrote: > > > > The line "memset(&natt->encap_oa, 0, sizeof(natt->encap_oa));" deleted > > in this patch was the last reference to encap_oa. > > I don't see the point since you're not removing the actual encap_oa > field. It is impossible to remove encap_oa because it is declared as UAPI. Unless you want to support some out-of-tree code, uep->encap_oa will be always zero. Thanks > > Cheers, > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt