RDMA/siw: Fix setting active_{speed, width} attributes
authorKamal Heib <kamalheib1@gmail.com>
Tue, 18 Feb 2020 09:59:11 +0000 (11:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 27 Feb 2020 20:40:40 +0000 (16:40 -0400)
commit25baba217cdfc1dfc75a9f427f4551b9a90e372b
tree3fe6fa7aef8d75979934f29540a52e82bb9f1b3c
parent65a166201552113f9e1e8d1bb4a55a1eb70cb19c
RDMA/siw: Fix setting active_{speed, width} attributes

Make sure to set the active_{speed, width} attributes to avoid reporting
the same values regardless of the underlying device.

Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
Link: https://lore.kernel.org/r/20200218095911.26614-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Tested-by: Bernard Metzler <bmt@zurich.ibm.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/siw/siw_verbs.c