RDMA/mlx5: Refactor affinity related code
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:45 +0000 (22:21 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Sat, 2 May 2020 23:19:54 +0000 (20:19 -0300)
commit5163b2743ae00bf428a8a7e06839943b2f3965ed
tree5fdec0d9ad0ee45057d7c59ca1191a4f7dd4eed9
parent51aab12631dd7700385d275846ca49dc0b8c2124
RDMA/mlx5: Refactor affinity related code

Move affinity related code in modify qp to function.  It's a preparation
for next patch the extend the affinity calculation to consider the xmit
slave.

Link: https://lore.kernel.org/r/20200430192146.12863-16-maorg@mellanox.com
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c