IB/hfi1: Add mtu check for operational data VLs
authorAlex Estrin <alex.estrin@intel.com>
Wed, 26 Sep 2018 17:56:03 +0000 (10:56 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 1 Oct 2018 01:21:12 +0000 (19:21 -0600)
commiteb50130964e8c1379f37c3d3bab33a411ec62e98
tree110d162240d22d05ead8b862490cd7489dfd7e69
parent3144533bf667c8e53bb20656b78295960073e57b
IB/hfi1: Add mtu check for operational data VLs

Since Virtual Lanes BCT credits and MTU are set through separate MADs, we
have to ensure both are valid, and data VLs are ready for transmission
before we allow port transition to Armed state.

Fixes: 5e2d6764a729 ("IB/hfi1: Verify port data VLs credits on transition to Armed")
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/chip.c