From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamal Hadi Salim Subject: Re: [patch net-next v3 02/17] net: make vid as a parameter for ndo_fdb_add/ndo_fdb_del Date: Thu, 27 Nov 2014 07:14:16 -0500 Message-ID: <54771598.80806@mojatatu.com> References: <1416911328-10979-1-git-send-email-jiri@resnulli.us> <1416911328-10979-3-git-send-email-jiri@resnulli.us> <5474A25C.3080505@mojatatu.com> <5474A7EE.8000300@intel.com> <5474ABF0.60901@mojatatu.com> <5474AE9B.6000500@intel.com> <5474B353.10802@mojatatu.com> <547546C5.3060207@mojatatu.com> <5475B952.2080500@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: John Fastabend , Jiri Pirko , Netdev , "David S. Miller" , "nhorman@tuxdriver.com" , Andy Gospodarek , Thomas Graf , "dborkman@redhat.com" , "ogerlitz@mellanox.com" , "jesse@nicira.com" , "pshelar@nicira.com" , "azhou@nicira.com" , "ben@decadent.org.uk" , "stephen@networkplumber.org" , "Kirsher, Jeffrey T" , "vyasevic@redhat.com" , Cong Wang , Eric Dumazet , Florian Fainelli , Roopa Prabhu , John Linville To: Scott Feldman Return-path: Received: from mail-ie0-f172.google.com ([209.85.223.172]:49182 "EHLO mail-ie0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753346AbaK0MOb (ORCPT ); Thu, 27 Nov 2014 07:14:31 -0500 Received: by mail-ie0-f172.google.com with SMTP id tr6so4470287ieb.3 for ; Thu, 27 Nov 2014 04:14:30 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 11/27/14 01:50, Scott Feldman wrote: [..] > > It's there: IFLA_BRPORT_LEARNING_SYNC. From iproute2: > > $ bridge -d link show dev swp1 > 2: swp1 state UNKNOWN : mtu 1500 > master br0 state forwarding priority 32 cost 2 > hairpin off guard off root_block off fastleave off learning off flood off > 2: swp1 state UNKNOWN : mtu 1500 master br0 > learning on learning_sync on hwmode swdev > > Turn it off: > > $ bridge link set dev swp1 hwmode swdev learning_sync off > > And now: > > $ bridge -d link show dev swp1 > 2: swp1 state UNKNOWN : mtu 1500 > master br0 state forwarding priority 32 cost 2 > hairpin off guard off root_block off fastleave off learning off flood off > 2: swp1 state UNKNOWN : mtu 1500 master br0 > learning on learning_sync off hwmode swdev > > Yes, this is the nice control portion. From reviewing the patches, I didnt see how the core to the driver was using the learning_sync. IOW, how do i turn off the drivers sync from being activated? Maybe you are doing this in the rocker patches which i didnt review? i think this needs to be core infrastructure i.e if you are doing this in a timer (as opposed to interrupt driven), then the core sync timer would kick in and call some driver ops. In any case, details that can be ironed out later.. cheers, jamal