Page MenuHomeFreeBSD

mlx4: convert to timer_setup() LinuxKPI
ClosedPublic

Authored by bz on Mon, Sep 14, 10:54 PM.
Tags
None
Referenced Files
F174713647: D59680.id186736.diff
Mon, Oct 5, 10:27 AM
Unknown Object (File)
Sun, Oct 4, 1:23 PM
Unknown Object (File)
Sun, Oct 4, 1:00 PM
Unknown Object (File)
Fri, Oct 2, 3:17 AM
Unknown Object (File)
Fri, Oct 2, 3:10 AM
Unknown Object (File)
Thu, Oct 1, 7:11 PM
Unknown Object (File)
Thu, Oct 1, 6:26 PM
Unknown Object (File)
Thu, Oct 1, 1:00 PM
Subscribers

Details

Summary

The Linux driver switched away from using this timer in e22979d96a55d.
Locally adjust the code to use timer_setup/from_timer in order to get
us out of Linux version 4.15 (and earlier) KPIs.

MFC after: 3 days

Test Plan

Please add others to the review as you see fit.
I CANNOT TEST THIS.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Mon, Sep 14, 10:54 PM
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
438

Switch to timer_container_of() right away.

Also apply 41cb08555c416 from_timer -> timer_container_of.

Nvidia cannot test this either. Consider my review as just a fellow committer looking at the same code.

This revision is now accepted and ready to land.Tue, Sep 15, 5:29 AM
In D59680#1369793, @kib wrote:

Nvidia cannot test this either. Consider my review as just a fellow committer looking at the same code.

Thanks a lot! I guess time will tell :)

This revision was automatically updated to reflect the committed changes.