]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Update pathrec field if not valid record
authorErez Shitrit <erezsh@mellanox.com>
Tue, 14 Nov 2017 12:51:54 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:05 +0000 (15:37 -0700)
commit46034535a5e3ccacd0749e4692eee7d7f59a62a9
tree3b537be0f595296baae3ff906cac90f550b77547
parentd0be0bdd9e855034105ea9f70e51d58ed3932b4d
IB/ipoib: Update pathrec field if not valid record

In case that the PathRecord is not valid (SM changed its network prefix)
ipoib will continue issue PathQuery requests with the same parameters
that are in its database, which are no longer valid anymore.

Now the driver in that case will re-initialize the record from a valid
place (the priv structure keeps the updated values), and a valid request
will be issued.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c