From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id F183C5585 for ; Fri, 22 Jul 2016 01:09:12 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id i5so43323926wmg.0 for ; Thu, 21 Jul 2016 16:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=hAw+sW54j4eX7+1ie0+xKUHOQyNYVWLFfQ/ihCIjWB4=; b=ogiCt/KGpswOdhAmNEjb6LRs2dZDUMYuNQd2LuWAxNpUn5YrshiSeGd1QTU531X+eM kgWiEfbO+GPV92pogzNXnn1yRAJhCE8YS/U7OUoWxT3+gnAarNg0l+++rZiOeO7LsbhW 8bf57FYQlHB/3YG3amr3uMogfL3G7mA4OXqf6AOwhiGg1fGfBAElQSdiFFNkFBF+r3qp 9isasekuu6pkgyN1r3Ak0lCUD2rR9nDQ44T3uQ6GyQNqVjEBxyonu/0FPziFtnI8NZ1v GTsVrYJUJhq+n0KnXgrGKhRkhgHeelXNPY0C0Akb7dOrgJ0hdGyGGBMfhS5SDhoYbW6w 228w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=hAw+sW54j4eX7+1ie0+xKUHOQyNYVWLFfQ/ihCIjWB4=; b=Dx6iK4Lv2sQdHrKR3x6XvounXPV8aKJDuAep+SWaVE+TVTu6uqBfmPqDo7/m3wUcLE hDzbAe7iRYeiW2otePaT08LVNeXPLumPdjx69CgL6FK1UHI2DGLqGopG7EP4FmOcyObl GhlaywpE0tCE4OyoV/T2D/Fc4dI59hEmA9Q5ACFxnC8DOMPnz77zXpRnuwL1wg95AvSZ S9abAjvVe3j7CThXitUL40ENRA1v29ZNT7gbby6z4ykmQggdSId/bqktvCYa2ThnKX6H ANIh87uL6c5U/34/zgnMvXzafQP2H6a4ArceuiZv8ywj5EhgEyma0n/nXz7DStxuEYFp Lxeg== X-Gm-Message-State: ALyK8tLK0p9YBjcuTcfzpoihGiM8ItOh5h+B8K8O/Yy+Lq/v5+VSjMRGoJgAdupfxVu4jboz X-Received: by 10.28.58.7 with SMTP id h7mr20659095wma.35.1469142552708; Thu, 21 Jul 2016 16:09:12 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id q139sm7957256wmb.18.2016.07.21.16.09.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jul 2016 16:09:11 -0700 (PDT) From: Thomas Monjalon To: "Jastrzebski, MichalX K" Cc: dev@dpdk.org, "Richardson, Bruce" , "Kobylinski, MichalX" , "Gonzalez Monroy, Sergio" , "david.marchand@6wind.com" Date: Fri, 22 Jul 2016 01:09:10 +0200 Message-ID: <1948737.G1euFzQ2ex@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <60ABE07DBB3A454EB7FAD707B4BB158213AB97E7@irsmsx110.ger.corp.intel.com> References: <1469024689-1076-1-git-send-email-michalx.k.jastrzebski@intel.com> <1862165.0hl8WtbyGd@xps13> <60ABE07DBB3A454EB7FAD707B4BB158213AB97E7@irsmsx110.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] eal: fix check number of bytes from read function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 23:09:13 -0000 2016-07-21 20:50, Jastrzebski, MichalX K: > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > - (int)sizeof(uint64_t) can be replaced by 8 but it's shorter ;) > > I didn't want to change all invokes of read() function here. > I can use some macro: > #define PFN_MASK_SIZE 8 > How do You think? Yes may be an idea.