summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-09-11 18:40:10 -0700
committerJakub Kicinski <kuba@kernel.org>2025-09-11 18:40:11 -0700
commitbe30f56386f202530127c1c2ec55b6dd2c9489d1 (patch)
treef4770c380061f7e1ce510b90e99802864af40b93 /rust/helpers/platform.c
parente663ad6e06a776b739d490b51c59c07cb4d767a4 (diff)
parentf7460d2989fa7fb29a0c6d8b929076521480a124 (diff)
Merge branch 'net-af_packet-optimize-retire-operation'
Xin Zhao says: ==================== net: af_packet: optimize retire operation In a system with high real-time requirements, the timeout mechanism of ordinary timers with jiffies granularity is insufficient to meet the demands for real-time performance. Meanwhile, the optimization of CPU usage with af_packet is quite significant. Use hrtimer instead of timer to help compensate for the shortcomings in real-time performance. In HZ=100 or HZ=250 system, the update of TP_STATUS_USER is not real-time enough, with fluctuations reaching over 8ms (on a system with HZ=250). This is unacceptable in some high real-time systems that require timely processing of network packets. By replacing it with hrtimer, if a timeout of 2ms is set, the update of TP_STATUS_USER can be stabilized to within 3 ms. ==================== Link: https://patch.msgid.link/20250908104549.204412-1-jackzxcui1989@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions