]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: merge & simplify irq handlers 22023/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 14 Feb 2026 18:40:31 +0000 (19:40 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 21 Feb 2026 19:30:15 +0000 (20:30 +0100)
commitb74e261d5607054c96ac257709d1eaf6f7c8462a
tree9169624978fbd544a236959594c60ef9a0388798
parent8e33c40c7fd783d6a4bd748eeea9ddea64e0aec4
realtek: eth: merge & simplify irq handlers

Two different irq handlers exist for RTL83xx and RTL93xx. Basically
they do always the same.

- Check transmit interrupts (not needed anymore)
- Check rx overflow interrupts (not needed anymore)
- Determine rx interrupts and queues that must be processed.
- In case of RTL839x check for L2 interrupts

With all the recent refactoring their logic is more or less the
same. Merge them into one handler. For better readability add a
helper that determines the work (aka rings) that needs to be
processed.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22023
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