RDMA/siw: Fix setting active_mtu attribute
authorKamal Heib <kamalheib1@gmail.com>
Wed, 5 Feb 2020 08:13:54 +0000 (10:13 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Feb 2020 18:32:35 +0000 (14:32 -0400)
commitbeb205dd67aaa4315dedf5c40b47c6e9dee5a469
treeaea0758695186f32ac2505ae6399819afd872842
parent9a4b24108d92ffaa886e37923088bd806b988948
RDMA/siw: Fix setting active_mtu attribute

Make sure to set the active_mtu attribute to avoid report the following
invalid value:

$ ibv_devinfo -d siw0 | grep active_mtu
active_mtu: invalid MTU (0)

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