# Re: \[PATCH\] net: af\_packet: add af\_packet hrtimer mode

- From: Eric Dumazet \<hidden\>
- Date: 2025-08-06 08:51:48 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/08/3159730
- Thread: https://ratatoskr.run/netdev/2025/08/3159547/t.md

```text
On Tue, Aug 5, 2025 at 10:52 PM Xin Zhao [ref] wrote:
>
> 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. Add hrtimer mode to help
> compensate for the shortcomings in real-time performance.
>
> Signed-off-by: Xin Zhao <redacted>

I doubt we need another CONFIG option ?

Also this seems to be beneficial for HZ=100 or HZ=250 configuration,
maybe worth mentioning in the changelog.

But more importantly, I think you should explain what difference this
really makes,
in which circumstances this timer needs to fire...

If real-time is a concern, maybe using a timer to perform GC-style operation
is a no go anyway...
```
