ibacm: Add support for pathrecord query through netlink
Subsystems (2)
PATCH v9 1/1 ibacm: Add support for pathrecord query through netlink
From: Kaike Wan <[email protected]>
This patch enables ibacm to process pathrecord queries through netlink. Since ibacm can cache pathrecords, this implementation provides an easy pathrecord cache for kernel components and therefore offers great performance advantage on large fabric systems.
---
Changes since v8:
- Remove the status attribute and related code;
- Add a header file acm_netlink.h so that the code can be built in older system without the latest rdma_netlink.h header file;
- Add code to deal with netlink socket initialization error and close.
Changes since v7:
- Add the defines for netlink status code, which have been deleted from the kernel rdma_netlink.h file.
- Add the resolve family header to the netlink request message and modify the processing code accordingly.
- Return the pathrecord data flags based on the input path_use parameter in the resolve family header.
Changes since v6:
- No change. Sync the version number with kernel patches.
Changes since v5:
- Change the parsing of request attributes due to the introduction of path_use and change of byte order for attribute data.
Changes since v4:
- Add error handling for unknown or incorrectly formated attributes. The request will be NACKed.
Changes since v3:
- Change the parsing from struct ib_user_path_rec to basic attributes.
Changes since v2:
- Redesign the communication protocol between the kernel and ibacm, as described below:
http://www.spinics.net/lists/linux-rdma/msg25621.html
Changes since v1:
- Check rmpp_flags for rmpp MAD instead of rmpp_version.
Makefile.am | 2 +- src/acm.c | 365 +++++++++++++++++++++++++++++++++++++++++++++++++++++- src/acm_netlink.h | 128 +++++++++++++++++++ 3 files changed, 491 insertions(+), 4 deletions(-) create mode 100644 src/acm_netlink.h
Makefile.am +1 -1
@@ -37,7 +37,7 @@ man_MANS = \ man/ibacm.7 EXTRA_DIST = src/acm_util.h prov/acmp/src/libibacmp.map include/acm_mad.h src/libacm.h ibacm.init.in \ - linux/osd.h linux/dlist.h ibacm.spec.in $(man_MANS) ibacm_hosts.data + linux/osd.h linux/dlist.h ibacm.spec.in $(man_MANS) ibacm_hosts.data src/acm_netlink.h install-exec-hook: install -D -m 755 ibacm.init $(DESTDIR)$(sysconfdir)/init.d/ibacm;
src/acm.c +362 -3
439 lines not on this page · raw message
src/acm_netlink.h new file +128 -0
128 lines not on this page · raw message
Signature · 5 lines
1.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html