Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp490355ybv; Thu, 20 Feb 2020 02:11:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxHxHGXIXYpxp8HZpjIU28yysjlAErMHkGbkbwsAOoT2YWmaXw29+kcuXopNVHnRx7ngj/B X-Received: by 2002:a9d:bb8:: with SMTP id 53mr20750141oth.150.1582193467081; Thu, 20 Feb 2020 02:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582193467; cv=none; d=google.com; s=arc-20160816; b=fGowU4Th1ltP/Z7Y2lJ3rtof9n2LzMNInIS1l8aJZSiupAGcmJX9IFQs/boDTz69+f nyokv97gQXMon9xMsPfb0E9jmxCeH05rSaO28Ew6NexVtFhkzbNcGikq745rz1uAyXTr 3Uyfb7gG+N8PDQsjltljVW16OOGQca+C8GldUXxyiMJIwBOjOvP8DQAIzOTFE4ejSqNo Vq69UTRM57EwKBOcewyAFbeSaHafxCq2SBaT6RqgaJz8JqyhzGBFY1S2paXdOCaaDX6c AjfhEv5NR2agN+WuWTxnoVILJVh8cPKv7yxxImrrZF0Fmi8PAX3vnr78nbWBufAAS2q6 HyMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=+RfV25aRgIYjFi6Wy0oAEGSH7dWJmjwPm3ZYbm9SPx8=; b=LT20qe8lGNmwd0q1r2xNJoqzGh7y7hopB6DFAGzG6rgn/gePGrWTc0CaSZLpyGD7lM wvwGJw0kuKau4ePyFMl8yOJIhWhlNtc4eWMLsAIuXiEtvmOhWjEWIZXKyLnqCyXJ9p8G DqLpC8UVUKcjchRNQ0tmuEEMKMjkt8HvTdHQUTx7blVXKP/d26/+YkKgwIXSqfHoiBgZ N53sgZxCpcYWnGSUgTSLIBgOVzjvA7J23Ax9v6A2TRXbubWioTiFVDiCvTiyCox3kBir FlFiMA5vcBvHAsrwnQ/V4ttMUbXUPx7W6h9oMNNVdFdhpMuSenymYgKzV+BzaNK/3xs5 Ygjw== 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 n11si1533044otf.36.2020.02.20.02.10.49; Thu, 20 Feb 2020 02:11:07 -0800 (PST) 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 S1726801AbgBTKKq (ORCPT + 99 others); Thu, 20 Feb 2020 05:10:46 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:58192 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726771AbgBTKKp (ORCPT ); Thu, 20 Feb 2020 05:10:45 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0F5836011A93E368C059; Thu, 20 Feb 2020 18:10:43 +0800 (CST) Received: from [127.0.0.1] (10.67.101.242) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Thu, 20 Feb 2020 18:10:34 +0800 Subject: Re: [PATCH 4/4] crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver To: John Garry , , References: <1582189495-38051-1-git-send-email-xuzaibo@huawei.com> <1582189495-38051-5-git-send-email-xuzaibo@huawei.com> <011d8794-b4ab-a5ad-b765-e6e2c09991aa@huawei.com> CC: , , , , , , , From: Xu Zaibo Message-ID: <69fe2d60-428e-9747-b7c0-d69cf25efc0e@huawei.com> Date: Thu, 20 Feb 2020 18:10:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <011d8794-b4ab-a5ad-b765-e6e2c09991aa@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.101.242] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, On 2020/2/20 17:50, John Garry wrote: > On 20/02/2020 09:04, Zaibo Xu wrote: >> From: liulongfang >> >> In the scenario of SMMU translation, the SEC performance of short >> messages >> (<512Bytes) cannot meet our expectations. To avoid this, we reserve the >> plat buffer (PBUF) memory for small packets when creating TFM. >> > > I haven't gone through the code here, but why not use this method also > for non-translated? What are the pros and cons? Because non-translated has no performance or throughput problems. cheers, Zaibo . > > The commit message is very light on details. > > Thanks > john > > . >