Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751662AbdG0K7v (ORCPT ); Thu, 27 Jul 2017 06:59:51 -0400 Received: from aibo.runbox.com ([91.220.196.211]:36364 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751160AbdG0K7t (ORCPT ); Thu, 27 Jul 2017 06:59:49 -0400 Subject: Re: [PATCH net-next v2 06/10] net: dsa: lan9303: added sysfs node swe_bcst_throt To: Andrew Lunn Cc: corbet@lwn.net, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, davem@davemloft.net, kernel@pengutronix.de, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20170725161553.30147-1-privat@egil-hjelmeland.no> <20170725161553.30147-7-privat@egil-hjelmeland.no> <20170726171423.GQ12049@lunn.ch> From: Egil Hjelmeland Message-ID: Date: Thu, 27 Jul 2017 12:59:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170726171423.GQ12049@lunn.ch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 827 Lines: 26 On 26. juli 2017 19:14, Andrew Lunn wrote: > On Tue, Jul 25, 2017 at 06:15:49PM +0200, Egil Hjelmeland wrote: >> Allowing per-port access to Switch Engine Broadcast Throttling Register > > Hi Egil > > In general, we are against using sysfs. If there is a generic > mechanism, that applies for all sorts of network interfaces, it should > be used instead of sysfs. > > Is this intended to reduce the effect of broadcast storms? > > Andrew > Yes, this setting can be used to reduce effect of broadcast storms. I knew you all dislike using sysfs. Still I had a hope you could accept the dsa_net_device_to_dsa_port() function it the previous patch. I feel it would be convenient to be able to add driver sysfs nodes in private branches for own debug and fine tuning, without having to patch the networking core. Egil