]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: refactor rteth_set_mac_hw() 22217/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 28 Feb 2026 18:36:53 +0000 (19:36 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Mar 2026 19:03:03 +0000 (20:03 +0100)
commitfb6e2568df60dee20a87a1e05ef5fd39cafc6d1f
tree6d8966ea38557947028036f5abd9f6d3d6d856a2
parent0e09c39a19b5f1b7792e68dbc0eec311c9da6e15
realtek: eth: refactor rteth_set_mac_hw()

MAC setting uses hard to read duplicated code. Additionally it
evaluates the unwanted family_id attribute. Provide the list
of MAC address registers in the configuration structure and use
a loop to fill those.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22217
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.h