From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Hall Subject: Re: [PATCH v3 3/8] i40e: support of setting hash lookup table size Date: Mon, 27 Oct 2014 13:21:08 -0700 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 Cc: dev-VfR2kkLFssw@public.gmane.org To: Thomas Monjalon Return-path: Content-Disposition: inline In-Reply-To: <3244726.9ZMZU6PFm1@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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.