]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17ed12e414b38805ca6bca21212a07534dc810e4
tree8723bbec6d035ec479fde7d9d75e8dd78be703e3
parenta2af87211bb7d69d02582ec9cf1811d27ec0cb22
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