RE: [PATCH v2 07/13] IB/cma: Helper functions to access port space IDRs

Hefty, Sean
2015-07-27T22:48:58Z

> 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.

Why?

> drivers/infiniband/core/cma.c | 81 ++++++++++++++++++++++++++++++++------
> -----
> 1 file changed, 60 insertions(+), 21 deletions(-)

This change adds code, and AFAICT makes it less efficient. What purpose does it serve?