linux/drivers/infiniband/ulp
Alex Estrin f63bb02694 IB/ipoib: Fix for potential no-carrier state
[ Upstream commit 1029361084 ]

On reboot SM can program port pkey table before ipoib registered its
event handler, which could result in missing pkey event and leave root
interface with initial pkey value from index 0.

Since OPA port starts with invalid pkey in index 0, root interface will
fail to initialize and stay down with no-carrier flag.

For IB ipoib interface may end up with pkey different from value
opensm put in pkey table idx 0, resulting in connectivity issues
(different mcast groups, for example).

Close the window by calling event handler after registration
to make sure ipoib pkey is in sync with port pkey table.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-04-26 11:02:15 +02:00
..
ipoib IB/ipoib: Fix for potential no-carrier state 2018-04-26 11:02:15 +02:00
iser IB: Correct MR length field to be 64-bit 2017-09-25 11:47:23 -04:00
isert iser-target: avoid reinitializing rdma contexts for isert commands 2018-03-24 11:01:25 +01:00
opa_vnic IB/opa_vnic: Properly return the total MACs in UC MAC list 2017-12-25 14:26:30 +01:00
srp IB/srp: Fix completion vector assignment algorithm 2018-04-24 09:36:32 +02:00
srpt IB/srpt: Fix ACL lookup during login 2018-01-17 09:45:17 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00