xio: better way to assign connections to specific lane

Better way to assign connections to a specific lane of a portal
Avoiding lane competition/hogging.
This change resolves the slow ramping up and spiky behaviors during
clients starting/running I/Os.

Signed-off-by: Vu Pham <vu@mellanox.com>
This commit is contained in:
Vu Pham 2015-04-15 16:33:38 -07:00
parent 98cdf03363
commit bb621b074d

View File

@ -67,7 +67,7 @@ private:
inline Lane* get_lane(XioConnection *xcon)
{
return &qlane[((uint64_t) xcon) % nlanes];
return &qlane[(((uint64_t) xcon) / 16) % nlanes];
}
void enq(XioConnection *xcon, XioSubmit* xs)