Page MenuHomeFreeBSD

mlx4: convert to timer_setup() LinuxKPI
AcceptedPublic

Authored by bz on Mon, Sep 14, 10:54 PM.

Details

Reviewers
kib
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