Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1653422rwi; Thu, 27 Oct 2022 19:34:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4tZ5X39GDjPGmXdXpenwmprjwJk1XSEq0ClKqvLof3R9UJQ+iG1Pk+/5M3IhJHGtCSIFQx X-Received: by 2002:a05:6402:360d:b0:459:5f40:5b0a with SMTP id el13-20020a056402360d00b004595f405b0amr46641582edb.168.1666924491471; Thu, 27 Oct 2022 19:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666924491; cv=none; d=google.com; s=arc-20160816; b=en+RnTsADozCstCEHZFyqmUlrghPbC6omEO59htNYgkigYaG6HedsX0EKzwQad3JfV eTO3SgUZE50tWzO8WFhjSz5xikjmfumqFYq1gFSKlHBeXy8jYuHPS5ClR7m4hI8tqqpI lZygr7QJ0dfXT2KcxMDrk++E6si2e9ikeikiIB/orWucwLvChhBeTvVt6NY4HEXHzkru FSjY9ySOsROj/If/mM61EIOoRaQvXYsKgjb3UpeuTxEi1sMJYJy0Z4SvP7RMYtC2018v Egnh3l9cPH1jlxk4TYyNBjv3SwH33Rtb6nQyxrTbW+Guq+LATQm1xoUgrQBKxSqHoW+6 LJNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=tUXLwCAVhcf/ciecG33UN2GlNaRyrkMJpSCnbOPoZZc=; b=bk4MxxIZs79uyPt8DQPOcbPVAllMkxSF6ikxyGgSx1Jb1gH4nsRIqnfbqfcCqnAZyE /BuX+SDZWFf32NcnqIZnMmeNaonQa/JmrA354jAWKnbvcEAb11zfpkR7XFSBxcU6Dxwa 281vARBzFFQeW3MTO9Rb1gdTy9tX+zWjSz6Il6Sc1jLaF7bzXrs5yjj0vLGC6vXIolS3 /A0zaNHMX1lo1tUFfs4VP2hyUP300g3BLKzHXCwRO8EN7XoKq5cqDV1jTQSEp66R4nWP PJ7mBmbmMtAXKiLQ9YgLXTS04JBjWE3RiC0H0/Rix2BIR/xWp/QKdd6c35ePP/JWirYf Azew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a1709065d0500b007acf3aed493si3546373ejt.910.2022.10.27.19.34.21; Thu, 27 Oct 2022 19:34:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235441AbiJ1C0P (ORCPT + 99 others); Thu, 27 Oct 2022 22:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236142AbiJ1C0K (ORCPT ); Thu, 27 Oct 2022 22:26:10 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A83A7CE0B; Thu, 27 Oct 2022 19:26:09 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Mz5t81MKFzpWG0; Fri, 28 Oct 2022 10:22:40 +0800 (CST) Received: from kwepemm600005.china.huawei.com (7.193.23.191) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 28 Oct 2022 10:26:07 +0800 Received: from [10.67.103.158] (10.67.103.158) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 28 Oct 2022 10:26:07 +0800 Subject: Re: [PATCH] crypto/hisilicon: Add null judgment to the callback interface To: Herbert Xu CC: , , References: <20220930024320.29922-1-liulongfang@huawei.com> From: liulongfang Message-ID: <076d8f36-fa92-8d47-8b46-6e6e7ec75bf5@huawei.com> Date: Fri, 28 Oct 2022 10:26:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.158] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2022/9/30 10:49, Herbert Xu wrote: > On Fri, Sep 30, 2022 at 10:43:20AM +0800, Longfang Liu wrote: >> The algorithm acceleration function interface provided by the >> current crypto subsystem is in asynchronous mode, but some users >> will call it in synchronous mode, thus not providing a callback >> interface for the "base.complete" of the request. > > Please give more details. Who is calling the callback functions > in synchronous mode? > > Thanks, > Hi, Herbert. Do you consider merging this patch? Thansk, Longfang.