[PATCH v5 0/4] add pointer compression API
Konstantin Ananyev
konstantin.ananyev at huawei.com
Fri May 24 11:09:36 CEST 2024
> I have added macros to help find the parameters and I have added mempool
> functions that allow you to determine if you can use the mempool and
> what params it needs. The new mempool functions are mentioned in the
> docs for ptr compress.
> Please take a look at v11.
Great, thanks.
Will try to have a look in next few days.
With these functions in place, can we produce a unit-test that
will use together these new mempool functions and compress API?
Something like:
- allocate mempool
- deduce base_pointer for it
- main_loop_start:
producer(s): mempool_get(); <fill mbuf with some values>; ring_enqueue();
consumer(s): ring_dequeue(); <read_and_check_mbuf_data>; mempool_put();
- main_loop_end
- free mempool
> I did not add a new make pkt buf API that takes mempool flags as this
> would be a much bigger task requiring a lot of new APIs and I think this
> is something that is useful but not directly related to this patchset.
> It's something I could I develop separately without having to worry
> about 24.07 deadlines.
Yep, agree, it sounds like a subject for a separate patch series.
Konstantin
More information about the dev
mailing list