]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: optimize backup_port fdb convergence
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 3 Apr 2019 10:49:24 +0000 (13:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:39:47 +0000 (17:39 -0700)
commit9e25abfcec2eab16d9e0d4cad1b0c4097ac11d5a
tree9f063e0598b437bd6c83f9c54f223719020b073e
parent41e0d011e17f3b34cf721d804b81305f38c27fde
net: bridge: optimize backup_port fdb convergence

We can optimize the fdb convergence when a backup_port is present by not
immediately flushing the entries of the stopped port since traffic for
those entries will flow towards the backup_port.

There are 2 cases specifically that benefit most:
- when the stopped port comes up before the entries expire by themselves
- when there's an external entry refresh and they're kept while the
  backup_port is operating (e.g. mlag)

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp_if.c