diff options
author | Marek BehĂșn <kabel@kernel.org> | 2024-06-05 15:33:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-06-10 13:48:06 +0100 |
commit | 77f7541248fcfcc79afff68ff9acf1f09ab8e1e4 (patch) | |
tree | f295d98c6f6367a7b698e66ee63ae12e10b606ba /Documentation/devicetree/overlay-notes.rst | |
parent | 395059c52e0104a5e01832f866caa8b15284dd9a (diff) |
net: dsa: deduplicate code adding / deleting the port address to fdb
The sequence
if (dsa_switch_supports_uc_filtering(ds))
dsa_port_standalone_host_fdb_add(dp, addr, 0);
if (!ether_addr_equal(addr, conduit->dev_addr))
dev_uc_add(conduit, addr);
is executed both in dsa_user_open() and dsa_user_set_mac_addr().
Its reverse is executed both in dsa_user_close() and
dsa_user_set_mac_addr().
Refactor these sequences into new functions dsa_user_host_uc_install()
and dsa_user_host_uc_uninstall().
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/overlay-notes.rst')
0 files changed, 0 insertions, 0 deletions