]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Set port number for errorinfo MAD response
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Wed, 16 May 2018 01:31:17 +0000 (18:31 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 May 2018 15:39:25 +0000 (09:39 -0600)
commit4dd868ddcc5292349fb6514a2f574c0da0842323
treec0d0b3e45eb88199c297aa4336a391bf9c50348c
parentc6bc87fbdf7f06ebc6cbeaebe5b3cafabc1e372c
IB/hfi1: Set port number for errorinfo MAD response

For errorinfo MAD requests, the response has a 0 port number left over
from a memset. Instead we should always set the port number in the
response.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@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