IB/cma: Add configfs for rdma_cm
authorMatan Barak <matanb@mellanox.com>
Wed, 23 Dec 2015 12:56:55 +0000 (14:56 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:39:52 +0000 (10:39 -0500)
commit045959db65c67d7189dc89ecddb5fa10aafa449d
tree6b29c2d20fa2a8eb119f90221c04762c7ef75f2d
parent218a773f7632d8553638c76d3a5a8c77e82ccea1
IB/cma: Add configfs for rdma_cm

Users would like to control the behaviour of rdma_cm.
For example, old applications which don't set the
required RoCE gid type could be executed on RoCE V2
network types. In order to support this configuration,
we implement a configfs for rdma_cm.

In order to use the configfs, one needs to mount it and
mkdir <IB device name> inside rdma_cm directory.

The patch adds support for a single configuration file,
default_roce_mode. The mode can either be "IB/RoCE v1" or
"RoCE v2".

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Documentation/ABI/testing/configfs-rdma_cm [new file with mode: 0644]
drivers/infiniband/Kconfig
drivers/infiniband/core/Makefile
drivers/infiniband/core/cache.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/cma_configfs.c [new file with mode: 0644]
drivers/infiniband/core/core_priv.h