IB/hfi1: Complete check for locally terminated smp
authorAlex Estrin <alex.estrin@intel.com>
Wed, 2 May 2018 13:42:36 +0000 (06:42 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 19:53:29 +0000 (15:53 -0400)
commit959f2d172daa0133e4d5b7a64344f8b2c2d87fc1
tree8723bbec6d035ec479fde7d9d75e8dd78be703e3
parent48e0a6559dd8e6aa87841270868423b23076220e
IB/hfi1: Complete check for locally terminated smp

For lid routed packets 'hop_cnt' is zero, therefore current
test is incomplete. Fix it by using local mad check for
both lid routed and direct routed MADs.

Reviewed-by: Mike Mariciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/mad.c