From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roopa Prabhu Subject: Re: [patch net-next v2 10/10] rocker: implement L2 bridge offloading Date: Mon, 10 Nov 2014 08:12:05 -0800 Message-ID: <5460E3D5.3000104@cumulusnetworks.com> References: <1415530280-9190-1-git-send-email-jiri@resnulli.us> <1415530280-9190-11-git-send-email-jiri@resnulli.us> <546036A3.3010404@mojatatu.com> <5460AF22.2040701@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: Scott Feldman , 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, xiyou.wangcong@gmail.com, "Fastabend, John R" , edumazet@google.com, Florian Fainelli , John Linville , jasowang@redhat.com, ebiederm@xmission.com, nicolas.dichtel@6wind.com, ryazanov.s.a@gmail.com, buytenh@wantstofly.org, aviadr@mellanox.com, nbd@openwrt.org, alexei.starovoitov@gmail.com, Neil.Jerram@metaswitch.com, ronye@mellanox.com, simon.horman@ne To: Jamal Hadi Salim Return-path: Received: from ext3.cumulusnetworks.com ([198.211.106.187]:37553 "EHLO ext3.cumulusnetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbaKJQMU (ORCPT ); Mon, 10 Nov 2014 11:12:20 -0500 In-Reply-To: <5460AF22.2040701@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: On 11/10/14, 4:27 AM, Jamal Hadi Salim wrote: > On 11/10/14 03:46, Scott Feldman wrote: > >> >> IFLA_BRPORT_LEARNING is u8 attr and we're only using lower bit to turn >> learning on/off. Maybe we can use another bit to indicate learning to >> be done in sw or hw. I don't think adding another bit would break >> existing iproute2. >> >> LEARNING_ENABLED (1 << 0) >> LEARNING_HW (1 << 1) >> >> Would this work? >> > > Yes to making it a bit. But: > This is not *learning*. You are doing a *sync*. > Those are two different things. > > Learning on/off exists today. It signals to the L2 whether you > should learn or not. > I like the way fdb_add/del work with a flag which says > it is the software and/or offloaded version. Please keep that > semantic. > What you are doing above is letting the hardware learn then > syncing to software. You need a different flag there. something > like: > > SYNC_HW_FDB (1<<1) > And in any case, It seems like this policy should be per bridge or per switch chip...or per fdb.. entry (like the original fdb_add/del) and not a "port" flag.. ?