]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r367269:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 10 Nov 2020 13:22:52 +0000 (13:22 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Tue, 10 Nov 2020 13:22:52 +0000 (13:22 +0000)
commita743ea246ec0509c834318f8aa1355558cee1b2a
treef19666e5a25e2c874040e5000ac98b2bf72546b8
parent2ffb327eb6aae30d1cd45a4ccb7ac558db2e93b2
MFC r367269:
Fix for referencing file via its vnode in ibore.

Use the native vnode lookup functions, instead of going via the LinuxKPI,
because the file referenced is typically created outside the LinuxKPI, and
the LinuxKPI's fdget() can only resolve file descriptor numbers which
were created by itself.

The vnode pointer is used as an identifier to identify XRCD handles which
are sharing resources.

This patch fixes the so-called XRCD support in ibcore for FreeBSD.
Refer to ibv_open_xrcd(3) for more information how the file descriptor
argument is used.

Reviewed by: kib@
Sponsored by: Mellanox Technologies // NVIDIA Networking
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c