From patchwork Mon Sep 18 12:59:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Westphal X-Patchwork-Id: 13389585 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 31E921D53C for ; Mon, 18 Sep 2023 13:02:04 +0000 (UTC) Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8B081AB for ; Mon, 18 Sep 2023 05:59:33 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qiDqc-00073Y-2T; Mon, 18 Sep 2023 14:59:30 +0200 From: Florian Westphal To: Cc: nharold@google.com, lorenzo@google.com, benedictwong@google.com, steffen.klassert@secunet.com, herbert@gondor.apana.org.au, Florian Westphal Subject: [PATCH ipsec-next 0/2] xfrm: policy: replace session decode with flow dissector Date: Mon, 18 Sep 2023 14:59:07 +0200 Message-ID: <20230918125914.21391-1-fw@strlen.de> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Remove the ipv4+ipv6 session decode functions and use generic flow dissector to populate the flowi for the policy lookup. Changes since RFC: - Drop mobility header support. I don't think that anyone uses this. MOBIKE doesn't appear to need this either. - Drop fl6->flowlabel assignment, original code leaves it as 0. There is no reason for this change other than to remove code. Florian Westphal (2): xfrm: move mark and oif flowi decode into common code xfrm: policy: replace session decode with flow dissector Florian Westphal (2): xfrm: move mark and oif flowi decode into common code xfrm: policy: replace session decode with flow dissector net/xfrm/xfrm_policy.c | 277 ++++++++++++++++------------------------- 1 file changed, 107 insertions(+), 170 deletions(-) Reviewed-by: Simon Horman