]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: fdb: avoid two atomic bitops in br_fdb_external_learn_add()
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 1 Nov 2019 12:46:38 +0000 (14:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Nov 2019 17:32:43 +0000 (10:32 -0700)
commitdfb8af85f17bae563104322ef998590d6b25e699
tree5d49b34264f52ed9bb0b5a2795cab0dfda6e66b1
parent12af1de7a0c70e6ec1e796a7b566c4c6c82b7b26
net: bridge: fdb: avoid two atomic bitops in br_fdb_external_learn_add()

If we setup the fdb flags prior to calling fdb_create() we can avoid
two atomic bitops when learning a new entry.

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