diff options
| author | Marek BehĂșn <[email protected]> | 2024-06-05 13:33:28 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-06-10 12:48:06 +0000 |
| commit | 77f7541248fcfcc79afff68ff9acf1f09ab8e1e4 (patch) | |
| tree | f295d98c6f6367a7b698e66ee63ae12e10b606ba /drivers/net/ethernet/intel/ice/ice_main.c | |
| parent | Merge branch 'rtnetlink-rtnl_lock' (diff) | |
| download | kernel-77f7541248fcfcc79afff68ff9acf1f09ab8e1e4.tar.gz kernel-77f7541248fcfcc79afff68ff9acf1f09ab8e1e4.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions
