From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Hall Subject: Re: some questions about rte_memcpy Date: Wed, 21 Jan 2015 20:45:32 -0800 Message-ID: <20150122044531.GA13230@mhcomputing.net> References: <54C070DF.1050006@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev-VfR2kkLFssw@public.gmane.org" To: Linhaifeng Return-path: Content-Disposition: inline In-Reply-To: <54C070DF.1050006-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> 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 Thu, Jan 22, 2015 at 11:39:11AM +0800, Linhaifeng wrote: > Why call memcpy when n is constant variable? One theory. Many DPDK functions crash if they are called before rte_eal_init() is called. So perhaps this could be a cause, since that won't have been called when working on a constant? Matthew.