Marek Behún 77f7541248 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>
2024-06-10 13:48:06 +01:00
..
2024-05-29 09:25:15 -07:00
2024-05-18 10:32:39 -07:00
2024-06-05 10:18:06 +01:00
2024-02-20 15:32:45 +01:00
2024-06-10 11:54:18 +01:00
2024-01-11 10:07:29 -08:00
2024-05-28 07:27:29 -07:00
2024-05-18 10:32:39 -07:00
2024-05-16 09:47:45 +01:00
2024-05-23 13:51:09 -07:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00