From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 93D61A0543; Thu, 15 Dec 2022 03:39:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F16E40684; Thu, 15 Dec 2022 03:39:05 +0100 (CET) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by mails.dpdk.org (Postfix) with ESMTP id 98724400D6 for ; Thu, 15 Dec 2022 03:39:03 +0100 (CET) Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4NXbxk3Kqgz16LZJ for ; Thu, 15 Dec 2022 10:38:02 +0800 (CST) Received: from [10.67.103.231] (10.67.103.231) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 15 Dec 2022 10:39:01 +0800 Message-ID: <5a936fd9-15b0-b47b-8629-3abf3e2f9743@huawei.com> Date: Thu, 15 Dec 2022 10:39:00 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [RFC PATCH 7/7] telemetry: change public API to use 64-bit signed values To: References: <20221213182730.97065-1-bruce.richardson@intel.com> <20221213182730.97065-8-bruce.richardson@intel.com> <98CBD80474FA8B44BF855DF32C47DC35D87594@smartserver.smartshare.dk> <20221214175313.GE31935@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> From: "lihuisong (C)" In-Reply-To: <20221214175313.GE31935@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.231] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 在 2022/12/15 1:53, Tyler Retzlaff 写道: > On Tue, Dec 13, 2022 at 09:19:45PM +0100, Morten Brørup wrote: >>> From: Bruce Richardson [mailto:bruce.richardson@intel.com] >>> Sent: Tuesday, 13 December 2022 19.28 >>> >>> While the unsigned values added to telemetry dicts/arrays were up to >>> 64-bits in size, the sized values were only up to 32-bits. We can >>> standardize the API by having both int and uint functions take 64-bit >>> values. For ABI compatibility, we use function versioning to ensure >>> older binaries can still use the older functions taking a 32-bit >>> parameter. >>> >>> Suggested-by: Morten Brørup >>> Signed-off-by: Bruce Richardson >>> --- >> Excellent example of how to use function versioning for ABI compatibility. >> >> Series-acked-by: Morten Brørup >> > minor comments that can be optionally addressed. lgtm > > Series-acked-by: Tyler Retzlaff > . LGTM Series-acked-by: Huisong Li But I feel this patchset needs to be applied after the following patchset: http://patches.dpdk.org/project/dpdk/list/?series=26124 The above patchset fixes some problems about possible data truncation and conversion error, and will backport to stable branch.