i40iw: Move cqp_cmd_head init to CQP initialization
authorBob Sharp <Robert.O.Sharp@intel.com>
Mon, 16 Oct 2017 20:46:05 +0000 (15:46 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 17:28:46 +0000 (13:28 -0400)
commitd2782739c1498e4425dcdeb79f90f9291e58f6f6
tree4c4e417b901d7632ad412f11b099c9f92f66935b
parentf535b56c39c81ba75c714b9163be540d39d3badd
i40iw: Move cqp_cmd_head init to CQP initialization

Control QP (CQP) command backlog list is initialized at
device initialization time.  It is not reinitialized in
the reset flow.  Move the initialization to CQP creation
time so the list can be initialized correctly for reset as well.

Fixes: 86dbcd0f12e9 ("i40iw: add file to handle cqp calls")
Signed-off-by: Bob Sharp <Robert.O.Sharp@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c