Hello,
I’ve created a DPA group using the dpaeumgmt
tool, and am trying to use the group with the affinity and thread flow in the DOCA DPA documentation.
doca_error_t doca_dpa_eu_affinity_create(struct doca_dpa *dpa, struct doca_dpa_eu_affinity **affinity)
doca_error_t doca_dpa_eu_affinity_set(struct doca_dpa_eu_affinity *affinity, unsigned int eu_id)
doca_error_t doca_dpa_thread_create(struct doca_dpa *dpa, struct doca_dpa_thread **dpa_thread)
doca_error_t doca_dpa_thread_set_affinity(struct doca_dpa_thread *thread, struct doca_dpa_eu_thread_affinity *eu_affinity)
I’ve set eu_id
to my group ID (1), but I’m not sure if this is the right way. Performance numbers remain the same no matter what eu_id
I use, then increase when I don’t set an affinity at all (assumedly because I’m using all DPAs at that point). It seems as though eu_id
is referring to a single EU, not the group.
In the dpaeumgmt
documentation we see
After successfully creating an EU group, users can run a DPA thread using group affinity with the affinity type set to the group's ID.
There seems to be no explicit DPA group setting right now in the API. Is this currently supported?
Thank you.