From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.46.186]) by dpdk.org (Postfix) with ESMTP id 8646D58F5 for ; Mon, 27 Oct 2014 21:13:27 +0100 (CET) Received: by mail.mhcomputing.net (Postfix, from userid 1000) id 799BE80C50B; Mon, 27 Oct 2014 13:21:08 -0700 (PDT) Date: Mon, 27 Oct 2014 13:21:08 -0700 From: Matthew Hall To: Thomas Monjalon Message-ID: <20141027202108.GA13632@mhcomputing.net> References: <1411634427-746-1-git-send-email-helin.zhang@intel.com> <1413978810-24610-1-git-send-email-helin.zhang@intel.com> <1413978810-24610-4-git-send-email-helin.zhang@intel.com> <3244726.9ZMZU6PFm1@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3244726.9ZMZU6PFm1@xps13> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 3/8] i40e: support of setting hash lookup table size 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: Mon, 27 Oct 2014 20:13:28 -0000 On Mon, Oct 27, 2014 at 03:13:39PM +0100, Thomas Monjalon wrote: > You didn't answer to my previous comment on this. > I think these definitions are useless. 64 is 64. Putting labels on the constants gives meaning to them as well as a numeric value. Not doing so is an antipattern referred to as "magic numbers" antipattern. A maintainence programmer or community member will have a difficult time figuring out lost context when grepping through the code. Matthew.