Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3325910pxv; Mon, 26 Jul 2021 01:16:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDJgqPIimG7DTDwgdhtNc397NygHPJlV5jnCqo+9Vi45eMFD1NCZDjhGLTKz4bQuMTrNUt X-Received: by 2002:a92:c845:: with SMTP id b5mr12920861ilq.158.1627287361728; Mon, 26 Jul 2021 01:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627287361; cv=none; d=google.com; s=arc-20160816; b=ghUAeodgJFeGKMC5ns9j1oW9XhGjd/rFr961C269AeptH2I2zouDfUkzJrAF6+v+2D o/XJD6TWCy6lKm5wjAMaR4Up1O32rNM1xHaZl6ILfVxZjx817FgLAJf/atlFFHh0bFGc yH/4Bwrw/tOftckI9XQHhkoFv9l0l6zWKDHXdziUZwiXq/afUCipXKT4ex39RhSIx2Eo QWDQwx4Zn5bq1zpIuDlD4lXUST06/ZN8Jo/YY9+eMSe/0DxyxyhRafR0wrBY8P4RHRIi k46PpPP4sDR6gaRiIPfJcc4b6FjYZIg19EAZ/i91VmpVb0dlm4nExfb6G5b1vKdbvdA8 Ee3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hMWzKHpsfry7LGqA2XTaUpnehQYROhw4mr5QpxoANDY=; b=LSczHXGqppbHtZkyN5p/RtQmR/ndlYBGEsTL4rhqV+1AAiK6m8ghpZXpDyLFR0xSu2 T6cBCPD8LE9nYjfMuMPdIpzXeUoJfIMbDPSBf0mvvMCKbOXOYCzdYdVlolhD9ozbUdxQ XtXz8XqQSPpa+hFvJiHuq3ieDFMFIM6MOxBTTQcQDdvLaigCAq34x58bMGBw2Zdldqmm lCtSmD8hYP+VR8lhzk+OglubHRRcXWACcqWbrj4tcslSUKo1SRIzLbUgTh2ZsuxpMxca rcqPd7wPgOEWR5CEQB4dh+gNUMrJ6O2/FFlDOlv14Y9r5dg8ScG6jFDVTFbuPbf9KjIb brxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h29si32924742jav.81.2021.07.26.01.15.50; Mon, 26 Jul 2021 01:16:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233093AbhGZHdX (ORCPT + 99 others); Mon, 26 Jul 2021 03:33:23 -0400 Received: from mailout1.secunet.com ([62.96.220.44]:54776 "EHLO mailout1.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbhGZHdX (ORCPT ); Mon, 26 Jul 2021 03:33:23 -0400 Received: from cas-essen-02.secunet.de (unknown [10.53.40.202]) by mailout1.secunet.com (Postfix) with ESMTP id D3CF7800053; Mon, 26 Jul 2021 10:13:50 +0200 (CEST) Received: from mbx-essen-01.secunet.de (10.53.40.197) by cas-essen-02.secunet.de (10.53.40.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 26 Jul 2021 10:13:50 +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.2176.2; Mon, 26 Jul 2021 10:13:50 +0200 Received: by gauss2.secunet.de (Postfix, from userid 1000) id 25FF531801F6; Mon, 26 Jul 2021 10:13:50 +0200 (CEST) Date: Mon, 26 Jul 2021 10:13:50 +0200 From: Steffen Klassert To: Corey Minyard CC: Herbert Xu , "David S. Miller" , , Subject: Re: IPSec questions and comments Message-ID: <20210726081350.GM893739@gauss3.secunet.de> References: <20210724010117.GA633665@minyard.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210724010117.GA633665@minyard.net> X-ClientProxiedBy: cas-essen-02.secunet.de (10.53.40.202) To mbx-essen-01.secunet.de (10.53.40.197) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 23, 2021 at 08:01:17PM -0500, Corey Minyard wrote: > , "David S. Miller" > Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org > Bcc: > Subject: IPSec questions > Reply-To: minyard@acm.org > > I've been going through the XFRM code trying to understand it. I've > been documenting things in the code as I go. > > I have a specific usage question, then a general question: > > 1) In struct xfrm_dst, what is the difference between the route and path > fields? From what I can tell, in the first element of a bundle they > will both point the route the packet will take after it has been > transformed. In the other elements of a bundle, route is the same as in > the first element and path will be NULL. Is this really the intent? > Can path just be eliminated? Eyal gave a good explanation of this. > > 2) This code is really hard to understand. Nobody should have to go > through what I'm going through. If I can convince my employer to allow > me to submit the comments I'm adding, would that be something acceptable? > It would obviously take a lot of time to review. If nobody's going to > have the time to review it, I don't need to put forth the extra effort > to make it submittable. Documentation is always welcome. If you submit your documentation in small reviewable patches, then it should be accepted and merged over time.