Page MenuHomeFreeBSD

igc: Fix a bogus register write in igc_if_queues_free()
ClosedPublic

Authored by markj on Oct 26 2024, 5:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 11, 10:25 PM
Unknown Object (File)
Fri, May 8, 2:45 AM
Unknown Object (File)
Thu, May 7, 3:05 PM
Unknown Object (File)
Sun, May 3, 8:52 AM
Unknown Object (File)
Wed, Apr 29, 3:31 AM
Unknown Object (File)
Tue, Apr 28, 4:58 PM
Unknown Object (File)
Mon, Apr 20, 3:01 AM
Unknown Object (File)
Sun, Apr 19, 12:14 AM
Subscribers

Details

Summary

As explained in PR 277038, iflib calls IFDI_DETACH() and then
IFDI_QUEUES_FREE(). With igc, the latter writes to a register after it
has been unmapped.

igc_if_detach() already calls igc_release_hw_control(), and looking at
callers of igc_if_queues_free(), that appears to be sufficient. So,
just remove the igc_release_hw_control() call.

PR: 277038
Diagnosed by: Mike Belanger <mibelanger@qnx.com>

Test Plan

I have no igc hardware and can't test this, any testing would be appreciated.

Diff Detail

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