linux_dsm_epyc7002/drivers/infiniband/hw
Michael J. Ruhl 935c84ac64 IB/hfi1: Error path MAD response size is incorrect
If a MAD packet has incorrect header information, the logic uses the reply
path to report the error.  The reply path expects *resp_len to be set
prior to return.  Unfortunately, *resp_len is set to 0 for this path.
This causes an incorrect response packet.

Fix by ensuring that the *resp_len is defaulted to the incoming packet
size (wc->bytes_len - sizeof(GRH)).

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: Jason Gunthorpe <jgg@mellanox.com>
2018-09-30 19:21:11 -06:00
..
bnxt_re RDMA: Fully setup the device name in ib_register_device 2018-09-26 13:51:36 -06:00
cxgb3 RDMA: Fully setup the device name in ib_register_device 2018-09-26 13:51:36 -06:00
cxgb4 RDMA: Fully setup the device name in ib_register_device 2018-09-26 13:51:36 -06:00
hfi1 IB/hfi1: Error path MAD response size is incorrect 2018-09-30 19:21:11 -06:00
hns RDMA/hns: fix spelling mistake "reseved" -> "reserved" 2018-09-27 12:25:15 -06:00
i40iw RDMA: Fully setup the device name in ib_register_device 2018-09-26 13:51:36 -06:00
mlx4 RDMA: Fully setup the device name in ib_register_device 2018-09-26 13:51:36 -06:00
mlx5 IB/mlx5: Enable DEVX on IB 2018-09-27 13:01:33 -06:00
mthca IB/mthca: remove redundant inner check of mdev->mthca_flags 2018-09-26 16:34:11 -06:00
nes RDMA/drivers: Use dev_name instead of ibdev->name 2018-09-26 13:51:48 -06:00
ocrdma RDMA/drivers: Use dev_name instead of ibdev->name 2018-09-26 13:51:48 -06:00
qedr RDMA/drivers: Use dev_name instead of ibdev->name 2018-09-26 13:51:48 -06:00
qib IB/{hfi1, qib, rdmavt}: Schedule multi RC/UC packets instead of posting 2018-09-11 09:55:02 -06:00
usnic RDMA/drivers: Use dev_name instead of ibdev->name 2018-09-26 13:51:48 -06:00
vmw_pvrdma RDMA/drivers: Use dev_name instead of ibdev->name 2018-09-26 13:51:48 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00