]> 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)
commita92f315272dcd7b731fa46e8303ed2daf8cb48dd
treec0d0b3e45eb88199c297aa4336a391bf9c50348c
parent45c37a0364e96e1f93c9d368b8fe8d8e48b2fc19
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