demikernel icon indicating copy to clipboard operation
demikernel copied to clipboard

[tcp] Extraneous Hash Table Lookups from QDesc to Connection State

Open BrianZill opened this issue 2 years ago • 1 comments

Currently, getting from a Queue Descriptor to an Established connection takes two separate hash table lookups. These lookups occur for several different fast-path API calls, and presumably could be reduced to a single hash table lookup, or something even faster.

BrianZill avatar May 19 '22 22:05 BrianZill

@BrianZill this is related to TCP, the other stacks and LibOSes don't have this.

ppenna avatar May 20 '22 11:05 ppenna

This is no longer the case now that we have unified on NetworkTransport's SocketDescriptor

iyzhang avatar Apr 27 '24 02:04 iyzhang

@iyzhang, as far as I recall, in most places as Brian suggested, we could invert the casting logic. Could you point us to at least three points in the code where such casting is not possible?

ppenna avatar Apr 29 '24 14:04 ppenna