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, Jan 27, 2:38 AM
Unknown Object (File)
Sat, Jan 18, 2:11 AM
Unknown Object (File)
Thu, Jan 9, 10:33 PM
Unknown Object (File)
Dec 11 2024, 9:57 AM
Unknown Object (File)
Dec 4 2024, 3:18 PM
Unknown Object (File)
Nov 26 2024, 1:17 AM
Unknown Object (File)
Nov 25 2024, 1:08 AM
Unknown Object (File)
Nov 20 2024, 7:42 PM
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