]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/hfi1: Use VL15 for SM packets
authorKaike Wan <kaike.wan@intel.com>
Wed, 26 Sep 2018 17:56:12 +0000 (10:56 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 1 Oct 2018 01:21:12 +0000 (19:21 -0600)
commitbfe397c387748a0110708c0aad05a12ed549a3d4
tree38f49c1da8e7dfbc3aabc99f945d2fe450278eb3
parenteb50130964e8c1379f37c3d3bab33a411ec62e98
IB/hfi1: Use VL15 for SM packets

Subnet Management Packets (SMP) should exclusively use VL15 and their SL
is ignored (IBTA v1.3, Section 3.5.8.2). Therefore, when an SMP is posted,
the SL in the address handle can be set to 0 by a user
application. Consequently, when an address handle is created by the IB
core, some fields in struct rvt_ah may not be set correctly by using the
SL2SC and SC2VL tables at the time. Subsequently, when the request is post
sent, the incoming swqe may fail the validation check, resulting in the
rejection of the send request.

This patch fixes the problem by using VL15 for any validation, ignoring
the SL in the address handle.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/qp.c