[PATCH v3] graph: expose node context as pointers

Robin Jarry rjarry at redhat.com
Mon Mar 25 16:20:35 CET 2024


Jerin Jacob, Mar 25, 2024 at 12:35:
> Another option could be to have a helper inline function/macro to take
> care of casting to make app code clean of casting.

Would something like this be suitable?

#define RTE_NODE_CTX_PTR1(n) ((void **)(n)->ctx)[0]
#define RTE_NODE_CTX_PTR2(n) ((void **)(n)->ctx)[1]



More information about the dev mailing list