aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorMarek BehĂșn <[email protected]>2024-06-05 13:33:28 +0000
committerDavid S. Miller <[email protected]>2024-06-10 12:48:06 +0000
commit77f7541248fcfcc79afff68ff9acf1f09ab8e1e4 (patch)
treef295d98c6f6367a7b698e66ee63ae12e10b606ba /drivers/net/ethernet/intel/ice/ice_main.c
parentMerge branch 'rtnetlink-rtnl_lock' (diff)
downloadkernel-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