Page MenuHomeFreeBSD

mlx4: convert to timer_setup() LinuxKPI
ClosedPublic

Authored by bz on Mon, Sep 14, 10:54 PM.
Tags
None
Referenced Files
F173065531: D59680.id186733.diff
Wed, Sep 23, 7:47 AM
F173040184: D59680.id.diff
Wed, Sep 23, 2:28 AM
F172991899: D59680.id186997.diff
Tue, Sep 22, 5:05 PM
Unknown Object (File)
Tue, Sep 22, 8:44 AM
Unknown Object (File)
Mon, Sep 21, 1:53 PM
Unknown Object (File)
Mon, Sep 21, 8:54 AM
Unknown Object (File)
Mon, Sep 21, 7:40 AM
Unknown Object (File)
Sun, Sep 20, 2:50 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 Passed
Unit
No Test Coverage
Build Status
Buildable 76906
Build 73789: arc lint + arc unit

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.