bridge: Let bridge not age 'externally' learnt FDB entries, they are removed when...
authorSiva Mannem <siva.mannem.lnx@gmail.com>
Mon, 2 Feb 2015 17:21:54 +0000 (22:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Feb 2015 21:51:10 +0000 (13:51 -0800)
commit9a05dde59a35eee5643366d3d1e1f43fc9069adb
tree64b39f5dce23706927a2e3198adfa4c32c64d6bd
parent4fc9b87bae25e843989d022bed66dd009bdc5a71
bridge: Let bridge not age 'externally' learnt FDB entries, they are removed when 'external' entity notifies the aging

When 'learned_sync' flag is turned on, the offloaded switch
 port syncs learned MAC addresses to bridge's FDB via switchdev notifier
 (NETDEV_SWITCH_FDB_ADD). Currently, FDB entries learnt via this mechanism are
 wrongly being deleted by bridge aging logic. This patch ensures that FDB
 entries synced from offloaded switch ports are not deleted by bridging logic.
 Such entries can only be deleted via switchdev notifier
 (NETDEV_SWITCH_FDB_DEL).

Signed-off-by: Siva Mannem <siva.mannem.lnx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c