]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/iw_cxgb4: only read markers_enabled mod param once
authorHariprasad S <hariprasad@chelsio.com>
Thu, 9 Jun 2016 19:35:11 +0000 (01:05 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 14:43:19 +0000 (10:43 -0400)
commit3d4e79949cf9e8032f0cd1f91564c6ce3304755c
tree32ca0e6e66956b469575e22d920c47a84718d8ec
parent5edb56491d4812c42175980759da53388e5d86f5
RDMA/iw_cxgb4: only read markers_enabled mod param once

markers_enabled should be read only once during MPA negotiation.
The present code does read markers_enabled twice during negotiation
which results in setting wrong recv/xmit markers if the markers_enabled is
changed in the middle of negotiation.
With this change the markers_enabled is read only once during MPA
negotiation. recv markers are set based on markers enabled module
parameter and xmit markers are set based on markers flag from the
MPA_START_REQ/MPA_START_REP.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c