From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from a.mx.secunet.com (a.mx.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 08C212032C for ; Thu, 11 Apr 2024 07:22:13 +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=1712820136; cv=none; b=iN79sbWOMzZl1GkzqgK52uGHJHPXo9hxykCXNkQreRPBAa+BiljimRf4/uIbdwnbHPTHGmMoEsWfX8pq6lCSnHGkq/pIJ4tjleT6GE7HNWNAtBcPXGjpYQCLpj0UB5tMtxbsAp8zM7HPGIvSs16oroNEvSFXQNjE5CWINLHUzVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712820136; c=relaxed/simple; bh=wAy2mgRFGi7SO7hXDx/ZQ9k6jkBEF3hbQxeA0Fe7zSM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YidewlROZJyrSq9cvsFbFYDFY7f7bk6rnndvoYd8+d0s9gAsqcXQCwxU1KPez+7I+fzlIRbW38nCR07ohbxz6gXI/ZZjmhv3XeHjqsYyBQGJpEw+fHpNQu/mgtrUddNFGjcXbpzu4hsqu1PqjcfQriHH9SB2gUdeWIEaKLxgjIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (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=K7yNbFB0; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (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="K7yNbFB0" Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id EAC9B205ED; Thu, 11 Apr 2024 09:22:11 +0200 (CEST) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zkWuszkXaNwj; Thu, 11 Apr 2024 09:22:11 +0200 (CEST) Received: from mailout2.secunet.com (mailout2.secunet.com [62.96.220.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 6E42A2083F; Thu, 11 Apr 2024 09:22:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 a.mx.secunet.com 6E42A2083F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1712820131; bh=bqv9WAE1TYY2u/UYCURTBW44xaOiUWCc3q/aUJzjJrI=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=K7yNbFB0O5zg5EpfhRyl/wRdGOsJgHARLiyzVzZdRoHGn6m6qtqpArKURBwrD77zo 5ZgkCP8WrouJk8tc/QDH63eIvK4QeNKSg4SD2s0szx9Ab357vv8M3jm9jndJhNw/RA q2k59H7X08ZoKktCIG4WKZwUJT9sGGl9Jj0rAq1cFnJdcksPwv13GeQBxJVHw7joBg WkC1wqeFB3gd+B9IbjHiWosmQS4WrgcRREYaFqSYYB7e4UV0VWwD7JbHqaos1xV/2l blwJxTBQC7t7Fx+UXnX0S05QoQGkQeyOvXmgo1/bM7JMOP5fPsCmgg4cskvfnuUo1C 2exld7xOAUIhA== Received: from cas-essen-01.secunet.de (unknown [10.53.40.201]) by mailout2.secunet.com (Postfix) with ESMTP id 6273380004A; Thu, 11 Apr 2024 09:22:11 +0200 (CEST) Received: from mbx-essen-01.secunet.de (10.53.40.197) by cas-essen-01.secunet.de (10.53.40.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 11 Apr 2024 09:22:11 +0200 Received: from gauss2.secunet.de (10.182.7.193) by mbx-essen-01.secunet.de (10.53.40.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Thu, 11 Apr 2024 09:22:10 +0200 Received: by gauss2.secunet.de (Postfix, from userid 1000) id B1DB3318093A; Thu, 11 Apr 2024 09:22:10 +0200 (CEST) Date: Thu, 11 Apr 2024 09:22:10 +0200 From: Steffen Klassert To: Nicolas Dichtel CC: Sabrina Dubroca , , "Herbert Xu" , , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , Leon Romanovsky , Eyal Birger Subject: Re: [PATCH ipsec-next v9] xfrm: Add Direction to the SA in or out Message-ID: References: <0a51d41e-124e-479e-afd7-50246e3b0520@6wind.com> <1909116d-15e1-48ac-ab55-21bce409fe64@6wind.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="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1909116d-15e1-48ac-ab55-21bce409fe64@6wind.com> X-ClientProxiedBy: cas-essen-01.secunet.de (10.53.40.201) To mbx-essen-01.secunet.de (10.53.40.197) On Wed, Apr 10, 2024 at 10:37:27AM +0200, Nicolas Dichtel wrote: > Le 10/04/2024 à 10:17, Sabrina Dubroca a écrit : > [snip] > >> Why isn't it possible to restrict the use of an input SA to the input path and > >> output SA to xmit path? > > > > Because nobody has written a patch for it yet :) > > > For me, it should be done in this patch/series ;-) I tend to disagree here. Adding the direction as a lookup key is IMO beyond the scope of this patch. That's complicated and would defer this series by months. Given that the upcomming IPTFS implementation has a lot of direction specific config options, it makes sense to take that this patch now. Otherwise we have the direction specific options in input and output states forever.