]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Move MPA request event for loopback after connect
authorTatyana Nikolova <tatyana.e.nikolova@intel.com>
Tue, 21 Nov 2017 22:18:33 +0000 (16:18 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 1 Dec 2017 19:21:25 +0000 (12:21 -0700)
commitfa82014023cdb2b1b7dd30e345f0283e0320ad7f
treeb24109cac334ba492269648858856755eb82aebf
parent0a5eb833dc815d375cb103bbb1d500a6459f2646
i40iw: Move MPA request event for loopback after connect

For loopback, a MPA request event is generated when cm_node
is initialized, which allows applications to act on the
connect request before i40iw_connect() has completed.
In some cases, the reject flow executes in parallel with
the connect flow and doesn't delete an APBVT entry,
because the apbvt_set variable is still not set by the
connect flow. Move the MPA request event to the end of
i40iw_connect() to notify application for a connect
request, after connect has completed.

Fixes: 11419b4d0754 ("i40iw: add connection management code")
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@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