IB/cma: Define option to set ack timeout and pack tos_set
authorDanit Goldberg <danitg@mellanox.com>
Thu, 24 Jan 2019 12:18:15 +0000 (14:18 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:14:21 +0000 (16:14 -0700)
commit2c1619edef61a03cb516efaa81750784c3071d10
treec51a1a7440a16ac8a996e7718ddaf00f45d5bfad
parentecb53febfcad565366762b7413b03452874643db
IB/cma: Define option to set ack timeout and pack tos_set

Define new option in 'rdma_set_option' to override calculated QP timeout
when requested to provide QP attributes to modify a QP.

At the same time, pack tos_set to be bitfield.

Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c
drivers/infiniband/core/cma_priv.h
drivers/infiniband/core/ucma.c
include/rdma/rdma_cm.h
include/uapi/rdma/rdma_user_cm.h