]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IB/cma: Add default RoCE TOS to CMA configfs
authorMajd Dibbiny <majd@mellanox.com>
Tue, 14 Feb 2017 05:21:52 +0000 (07:21 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Feb 2017 14:51:28 +0000 (09:51 -0500)
commit89052d784bc977c2a0b92393f6bd57140952c206
treee5d873be24145516ba481a639da5f7381f7f1e21
parent590396084039b6504097b371cda6474dfcb83648
IB/cma: Add default RoCE TOS to CMA configfs

Add new entry to the RDMA-CM configfs that allows users
to select default TOS for RDMA-CM QPs.

This is useful for users that want to control the TOS for legacy
applications without changing their code.

Application that sets the TOS explicitly using the rdma_set_option
API will continue to work as expected, meaning overriding the configfs
value.

CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Documentation/ABI/testing/configfs-rdma_cm
drivers/infiniband/core/cma.c
drivers/infiniband/core/cma_configfs.c
drivers/infiniband/core/core_priv.h