From: Stefan Assmann Date: Thu, 22 Sep 2016 09:57:48 +0200 Subject: [Intel-wired-lan] [PATCH net-next 0/2] i40e: clean-up and fix for the i40e debug code In-Reply-To: <9BBC4E0CF881AA4299206E2E1412B6265028E6FE@ORSMSX102.amr.corp.intel.com> References: <1473946689-28427-1-git-send-email-sassmann@kpanic.de> <9BBC4E0CF881AA4299206E2E1412B6265028E486@ORSMSX102.amr.corp.intel.com> <9BBC4E0CF881AA4299206E2E1412B6265028E6FE@ORSMSX102.amr.corp.intel.com> Message-ID: <6af82f3b-88d4-6780-956f-acc4b95dc500@kpanic.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: On 21.09.2016 23:38, Wyborny, Carolyn wrote: >> -----Original Message----- >> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On >> Behalf Of Wyborny, Carolyn >> Sent: Wednesday, September 21, 2016 11:31 AM >> To: Stefan Assmann ; intel-wired-lan at lists.osuosl.org >> Subject: Re: [Intel-wired-lan] [PATCH net-next 0/2] i40e: clean-up and fix for the >> i40e debug code >> >>> -----Original Message----- >>> From: netdev-owner at vger.kernel.org [mailto:netdev- >> owner at vger.kernel.org] >>> On Behalf Of Stefan Assmann >>> Sent: Thursday, September 15, 2016 6:38 AM >>> To: intel-wired-lan at lists.osuosl.org >>> Cc: netdev at vger.kernel.org; davem at davemloft.net; Kirsher, Jeffrey T >>> ; sassmann at kpanic.de >>> Subject: [PATCH net-next 0/2] i40e: clean-up and fix for the i40e debug code >>> >>> Stefan Assmann (2): >>> i40e: remove superfluous I40E_DEBUG_USER statement >>> i40e: fix setting debug parameter early >>> >>> drivers/net/ethernet/intel/i40e/i40e_common.c | 3 -- >>> drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 6 ---- >>> drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 -- >>> drivers/net/ethernet/intel/i40e/i40e_main.c | 43 ++++++++++++------------- >> - >>> drivers/net/ethernet/intel/i40e/i40e_type.h | 2 -- >>> 5 files changed, 20 insertions(+), 36 deletions(-) >>> >>> -- >>> 2.7.4 >> NACK >> >> I'm not sure what problem is intended to be solved here. This is code that >> enables output by the user using ethtool's msglvl feature. I40E_DEBUG_USER is >> not superfluous is a mask for user input. Well, then please enlighten me what's the value of this flag? The intention of this set is to improve and fix the debug code. I'd appreciate it if your feedback would be more constructive. > To provide more info on this. Yes, the debug output in this driver was implemented in a non-ideal way. However, we are working on refactoring this in a way that is consistent with our newer development and in a way that is consistent with how this kind of debugging is expected to work generically. In retrospective, the only flaw I see in the set is that I broke setting the debug_mask in i40e_set_msglevel(). So unless you plan to revamp the debug code the next few days or provide a good reason to keep I40E_DEBUG_USER I'll send a v2 with i40e_set_msglevel() fixed. Stefan