From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 26 May 2015 10:28:09 -0700 From: Stephen Hemminger Message-ID: <20150526102809.5c3e8abc@urahara> In-Reply-To: <1432204977-4293-1-git-send-email-nikolay@cumulusnetworks.com> References: <1432204977-4293-1-git-send-email-nikolay@cumulusnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [PATCH net-next] bridge: skip fdb add if the port shouldn't learn List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikolay Aleksandrov Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org, davem@davemloft.net, wkok@cumulusnetworks.com On Thu, 21 May 2015 03:42:57 -0700 Nikolay Aleksandrov wrote: > From: Wilson Kok > > Check in fdb_add_entry() if the source port should learn, similar > check is used in br_fdb_update. > Note that new fdb entries which are added manually or > as local ones are still permitted. > This patch has been tested by running traffic via a bridge port and > switching the port's state, also by manually adding/removing entries > from the bridge's fdb. > > Signed-off-by: Wilson Kok > Signed-off-by: Nikolay Aleksandrov What is the problem this is trying to solve? I think user should be allowed to manually add any entry even if learning.