Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5461813ybl; Tue, 10 Dec 2019 06:28:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzy+wb2g1hnYswAllnK5ZhSAUVNicO5v9MogDNoxAm15xaJfgtY87HtCyx1QprRFP/+zgzk X-Received: by 2002:a05:6830:1e02:: with SMTP id s2mr10964623otr.168.1575988133322; Tue, 10 Dec 2019 06:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575988133; cv=none; d=google.com; s=arc-20160816; b=flHsMN1FElSbQNBCWFLUsaubHu50qikGzbAMRs6BWcnJHZH4tk+iH34vw2Ux77aOVw ezp20+ifze/7jNFSDTqaUSGKK7uV+stdz1+b5jsHwULU96BvnwVQv4b4ps0qSL/TjMB2 Bfk7yrpxFQIoYG0e9gcllXHUrVP7LswrNC8D8iQfpktWQC2Ja8fYKayPAKB2s+67NhRX KxzWZkW8B3/dWGKFI/7tp47QgxDjMRr/JxGVdrbdAGVWR/LJj1dXXc1/TVhSy6YjEYby Tv4D36XXADKgc5hMA5mElid2V3ZePMdhzeVYrq5CaJPwC3Ffgmd2GTBXvQjP2Itpwsbl 5qbA== 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=/wLzXGzzkt3yuR3mMdvK6PSlmBLifTbEN7varoHTfhI=; b=bZi2o71TcMjFf0JD4+2h6HQf70g+V279gG57L1Xg2a7AokC/w1tWXGZCKEnY1lBcY+ V4QLpBY3J6o7Q1sYXKdrahO+npkg3BUKvSTk8Q9kw9R8ONeaX+oSZ2HfkkrDGkAKevwo XtVBZhVjdeo1huL2QV7AZXo8aT2+dnl2p5O/B0vkOMHsEnCuuznN6E5pQrorK8Ic3C+0 8L9FstixxsDrdiQYlRDQSGu5/pEoYkA2BXQZzO/ydPxNoHgXUMW9wergOg415RlvaVCZ zzM1Jxe7b01ZoLmkHYIIePD64x7E7ddkifOBHVKF7OYHQXO7nqcdjAgqlbRWL6P5HV+8 KtcQ== 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 e22si1533459oti.74.2019.12.10.06.28.34; Tue, 10 Dec 2019 06:28:53 -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 S1727345AbfLJO2e (ORCPT + 99 others); Tue, 10 Dec 2019 09:28:34 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7660 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727061AbfLJO2d (ORCPT ); Tue, 10 Dec 2019 09:28:33 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4BF99FFF1CC1A72F190C; Tue, 10 Dec 2019 22:28:31 +0800 (CST) Received: from [127.0.0.1] (10.177.251.225) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 10 Dec 2019 22:28:24 +0800 Subject: Re: [PATCH] crypto: user - use macro CRYPTO_MSG_INDEX() to instead of index calculation To: Herbert Xu CC: , , , "hushiyuan@huawei.com" , "linfeilong@huawei.com" References: <6306e685-51fa-1a04-e9d9-07d4c80b5400@huawei.com> <20191210133923.aab65usf4xyqd3wv@gondor.apana.org.au> From: Yunfeng Ye Message-ID: <762174ca-5901-bf3d-74fb-38eeecb7c46a@huawei.com> Date: Tue, 10 Dec 2019 22:27:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20191210133923.aab65usf4xyqd3wv@gondor.apana.org.au> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.251.225] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2019/12/10 21:39, Herbert Xu wrote: > On Tue, Dec 10, 2019 at 07:07:36PM +0800, Yunfeng Ye wrote: >> There are multiple places using CRYPTO_MSG_BASE to calculate the index, >> so use macro CRYPTO_MSG_INDEX() instead for better readability. >> >> Signed-off-by: Yunfeng Ye > > I don't think your patch makes it any more readable. > ok, thanks, I think use macro instead of the same index calculation logic is more clear. > Cheers, >