From patchwork Tue Sep 7 19:35:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dichtel X-Patchwork-Id: 12479273 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 B14AFC433EF for ; Tue, 7 Sep 2021 19:42:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 948D6610F8 for ; Tue, 7 Sep 2021 19:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345746AbhIGTnj (ORCPT ); Tue, 7 Sep 2021 15:43:39 -0400 Received: from host.78.145.23.62.rev.coltfrance.com ([62.23.145.78]:47049 "EHLO proxy.6wind.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229574AbhIGTnb (ORCPT ); Tue, 7 Sep 2021 15:43:31 -0400 X-Greylist: delayed 422 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Sep 2021 15:43:30 EDT Received: from bretzel (unknown [10.16.0.57]) by proxy.6wind.com (Postfix) with ESMTPS id 503A6B29A9E; Tue, 7 Sep 2021 21:35:21 +0200 (CEST) Received: from dichtel by bretzel with local (Exim 4.92) (envelope-from ) id 1mNgsL-0004IB-8h; Tue, 07 Sep 2021 21:35:21 +0200 From: Nicolas Dichtel To: steffen.klassert@secunet.com, davem@davemloft.net, kuba@kernel.org, antony.antony@secunet.com Cc: netdev@vger.kernel.org, Nicolas Dichtel Subject: [PATCH ipsec 0/2] xfrm: fix uapi for the default policy Date: Tue, 7 Sep 2021 21:35:07 +0200 Message-Id: <20210907193510.16487-1-nicolas.dichtel@6wind.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <9b0ddb88-c7d3-9bb6-48f2-1967425b3fc7@6wind.com> References: <9b0ddb88-c7d3-9bb6-48f2-1967425b3fc7@6wind.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This feature has just been merged after the last release, thus it's still time to fix the uapi. As stated in the thread, the uapi is based on some magic values (from the userland POV). Here is a proposal to simplify this uapi and make it clear how to use it. The other problem was the notification: changing the default policy may radically change the packets flows. Nicolas Dichtel (2): xfrm: make user policy API complete xfrm: notify default policy on update include/uapi/linux/xfrm.h | 9 ++++-- net/xfrm/xfrm_user.c | 58 +++++++++++++++++++++++++++++++++------ 2 files changed, 55 insertions(+), 12 deletions(-) Comments are welcome, Nicolas