Skip to contentSkip to conversation

IB Netlink Infrastructure

PATCH Superseded Nir Muchtar 1 participant 1 message Nov 14, 2010

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 IB Netlink Infrastructure

The basic IB netlink infrastructure and makefile addons.
A new kernel module is implemented which doesn't depend on IB modules. It allows for registration of IB module for which data is to be exported.

---
 drivers/infiniband/Kconfig        |    8 ++
 drivers/infiniband/core/Makefile  |    6 +
 drivers/infiniband/core/netlink.c |  182 +++++++++++++++++++++++++++++++++++++
 include/linux/netlink.h           |    1 +
 include/net/ib_netlink.h          |   41 ++++++++
 5 files changed, 238 insertions(+), 0 deletions(-)
 create mode 100644 drivers/infiniband/core/netlink.c
 create mode 100644 include/net/ib_netlink.h
drivers/infiniband/Kconfig +8 -0
index 6e35ecc..8d8a40a 100644
@@ -30,6 +30,14 @@ config INFINIBAND_USER_ACCESS
 	  libibverbs, libibcm and a hardware driver library from
 	  <http://www.openfabrics.org/git/>.
 
+config INFINIBAND_NETLINK
+	tristate "InfiniBand netlink interface"
+	---help---
+	  Infiniband netlink infrastrucure and modules. This allows
+	  for IB module data to be exported into userspace using
+	  netlink socket applications.
+	  <http://www.openib.org>.
+
 config INFINIBAND_USER_MEM
 	bool
 	depends on INFINIBAND_USER_ACCESS != n
drivers/infiniband/core/Makefile +6 -0
index cb1ab3e..c088233 100644
@@ -7,6 +7,8 @@ obj-$(CONFIG_INFINIBAND_USER_MAD) +=	ib_umad.o
 obj-$(CONFIG_INFINIBAND_USER_ACCESS) +=	ib_uverbs.o ib_ucm.o \
 					$(user_access-y)
 
+obj-$(CONFIG_INFINIBAND_NETLINK) +=	ib_netlink.o ib_netlink_rdma_cm.o
+
 ib_core-y :=			packer.o ud_header.o verbs.o sysfs.o \
 				device.o fmr_pool.o cache.o
 ib_core-$(CONFIG_INFINIBAND_USER_MEM) += umem.o
@@ -30,3 +32,7 @@ ib_umad-y :=			user_mad.o
 ib_ucm-y :=			ucm.o
 
 ib_uverbs-y :=			uverbs_main.o uverbs_cmd.o uverbs_marshall.o
+
+ib_netlink-y :=			netlink.o
+
+ib_netlink_rdma_cm-y :=			netlink_cma.o
drivers/infiniband/core/netlink.c new file +182 -0

182 lines not on this page · raw message

include/linux/netlink.h +1 -0
index 1235669..c9693f9 100644
@@ -24,6 +24,7 @@
 /* leave room for NETLINK_DM (DM Events) */
 #define NETLINK_SCSITRANSPORT	18	/* SCSI Transports */
 #define NETLINK_ECRYPTFS	19
+#define NETLINK_INFINIBAND	20
 
 #define MAX_LINKS 32		
 
include/net/ib_netlink.h new file +41 -0

41 lines not on this page · raw message

Signature · 6 lines
1.7.0.4

--
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