RDMA/cma: Refactor to access multiple fields of rdma_dev_addr
authorParav Pandit <parav@mellanox.com>
Tue, 9 Jan 2018 13:58:55 +0000 (15:58 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 22 Jan 2018 18:39:50 +0000 (11:39 -0700)
commit2493a57bc10f4f67d241711b058e42c0b0f1b31a
tree2170d9a276e7098c25890c6dbdd8ca5ba564993e
parent00db63c128dd3daf38f481371976c24d32678142
RDMA/cma: Refactor to access multiple fields of rdma_dev_addr

Pass the rdma_cm_id so that multiple fields of the rdma_dev_addr
structure can be accessed, instead of passing each individual fields.

This is needed to access some additional fields in followup patches.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c