Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755735AbbEVB4q (ORCPT ); Thu, 21 May 2015 21:56:46 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35105 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753397AbbEVB4n (ORCPT ); Thu, 21 May 2015 21:56:43 -0400 Message-ID: <555E8CD9.9030004@cumulusnetworks.com> Date: Thu, 21 May 2015 18:56:41 -0700 From: roopa User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: =?UTF-8?B?TGludXMgTMO8c3Npbmc=?= CC: netdev@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Stephen Hemminger , Herbert Xu , "David S. Miller" , Satish Ashok , Wilson Kok Subject: Re: [PATCH net-next] bridge: allow setting hash_max + multicast_router if interface is down References: <1432256161-4425-1-git-send-email-linus.luessing@c0d3.blue> In-Reply-To: <1432256161-4425-1-git-send-email-linus.luessing@c0d3.blue> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1260 Lines: 30 On 5/21/15, 5:56 PM, Linus Lüssing wrote: > Network managers like netifd (used in OpenWRT for instance) try to > configure interface options after creation but before setting the > interface up. > > Unfortunately the sysfs / bridge currently only allows to configure the > hash_max and multicast_router options when the bridge interface is up. > But since br_multicast_init() doesn't start any timers and only sets > default values and initializes timers it should be save to reconfigure > the default values after that, before things actually get active after > the bridge is set up. > > With this patch hash_max and multicast_router attributes can be > changed even if the according bridge (port) is down, just like other > other bridge (port) attributes allow too. > > Signed-off-by: Linus Lüssing > --- > Changelog: > * [RFC PATCH net-next] -> [PATCH net-next] Acked-by: Roopa Prabhu we have a similar patch in-house waiting to be up-streamed. thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/