IB/hfi1: Use 4096 for default active MTU in query_qp
authorJan Sokolowski <jan.sokolowski@intel.com>
Tue, 14 Nov 2017 12:34:45 +0000 (04:34 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Dec 2017 23:19:40 +0000 (16:19 -0700)
commit69a3ffaa0a43d1c5a34b6f52aa08a5fc3d8d87d4
treed6afaa11b89191d467a8445efc797d2a2e619bfc
parentc5c4e40e90b5c714248bcf4e8a63b1a1cd07c11e
IB/hfi1: Use 4096 for default active MTU in query_qp

Currently, if a port is queried that has an invalid
Maximum Transmission Unit, driver reports default MTU of 2048.
This in incorrect.

Use default value of 4096 if invalid.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/verbs.c