]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Improve latency in ipoib/cm connection formation
authorManjunath Patil <manjunath.b.patil@oracle.com>
Tue, 13 Apr 2021 18:36:05 +0000 (11:36 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 19 Apr 2021 17:55:46 +0000 (14:55 -0300)
commitf72d76aff4654afebe08c4bfe8f0378abc98df9e
tree4be5240a073cf6640374cbbd6d40f9344905f0f9
parent13c5988c4a169c238bc319aa7ad2e96436a905c7
IB/ipoib: Improve latency in ipoib/cm connection formation

Currently IPoIB connected mode queries the device to get the pkey table
entry during connection formation. This will increase the time taken to
form the connection, especially when limited pkeys are in use.  This gets
worse when multiple connection attempts are done in parallel.

Since ipoib interfaces are locked to a single pkey, use the pkey index
that was determined at link up time instead of searching for anything.

This improved the latency from 500ms to 1ms on an internal setup.

Link: https://lore.kernel.org/r/1618338965-16717-1-git-send-email-manjunath.b.patil@oracle.com
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Manjunath Patil <manjunath.b.patil@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c