Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp473351ybv; Thu, 20 Feb 2020 01:50:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzapkUYFmhY6PKh1i8xY0TG3V0sAKTcjI9BjrfLQ/2DPOWjcImy6keF8l3n6jynTbmV16d8 X-Received: by 2002:a9d:6251:: with SMTP id i17mr23482710otk.14.1582192230665; Thu, 20 Feb 2020 01:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582192230; cv=none; d=google.com; s=arc-20160816; b=aJSbVg7OjG+r5UskTiwqiDZfpteC4RORzpgWhiusMWsQqfhyhK/rSye35jpuJ0xIDg URJJd0oI/XSPV2059TcMQoGWzpN7104WD1P9Rs3rrN97YTSx/bH4PAm2nf+rX5ZwK50q 1W6ejrE75xbQhqvowlyNUZPs2NdtVT6bBMknP9A8mTiWTtGkOqR7a3/HboE4nGrQlB3S 5XRCEVKDxem9mAvdIf9V2PjIxvKPkUj2JQGplYAT5KYNJSG9+v9mmrZ3i998tIN7KaRs nq1oSl6S4RtpXFBWkaeu3fO1x2eibMIDSEEXGJEUTPkNwOmiUQzC5npM0BpUcNHj759Y tLPA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=OyWip8Y7U/D3Cp8EKcG+q7ydMfqkQ4o7/eRy4pJMy9I=; b=pPAwMhJ/1TvXYdD60eLbropFOP9X+q+Zdezr9x7o3HTGdSdld4ogdBJ5XrKgLs44Vo GP2ADKqJhUjf5hlg6cKDnUpFTzHvd2UHV178nqFF+8oyuIDUqMSI8WUS7xY+6dVvglR2 5ueOl7p8h0rCPoR+y/KZXTnJycNYueobWOmqqUIFUZoPG1r54UyhIb5ZSw79Kkh3Gmlp bwhqcHv0qEUeX7dhgWlHI7C+zIFwQCctNJUMhWbalk9An7pvSWLzzGGCc9OovkzFpbFr VGjavf7HykUuYFOE5qxqoZQuVa60NBXypjhiftbXuXmS5YeBrAgQAjT9GIiUjtt3P3JR zKOA== 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 k10si1458645otn.323.2020.02.20.01.50.11; Thu, 20 Feb 2020 01:50:30 -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 S1726771AbgBTJuK (ORCPT + 99 others); Thu, 20 Feb 2020 04:50:10 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:2446 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726759AbgBTJuK (ORCPT ); Thu, 20 Feb 2020 04:50:10 -0500 Received: from LHREML713-CAH.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id A024241A6EDEDEE025EB; Thu, 20 Feb 2020 09:50:07 +0000 (GMT) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by LHREML713-CAH.china.huawei.com (10.201.108.36) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 20 Feb 2020 09:50:07 +0000 Received: from [127.0.0.1] (10.202.226.45) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 20 Feb 2020 09:50:07 +0000 Subject: Re: [PATCH 4/4] crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver To: Zaibo Xu , , CC: , , , , , , , References: <1582189495-38051-1-git-send-email-xuzaibo@huawei.com> <1582189495-38051-5-git-send-email-xuzaibo@huawei.com> From: John Garry Message-ID: <011d8794-b4ab-a5ad-b765-e6e2c09991aa@huawei.com> Date: Thu, 20 Feb 2020 09:50:06 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <1582189495-38051-5-git-send-email-xuzaibo@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.45] X-ClientProxiedBy: lhreml738-chm.china.huawei.com (10.201.108.188) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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? The commit message is very light on details. Thanks john