From patchwork Wed Apr 14 16:12:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Westphal X-Patchwork-Id: 12203315 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 23E63C433ED for ; Wed, 14 Apr 2021 16:13:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD52661179 for ; Wed, 14 Apr 2021 16:13:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351576AbhDNQN2 (ORCPT ); Wed, 14 Apr 2021 12:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351520AbhDNQN1 (ORCPT ); Wed, 14 Apr 2021 12:13:27 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84448C061574 for ; Wed, 14 Apr 2021 09:13:05 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1lWi8U-0005rD-Cx; Wed, 14 Apr 2021 18:13:02 +0200 From: Florian Westphal To: Cc: steffen.klassert@secunet.com, davem@davemloft.net, kuba@kernel.org, herbert@gondor.apana.org.au, Florian Westphal Subject: [PATCH ipsec-next 0/3] xfrm: minor cleanup and synchronize_rcu removal Date: Wed, 14 Apr 2021 18:12:50 +0200 Message-Id: <20210414161253.27586-1-fw@strlen.de> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org First patch gets rid of SPI key from flowi struct. xfrm_policy populates this but there are no consumers. This is part of a different patch (not part of this) to replace xfrm_decode_session internals with the flow dissector. Second patch removes a synchronize_rcu/initialisation in the init path. Third patch avoids a synchronize_rcu during netns destruction. Florian Westphal (3): flow: remove spi key from flowi struct xfrm: remove stray synchronize_rcu from xfrm_init xfrm: avoid synchronize_rcu during netns destruction include/net/flow.h | 3 --- net/xfrm/xfrm_policy.c | 42 ------------------------------------------ net/xfrm/xfrm_user.c | 10 +++++++--- 3 files changed, 7 insertions(+), 48 deletions(-)