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>
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)