]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid enabling MSI-X if MSI-X is disabled globally
authorshurd <shurd@FreeBSD.org>
Mon, 30 Oct 2017 21:08:12 +0000 (21:08 +0000)
committershurd <shurd@FreeBSD.org>
Mon, 30 Oct 2017 21:08:12 +0000 (21:08 +0000)
commitb8ebc4c70f31c1708fe9efcd7817f14eb1150e69
treeb744b0c9cf3304405ded3420c4e4317e33d77835
parent22fab237c9f5af92476808f50a6ead95c306fa7c
Avoid enabling MSI-X if MSI-X is disabled globally

It was reported on the community call that with
hw.pci.enable_msix=0, iflib would enable MSI-X on the device and attempt
to use it, which caused issues. Test the sysctl explicitly and do not
enable MSI-X if it's disabled globally.

Reviewed by: sbruno
Approved by: sbruno (mentor)
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D12805
sys/net/iflib.c