From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B014DA0551; Fri, 21 Feb 2020 19:29:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 638D41BFAC; Fri, 21 Feb 2020 19:29:18 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 898781BFA5 for ; Fri, 21 Feb 2020 19:29:16 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E0C4F21E5B; Fri, 21 Feb 2020 13:29:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 21 Feb 2020 13:29:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=aWgxNilbhsDy+pNhQQdqXuuuEcsSOI6tjG+xCzq9pHM=; b=NgyLEZf+iG2i F0gLlANQBo4U91/kCdFJ0oFDRk7DBUokI+kGmTKhYKIw9gYigNqAt0zmU/oDD7QF 6TM6Yt0HWEIRuNRDchTq/T83itdJavBWvGx4DIl2Oi/sVOJVmdAW0zprhk1JXQob yra81EtZQfDelNoyWA3lr0Jq8pF8qiM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=aWgxNilbhsDy+pNhQQdqXuuuEcsSOI6tjG+xCzq9p HM=; b=Vnr8oj6LUeyqKY5Toy8Q9h/4pXsouXyE/h7yFbxDny3wc+MIQQBA6OL+k ni8k/kbfB4+333aMWYyiEVe2HHS0QqWzuWJPh3ROiE85psUmXQddF9n90/DI7KPL ApOVFoAFsRalNPlEwgMY9XAwrAcBLHRlTnwOvYp5UlGry9hR5v7yu98x49+/XxIW MXVpr9ceLTc9o1oIGm4YCGU187tV3ow9jtlRI6EGmm4qApP4QQvwL0AV6sarsTgN JCityqXU5UTmpiFvpVwpV/lkTiC+Avxkx/7XfdY4LTwn0iw29m8yN5rV4isfz2Ox 68EZkgLaZAeYJOiRxtJHHGfi0cAmw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrkeeggdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 112B13060C21; Fri, 21 Feb 2020 13:29:14 -0500 (EST) From: Thomas Monjalon To: Maxime Coquelin Cc: dev@dpdk.org, Zhihong Wang , Tiwei Bie Date: Fri, 21 Feb 2020 19:29:13 +0100 Message-ID: <3026524.oiGErgHkdL@xps> In-Reply-To: <20200220025240.GA45390@___> References: <20200219103923.2259246-1-thomas@monjalon.net> <20200220025240.GA45390@___> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] examples/vhost_blk: use common macros for min/max X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 20/02/2020 03:52, Tiwei Bie: > On Wed, Feb 19, 2020 at 11:39:22AM +0100, Thomas Monjalon wrote: > > The macros RTE_MIN and RTE_MAX can be used in DPDK applications. Only RTE_MIN is used in this patch. The title is wrong as well. > > This change implies fixing the sign of used_len as size_t > > as defined in vhost_strcpy_pad(). > > > > Signed-off-by: Thomas Monjalon > > --- > > examples/vhost_blk/blk.c | 4 ++-- > > examples/vhost_blk/vhost_blk.h | 2 -- > > examples/vhost_blk/vhost_blk_compat.c | 2 +- > > 3 files changed, 3 insertions(+), 5 deletions(-) > > Reviewed-by: Tiwei Bie