IB/uverbs: Introduce and use helper functions to copy ah attributes
authorParav Pandit <[email protected]>
Thu, 17 Aug 2017 12:50:33 +0000 (15:50 +0300)
committerDoug Ledford <[email protected]>
Thu, 24 Aug 2017 20:27:10 +0000 (16:27 -0400)
commit89caa0538ecf2114e1badbb1e75120d25bec985e
treec0dabbffb8bf6f0a7c6e8747202b74a694405b44
parent5ab2d89b85a6c5c2d7604c9674f77a68f3d24f91
IB/uverbs: Introduce and use helper functions to copy ah attributes

This patch introduces two helper functions to copy ah attributes
from uverbs to internal ib_ah_attr structure and the other way
during modify qp and query qp respectively.

Signed-off-by: Parav Pandit <[email protected]>
Reviewed-by: Daniel Jurgens <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/core/uverbs_cmd.c