IB/uverbs: Introduce and use helper functions to copy ah attributes
authorParav Pandit <parav@mellanox.com>
Thu, 17 Aug 2017 12:50:33 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
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 <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c