RDMA/mlx5: Refactor netdev affinity code
authorMark Bloch <markb@mellanox.com>
Thu, 28 Mar 2019 13:27:39 +0000 (15:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 10 Apr 2019 18:05:39 +0000 (15:05 -0300)
commit35b0aa67b29867cdeaee32f920da3cb300dbb851
tree228e1aaa257cc77a25b2322dfe24c57b2ee28752
parentd5ed8ac34cefc678d0633bfb88d0e20523ba3068
RDMA/mlx5: Refactor netdev affinity code

The design of representors is such that once an IB representor is created,
the netdev of representor already exists, we can use that fact to simplify
the netdev affinity code.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/ib_rep.c
drivers/infiniband/hw/mlx5/main.c