Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (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 154CC1B5EB1 for ; Mon, 9 Sep 2024 11:01:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879678; cv=none; b=J8VPFyEvS6Tg5FXvPQUN/K5ZjcRLqlIy+Nedzt3Q9LFfaqx0EE6Lolucs5HiJt13Ad9vnKO/izpe8S/HFJo29aOBB9QYGlWejV0EdWk251FyIOgAarsrPTAAVxelR/nj/YakrHnY+dqnr5zI+5rSKGXAqCc6AfBbIIeVQY88agU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879678; c=relaxed/simple; bh=8zfTxnNihtDUO3V9f4OtBR4610dCCe5Yona4CKJg/g8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rldi8Ic8TtShlhs01zyrFoHwU7C7CZHSpDg1JG8BhksnogSxdYwK7zXKZ7z88/4KHdli3ZXJxeUuEKHRTF9anhCbNLQPcKFzMhfzc9IESFc20O9WK6jtATskUYMMj0JVlIqKRJzzQUuAMGp7Cu6Xa1jh7HyQu0xpOlB+5UdAcUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.client-ip=91.216.245.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1snc8t-00053n-Qd; Mon, 09 Sep 2024 13:01:11 +0200 Date: Mon, 9 Sep 2024 13:01:11 +0200 From: Florian Westphal To: Steffen Klassert Cc: David Miller , Jakub Kicinski , Herbert Xu , netdev@vger.kernel.org Subject: Re: [PATCH 06/11] xfrm: switch migrate to xfrm_policy_lookup_bytype Message-ID: <20240909110111.GB19195@breakpoint.cc> References: <20240909100328.1838963-1-steffen.klassert@secunet.com> <20240909100328.1838963-7-steffen.klassert@secunet.com> 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: <20240909100328.1838963-7-steffen.klassert@secunet.com> User-Agent: Mutt/1.10.1 (2018-07-13) Steffen Klassert wrote: > From: Florian Westphal > > XFRM_MIGRATE still uses the old lookup method: > first check the bydst hash table, then search the list of all the other > policies. > > Switch MIGRATE to use the same lookup function as the packetpath. > > This is done to remove the last remaining users of the pernet > xfrm.policy_inexact lists with the intent of removing this list. > > After this patch, policies are still added to the list on insertion > and they are rehashed as-needed but no single API makes use of these > anymore. > > This change is compile tested only. This needs following fixup: https://patchwork.kernel.org/project/netdevbpf/patch/20240830143920.9478-1-fw@strlen.de/