Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753710AbdFMRBG (ORCPT ); Tue, 13 Jun 2017 13:01:06 -0400 Received: from smtprelay0119.hostedemail.com ([216.40.44.119]:57927 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753641AbdFMRBC (ORCPT ); Tue, 13 Jun 2017 13:01:02 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2828:2915:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:7514:7576:7903:10004:10400:10848:10967:11232:11658:11914:12296:12663:12740:12760:12895:13069:13095:13137:13150:13161:13229:13230:13231:13311:13357:13439:14039:14096:14097:14181:14659:14721:21080:21433:21451:21627:30012:30051:30054:30069:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: north55_24f65be675032 X-Filterd-Recvd-Size: 3015 Message-ID: <1497373252.18751.19.camel@perches.com> Subject: Re: [PATCH] Add printk for bonding module packets_per_slave parameter From: Joe Perches To: jtoppins@redhat.com, David Miller , michael.j.dilmore@gmail.com Cc: j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, nikolay@cumulusnetworks.com Date: Tue, 13 Jun 2017 10:00:52 -0700 In-Reply-To: References: <20170613134246.6407-1-michael.j.dilmore@gmail.com> <20170613.113411.506760268959654820.davem@davemloft.net> <1497370863.18751.15.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1903 Lines: 44 On Tue, 2017-06-13 at 12:42 -0400, Jonathan Toppins wrote: > On 06/13/2017 12:21 PM, Joe Perches wrote: > > On Tue, 2017-06-13 at 11:34 -0400, David Miller wrote: > > > From: Michael Dilmore > > > Date: Tue, 13 Jun 2017 14:42:46 +0100 > > > > > > > The packets per slave parameter used by round robin mode does not have a printk debug > > > > message in its set function in bond_options.c. Adding such a function would aid debugging > > > > of round-robin mode and allow the user to more easily verify that the parameter has been > > > > set correctly. I should add that I'm motivated by my own experience here - it's not > > > > obvious from output of tools such as wireshark and ifstat that the parameter is working > > > > correctly, and with the differences in bonding configuration across different distributions, > > > > it would have been comforting to see this output. [] > > > You can verify things by simplying reading the value back. > > > > > > If every parameter emitted a kernel log message, it would be > > > unreadable. > > > > > > I'm not applying this, sorry. > > > > I agree. Noisy logging output is not good. > > > > Perhaps a general conversion of the dozens > > of existing netdev_info uses in this file to > > netdev_dbg and adding this at netdev_dbg is > > appropriate. > > In general I agree. The few times I have debugged bonds, I always ended > up enabling debug prinks anyway. I don't see a problem moving these to > debug as well. > > Adding nik whom converted a lot of this code to common paths for input. If Nikolay agrees with the conversion, it's trivial. Please submit it. I did it just for reference. Stylistic nits about the existing file: There are some inconsistencies in pr_info/pr_err uses with invalid inputs. It would also be nicer if the forward static declarations were removed and the static definitions reordered.