IB/cma: Helper functions to access port space IDRs
authorHaggai Eran <haggaie@mellanox.com>
Thu, 30 Jul 2015 14:50:20 +0000 (17:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 19:48:23 +0000 (15:48 -0400)
commitaac978e15230fccb7a3e9190eb58732925019300
tree6a20949008dc07bcb60ff758fa000588dd9ce5aa
parent0c505f70a28d943e15a6702ca75bea4f332a03ed
IB/cma: Helper functions to access port space IDRs

Add helper functions to access the IDRs by port-space and port number.

Pass around the port-space enum in cma.c instead of using pointers to
port-space IDRs.

Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Yotam Kenneth <yotamke@mellanox.com>
Signed-off-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Guy Shapiro <guysh@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c