Page MenuHomeFreeBSD

ixgbe: fix compilation for VF
ClosedPublic

Authored by dougm on Sep 20 2024, 6:23 AM.
Tags
None
Referenced Files
F139485386: D46708.diff
Fri, Dec 12, 3:39 PM
Unknown Object (File)
Fri, Nov 28, 1:06 PM
Unknown Object (File)
Fri, Nov 28, 2:03 AM
Unknown Object (File)
Thu, Nov 27, 4:11 PM
Unknown Object (File)
Thu, Nov 27, 4:10 PM
Unknown Object (File)
Tue, Nov 25, 1:50 PM
Unknown Object (File)
Tue, Nov 25, 12:48 AM
Unknown Object (File)
Sun, Nov 23, 11:40 PM
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

Lint
Lint Skipped
Unit
Tests Skipped