]> git.itanic.dy.fi Git - linux-stable/commit
IB/hfi1: Use a common pad buffer for 9B and 16B packets
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 4 Oct 2019 20:49:34 +0000 (16:49 -0400)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Oct 2019 20:32:25 +0000 (16:32 -0400)
commit22bb13653410424d9fce8d447506a41f8292f22f
tree59ea0a6a8298c9c70a403aae2ed4695ef1d51899
parent9ed5bd7d22241ad232fd3a5be404e83eb6cadc04
IB/hfi1: Use a common pad buffer for 9B and 16B packets

There is no reason for a different pad buffer for the two
packet types.

Expand the current buffer allocation to allow for both
packet types.

Fixes: f8195f3b14a0 ("IB/hfi1: Eliminate allocation while atomic")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Link: https://lore.kernel.org/r/20191004204934.26838.13099.stgit@awfm-01.aw.intel.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/sdma.c
drivers/infiniband/hw/hfi1/verbs.c