From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet Subject: Re: Too much print of testpmd Date: Wed, 26 Apr 2017 11:05:01 +0200 Message-ID: <20170426090501.GV14914@bidouze.vm.6wind.com> References: <6A0DE07E22DDAD4C9103DF62FEBC09093B59CCEC@shsmsx102.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: "dev@dpdk.org" , "Wu, Jingjing" To: "Lu, Wenzhuo" Return-path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id EC51C5911 for ; Wed, 26 Apr 2017 11:05:08 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id z52so80406384wrc.2 for ; Wed, 26 Apr 2017 02:05:08 -0700 (PDT) Content-Disposition: inline In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC09093B59CCEC@shsmsx102.ccr.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Wenzhuo, On Wed, Apr 26, 2017 at 05:10:44AM +0000, Lu, Wenzhuo wrote: > Hi Gaetan, > > When using DPDK PF + DPDK VF, there's too much print like, > > Port 0: VF Mbox event > > > > Seems it's not good to print every event directly. If it's necessary, is > it better to redirect the output to a log file? > > Thanks. > I'm not convinced of the logfile solution. I'd like to keep it simple and contained. Logfile means having to provide a name, or use a default one with several drawbacks, and a pretty leaky design. I will add a handle mask that will enable or disable this logging feature. The default mask would then enable it for LSC and other such sporadic events, while disabling it for the VF Mbox one. It will be able to be fine-tuned and configured at runtime by a parameter and/or testpmd command. I'll propose it soon. > > > > > Best regards > > Wenzhuo Lu > > -- Gaëtan Rivet 6WIND