net: switchdev: introduce helper for checking dynamically learned FDB entries
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 19 Jul 2021 13:51:38 +0000 (16:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2021 14:04:27 +0000 (07:04 -0700)
commitc6451cda100d4ebbc3f6819e1161ce0e38ce7746
tree70e29f32a10094a1bf3ae8b07f8c4e117a1b7809
parent7d901a1e878a1cf8dd3ba7b4c057ad5eb7a40af0
net: switchdev: introduce helper for checking dynamically learned FDB entries

It is a bit difficult to understand what DSA checks when it tries to
avoid installing dynamically learned addresses on foreign interfaces as
local host addresses, so create a generic switchdev helper that can be
reused and is generally more readable.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h
net/dsa/slave.c