RDMA/cma: listening device cm_ids should inherit tos
authorSteve Wise <swise@opengridcomputing.com>
Fri, 1 Feb 2019 20:44:27 +0000 (12:44 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:15:40 +0000 (16:15 -0700)
commit9491128f780e5be382a5b22990439d017f6dfc59
tree38d325f517d7334e250645fd5077871b5496d732
parent2c1619edef61a03cb516efaa81750784c3071d10
RDMA/cma: listening device cm_ids should inherit tos

If a user binds to INADDR_ANY and sets the service id, then the
device-specific cm_ids should also use this tos.  This allows an app to
do:

rdma_bind_addr(INADDR_ANY)
set_service_type()
rdma_listen()

And connections setup via this listening endpoint will use the correct
tos.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c