Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2970152ybn; Thu, 26 Sep 2019 22:02:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCtpAn0yCvFWuXzeaxIbsf1CVQPLdhmkV2j0ECuP8XSVNOFqnK0tVyLvUmMbt0ovt654BY X-Received: by 2002:a17:906:a40d:: with SMTP id l13mr5950594ejz.237.1569560544356; Thu, 26 Sep 2019 22:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569560544; cv=none; d=google.com; s=arc-20160816; b=gaHn1gjrKGDy57+EP1pfV6s23HnnAaBW+DQtS7t5wzoVeuwPX7ogra9+yiNKiFuzer u0elb/Y7krfoy2znzDCAPvrzKUwrrUKC0STBlCExmFI8ON7/om+xC8bqZGZ7666VPK7s nlZZdUwRtHae0uCkNdJwMdja+NRGk1lwtQgFT3MzjTlKcPhVZ4rQApgIAGYQJaIORnAw 1ZKxPh/ygXLzoBUNZvozYtr210gFF8vlgrd9JmVOWzt1Jl5g8//HPZJ1i8CJKO/8WBFZ /Id77JLyiNzH/ttkDxVpTvfZpU5fHEwyPeu9Qm7QJ9TDXEoVAZp2W29bHSVjM327capX /h5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QVPswIbZ21J0ko4EiD2MpDlCX6S3E2Q7PWw09cFO91k=; b=lMqh8q/d5HbaGIPUpy0FxyuxtQPLz3Uh1QOoqlgsUHzBiU5R6vW1Zq+cJiQfReWMp/ /dNDC4WNdqL5vuUoK9zis104UUx3kCKw05gPNBhkUHERX2v6WHhanf0v96daVMkv1idi 6mJu1swOW8RGy469AygsGr6by2CLErEFmzUGqqdixjvQnQSlvUnnq/qyT+82n6MxJtlJ j5DrFJkn/3HConxA0U+oc12UcSBEC0IIS541HTppSzyVc07C7k7+QR06HjztsnC2wDgc w75YmbzlwKFKWBHRtsmEzZ6v9TTmvI85XCFxOhEV8p1TcsaKfPkqzNEqdP3SLFwjiFs2 Zv6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si833685edq.209.2019.09.26.22.01.49; Thu, 26 Sep 2019 22:02:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbfI0E7X (ORCPT + 99 others); Fri, 27 Sep 2019 00:59:23 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:39286 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbfI0E7X (ORCPT ); Fri, 27 Sep 2019 00:59:23 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1iDiLY-0002d2-Mo; Fri, 27 Sep 2019 14:59:13 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 27 Sep 2019 14:59:04 +1000 Date: Fri, 27 Sep 2019 14:59:04 +1000 From: Herbert Xu To: Andy Lutomirski Cc: Linus Torvalds , Pascal Van Leeuwen , Ard Biesheuvel , Linux Crypto Mailing List , Linux ARM , David Miller , Greg KH , "Jason A . Donenfeld" , Samuel Neves , Dan Carpenter , Arnd Bergmann , Eric Biggers , Will Deacon , Marc Zyngier , Catalin Marinas Subject: Re: [RFC PATCH 18/18] net: wireguard - switch to crypto API for packet encryption Message-ID: <20190927045904.GA28580@gondor.apana.org.au> References: <20190925161255.1871-1-ard.biesheuvel@linaro.org> <20190925161255.1871-19-ard.biesheuvel@linaro.org> <20190927035319.GA23566@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Sep 26, 2019 at 09:37:16PM -0700, Andy Lutomirski wrote: > > Then what's up with the insistence on using physical addresses for so > many of the buffers? This happens to be what async hardware wants, but the main reason why the crypto API has them is because that's what the network stack feeds us. The crypto API was first created purely for IPsec so the SG lists are intimiately tied with how skbs were constructed. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt