]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Set hdr_type when tx req is allocated
authorKaike Wan <kaike.wan@intel.com>
Mon, 9 Oct 2017 19:38:26 +0000 (12:38 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 14:13:00 +0000 (10:13 -0400)
commita3e23892c16d3de88636fe6cced3dac51c975625
tree5cc1dc1f6b0289b6886061efe598b2bfb85f8def
parentdfd3ac61f84e8ede08b11bea3414f18a59cff12b
IB/hfi1: Set hdr_type when tx req is allocated

Setting the protocol type should be part of initializing the tx request.
For UC and RC, the current protocol type is part of the qp priv structure.
For ud requests, it needs to be adjusted dynamically, based on the AV
posted with the WQE. This patch will simplify the initialization of the
tx request.

Fixes: 241e2ec91727 ("IB/hfi1: Add 16B RC/UC support")
Reviewed-by: Don Hiatt <don.hiatt@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/hw/hfi1/uc.c
drivers/infiniband/hw/hfi1/verbs_txreq.h