[Differential] [Request, 4 lines] D1279: Fix crash when VIMAGE + Infiniband is compiled into the kernel
rodrigc (Craig Rodrigues)
phabric-noreply at FreeBSD.org
Sun Dec 7 22:53:57 UTC 2014
rodrigc created this revision.
rodrigc added reviewers: bz, hselasky.
rodrigc added a subscriber: freebsd-net.
REVISION SUMMARY
PR: 191468
Use CURVNET macros inside inet_get_local_port_range() function.
Without this fix, a kernel with VIMAGE + Infiniband will panic on bootup.
Certain necessary #include statements require LIST_HEAD.
Add these includes to ofed/include/linux/list.h, because
LIST_HEAD is specifically overridden in this file.
TEST PLAN
# Compile a kernel with the following kernel config:
include GENERIC
ident VIMAGE
options VIMAGE
options VNET_DEBUG
# InfiniBand support
options OFED # InfiniBand support
options SDP # SDP protocol
options IPOIB # IPoIB
options IPOIB_CM # IPoIB connected mode
# InfiniBand Adapters
device mlx4ib
device mlxen
device mthca
# bhyve kernel debug
device bvmdebug
# Boot it
REVISION DETAIL
https://reviews.freebsd.org/D1279
AFFECTED FILES
sys/ofed/include/linux/list.h
sys/ofed/include/net/ip.h
To: rodrigc, bz, hselasky
Cc: freebsd-net
More information about the freebsd-net
mailing list