commit | c2409810c0c9148bca4c3e13ac96dced1e4c11c5 | [log] [tgz] |
---|---|---|
author | Leon Romanovsky <leonro@mellanox.com> | Mon Jan 01 13:07:14 2018 +0200 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Tue Jan 02 13:36:57 2018 -0700 |
tree | 13267c24fd220221f111cddc9bdde81ecd68bc2e | |
parent | 924b8900a49df284464db5d97362801f8a2ac7b4 [diff] |
RDMA/nldev: Refactor setting the nldev handle to a common function The NLDEV commands are using IB device indexes and names as a handle for netlink communications. Put all relevant code into one function to remove code duplication in followup patches. Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>