[openib-general] Async event handlers: per consumer or per QP/CQ?
Sean Hefty
sean.hefty at intel.com
Fri Sep 3 11:08:22 PDT 2004
FYI - I'm out on vacation today, so may be slow to respond.
>To recap, the plan was to put the async handler in struct ib_device
>give each consumer a different copy of each device's struct
>ib_device. However, as I think about how to actually implement this,
>it starts to look like not such a good idea. If we want to give each
>consumer a copy of struct ib_device and still minimize the amount of
>pointer chasing that fast path functions do, it seems like this copy
>has to have all of the low-level driver's private state copied as well.
Hmm... it seems like you'd want to reference a single data structure, rather
than having copies. But, yes, then you end up following one more pointer to
get to needed data.
>In my mind the big simplification of the code far outweighs the slight
>additional memory usage. What are other people's thoughts?
I'm not opposed to this, especially if it seems like the way to go.
More information about the general
mailing list