From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFE78C48BE0 for ; Fri, 11 Jun 2021 10:50:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE3F2613F3 for ; Fri, 11 Jun 2021 10:50:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbhFKKwX (ORCPT ); Fri, 11 Jun 2021 06:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbhFKKwW (ORCPT ); Fri, 11 Jun 2021 06:52:22 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28C5C061574 for ; Fri, 11 Jun 2021 03:50:24 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1lrek2-0007hl-0Q; Fri, 11 Jun 2021 12:50:22 +0200 From: Florian Westphal To: Cc: steffen.klassert@secunet.com, herbert@gondor.apana.org.au, Florian Westphal Subject: [PATCH ipsec-next v2 0/5] xfrm: ipv6: remove hdr_off indirection Date: Fri, 11 Jun 2021 12:50:09 +0200 Message-Id: <20210611105014.4675-1-fw@strlen.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org v2: fix build failure with MIP6=y in last patch. IPV6 xfrm moves mutable extension headers to make space for the encapsulation header. For Mobile ipv6 sake this uses an indirect call (ipv6 can be built as module). These patches remove those indirections by placing a small parsing function in the xfrm core. While at it, the merged dstopt/rt hdroff function is realigned with ip6_find_1stfragopt (where they were copied from). ip6_find_1stfragopt received bug fixes that were missing from the cloned ones. Florian Westphal (5): xfrm: ipv6: add xfrm6_hdr_offset helper xfrm: ipv6: move mip6_destopt_offset into xfrm core xfrm: ipv6: move mip6_rthdr_offset into xfrm core xfrm: remove hdr_offset indirection xfrm: merge dstopt and routing hdroff functions include/net/xfrm.h | 3 -- net/ipv6/ah6.c | 1 - net/ipv6/esp6.c | 1 - net/ipv6/ipcomp6.c | 1 - net/ipv6/mip6.c | 97 ----------------------------------------- net/ipv6/xfrm6_output.c | 7 --- net/xfrm/xfrm_output.c | 79 ++++++++++++++++++++++++++++++++- 7 files changed, 77 insertions(+), 112 deletions(-) -- 2.31.1