Repository navigation
FreeBSD port - #1778
Open
kostikbel wants to merge 36 commits into
Open
FreeBSD port#1778kostikbel wants to merge 36 commits into
kostikbel wants to merge 36 commits into
Conversation
kostikbel
force-pushed
the
freebsd
branch
10 times, most recently
from
July 24, 2026 05:42
4c422c5 to
a207c6f
Compare
arrowd
reviewed
Jul 30, 2026
kostikbel
force-pushed
the
freebsd
branch
5 times, most recently
from
August 5, 2026 08:19
69929aa to
102be74
Compare
kostikbel
force-pushed
the
freebsd
branch
2 times, most recently
from
August 11, 2026 19:37
a6eadf0 to
7737029
Compare
kostikbel
force-pushed
the
freebsd
branch
3 times, most recently
from
September 11, 2026 04:13
9650b6b to
fce59a7
Compare
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
rleon
reviewed
Nov 17, 2026
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
…ockaddr Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
The actions[] argument to mlx5dv_dr_action_create_modify_header() is u64/uint64_t *. And on FreeBSD u64 is unsigned long, while on Linux it is unsigned long long. Both types have the same bit representation, but they are different in the C. Properly import types from linux/types.h, and add a placeholder to inform cython about __be64 existence with ctypedef (any integer type would work, according to the cython documentation). Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
sysfs nodes are translated to sysctl MIBs same as it is done in the in-tree OFED port. Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
…/modalias") Construct pci vendor:devid string in Linux format. Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
kostikbel
force-pushed
the
freebsd
branch
4 times, most recently
from
November 20, 2026 10:59
62c65da to
a9c9294
Compare
Author
Well, each comment was handled. Same for the second batch of the comments. |
to avoid conflict with the legacy base OFED libraries. Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
describing FreeBSD port requirements and the WIP. Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Allow to have #ifdef/#endif blocks inside the structure definition, using canonical system name in C preprocessor. Currently only __linux__ and __FreeBSD__ are recognized. Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
…eate_cq Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
On FreeBSD libudev is a 3rd-party library and is installed into a non-default compiler search path, so we need to supply -I flags properly. Note that UDEV_INCLUDE_DIRS is already being used in the root CMakeLists.txt, but it had no effect before this change. Signed-off-by: Gleb Popov <arrowd@FreeBSD.org>
Signed-off-by: Gleb Popov <arrowd@FreeBSD.org>
Signed-off-by: Gleb Popov <arrowd@FreeBSD.org>
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
Signed-off-by: Konstantin Belousov <kib@FreeBSD.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the FreeBSD build infrastructure allowing rdma-core to be built and used on FreeBSD.
There were several kernel fixes that are already in FreeBSD main and stable/15.
I tried to do as little of the source code modifications as possible. For some cases, I added the glibc API to the FreeBSD base.
Significant number of portability issues are handled by providing the compat shims in freebsd-headers, implementing
Linux-specific features using the FreeBSD native way.
In some cases it was not possible, so there are quite limited number of the direct code patches.
Since FreeBSD mimics the Linux' /sysfs with the sys hierarchy of the sysctl tree, I split the sysfs code into real sysfs for Linux, and wrappers around sysctl for FreeBSD. This again avoid modifying the Linux code, but renames the source file name.
I was told to create a cumulative PR instead of pushing by single commmit.
Please consider.