bridge: skip fdb add if the port shouldn't learn
authorWilson Kok <wkok@cumulusnetworks.com>
Mon, 25 May 2015 13:39:31 +0000 (06:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2015 00:29:54 +0000 (20:29 -0400)
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 <wkok@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c

Simple merge