]> asedeno.scripts.mit.edu Git - linux.git/commit
i40iw: Fix the connection ORD value for loopback
authorTatyana Nikolova <tatyana.e.nikolova@intel.com>
Fri, 22 Dec 2017 15:47:02 +0000 (09:47 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 22 Dec 2017 20:46:11 +0000 (13:46 -0700)
commitfefa06811cc7b1c25904579833b4f319cde3ce7f
tree9c3c7f64006e29001b3614225076a4c2d54a0d83
parentce9ce74145aa6814a370a9ff4f5a1d719baaced1
i40iw: Fix the connection ORD value for loopback

The accepting QP ORD value should be adjusted not to
exceed the peer QP IRD value (RFC 6581). This is
skipped for loopback. After the ORD is validated
by i40iw_record_ird_ord(), adjust the ORD value of
the loopback accepting QP to prevent overrunning the
IRD space of the peer QP. Also move the ORD accounting
for 0-byte RDMA read to i40iw_record_ird_ord().

Fixes: f27b4746f378 ("i40iw: add connection management code")
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c