- This patch introduces userspace library support for the bnxt_re RoCE driver.
- The library can be linked with RDMA applications such as perftest and rping.
- The RoCE traffic has been tested with the rping and perftest utility.
Details
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Overall this looks good, up to my ability to review it. A couple of really minor nits, plus a question based on a pull request that came in over the weekend.
contrib/ofed/libbnxtre/main.c | ||
---|---|---|
74 | I just reviewed a patch on github that adds 0x1801 as a BCM57504 NPAR. Is that needed here? | |
lib/ofed/libbnxtre/Makefile | ||
1 | Stray blank line | |
2 | Might be better to not use _<anything> for this, since I think that's reserved for the system implementation. | |
5 | why is this in /lib instead of /usr/lib? I'm not saying it's wrong, I just don't understand. |
contrib/ofed/libbnxtre/abi.h | ||
---|---|---|
43 | See style(9) for the proper ordering of includes | |
49 | Can these defines be avoided? Eg. we have stdbool.h. This really pollutes consumer's namespace. | |
lib/ofed/libbnxtre/Makefile | ||
5 | libmlx5.so is in /lib because libpcap.so is linked against it. |
contrib/ofed/libbnxtre/abi.h | ||
---|---|---|
43 | I will correct the ordering in the next revision. | |
49 | Agreed. I'll fix it and update it in the new revision. | |
contrib/ofed/libbnxtre/main.c | ||
74 | 0x1801 is not supported in RoCE. | |
lib/ofed/libbnxtre/Makefile | ||
1 | I kept the blank space for consistency with other modules Makefiles. I'll fix it and upload the new version | |
2 | Ok. I have taken the _spath name for consistency with the other modules Makefiles. I will remove the underscore prefix. Should I use SPATH in uppercase to be consistent with other system variables? | |
5 | Agreed to the Kib response. |
- Updated the Makefile. Renamed the _spath varaible to SPATH
- reordered the header files as per the style.9 man page standard
- removed the manual #define of bool flags.
- I missed updating the SPATH for CFLAGS in the Makefile. This has been corrected in the current revision.
I suppose the use of the library would come from the future changes. Also I cannot comment on the actual code for the bnxtre.