Page MenuHomeFreeBSD

ixgbe: fix compilation for VF
ClosedPublic

Authored by dougm on Sep 20 2024, 6:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 2:25 AM
Unknown Object (File)
Wed, Oct 15, 2:25 AM
Unknown Object (File)
Thu, Oct 2, 3:22 PM
Unknown Object (File)
Sep 13 2025, 4:00 AM
Unknown Object (File)
Sep 5 2025, 11:33 PM
Unknown Object (File)
Sep 5 2025, 4:09 PM
Unknown Object (File)
Aug 29 2025, 5:03 PM
Unknown Object (File)
Aug 21 2025, 6:57 AM
Subscribers

Details

Summary

Adding the mailbox API to ixgbe has broken compilation. A comment in ixgbe_mbx.h says "VF: Only the very first (0) set should be used" right before an array of 64 ops is defined. However, in some vf-related code, "ops" is used without an array index and compilation fails. This change adds a [0] index to "ops" in enough places to allow compilation to complete.

Diff Detail

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