]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: allow br_fdb_replay to be called for the bridge device
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 29 Jun 2021 14:06:46 +0000 (17:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jun 2021 17:46:23 +0000 (10:46 -0700)
commit062a19d6ddae4a8e29424fcb8510526e3cd0532f
tree2520a8a36fc4ac6beadc7d6dd3e78d0655a8d8bd
parentdb6e625737ae30b244b09df0bfae1e1a7898294f
net: bridge: allow br_fdb_replay to be called for the bridge device

When a port joins a bridge which already has local FDB entries pointing
to the bridge device itself, we would like to offload those, so allow
the "dev" argument to be equal to the bridge too. The code already does
what we need in that case.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c