net: sched: remove qdisc_watchdog->last_expires
Subsystems (3)
PATCH 1/1 net: sched: remove qdisc_watchdog->last_expires
This field mirrors hrtimer softexpires, we can instead use the existing helpers.
Signed-off-by Eric Dumazet <[email protected]>
--- include/net/pkt_sched.h | 1 - net/sched/sch_api.c | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-)
include/net/pkt_sched.h +0 -1
@@ -64,7 +64,6 @@ static inline psched_time_t psched_get_time(void) }struct qdisc_watchdog { -u64 last_expires;struct hrtimer timer;struct Qdisc *qdisc; };
net/sched/sch_api.c +4 -2
@@ -639,14 +639,16 @@ void qdisc_watchdog_schedule_range_ns(struct qdisc_watchdog *wd, u64 expires,return ;if (hrtimer_is_queued (&wd->timer)) { +u64 softexpires; + + softexpires =ktime_to_ns (hrtimer_get_softexpires (&wd->timer));/* If timer is already set in [expires, expires + delta_ns], * do not reprogram it. */ -if (wd->last_expires - expires <= delta_ns) +if (softexpires - expires <= delta_ns)return ; } - wd->last_expires = expires; hrtimer_start_range_ns(&wd->timer, ns_to_ktime(expires), delta_ns,
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 8 Mar 2023 18:26:48 +0000 you wrote:
This field mirrors hrtimer softexpires, we can instead use the existing helpers.
Signed-off-by Eric Dumazet <[email protected]>--- include/net/pkt_sched.h | 1 - net/sched/sch_api.c | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-)
Here is the summary with links:
- [net-next] net: sched: remove qdisc_watchdog->last_expires
https://git.kernel.org/netdev/net-next/c/62423bd2d2e2
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html