aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c
diff options
context:
space:
mode:
authorJan Hoffmann <jan@3e8.eu>2022-12-17 21:45:43 +0100
committerSander Vanheule <sander@svanheule.net>2022-12-27 16:29:57 +0100
commit2c40359c5c12621fa386efca3139ea523db6d39f (patch)
tree81e916c19fb678eeb067e809a2911a2e31b28c26 /target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c
parentae0a3f88ac335801f17035504ba572d14205787a (diff)
downloadupstream-2c40359c5c12621fa386efca3139ea523db6d39f.tar.gz
upstream-2c40359c5c12621fa386efca3139ea523db6d39f.tar.bz2
upstream-2c40359c5c12621fa386efca3139ea523db6d39f.zip
realtek: add cond_resched to loops accessing the FDB table
A full loop accessing all FDB entries can take several milliseconds (on RTL839x about 20 ms), so give other kernel tasks a chance to run. This is especially important for rtl83xx_port_fdb_dump which is itself called in a loop for all ports by the kernel. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c')
0 files changed, 0 insertions, 0 deletions