]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
iw_cxgb4: use the MPA initiator's IRD if < our ORD
authorSteve Wise <swise@opengridcomputing.com>
Fri, 19 Aug 2016 14:29:08 +0000 (07:29 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 22 Aug 2016 19:00:42 +0000 (15:00 -0400)
commit30b03b1528b60623986ee0b50ec0e5dab9094be8
tree0c3a2f59b72589c1770e49348c2c0e8e52405bc7
parent7f446abf12d741f4e29f00c633cb5fa67c2eee71
iw_cxgb4: use the MPA initiator's IRD if < our ORD

The i40iw initiator sends an MPA-request with ird=16 and ord=16. The cxgb4
responder sends an MPA-reply with ord = 32 causing i40iw to terminate
due to insufficient resources.

The logic to reduce the ORD to <= peer's IRD was wrong.

Reported-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c