Hi Damjan,

It is intentionally done this way as we don’t want people to assign rx
> queues to threads which are not worker threads. I will prefer that this
> stays as it is…
>

 Oh, good point, I get it. Is there any recommended way to calculate
worker_id from show_thread API output?

typedef struct __attribute__ ((packed)) _vl_api_thread_data {
    u32 id;
    u8 name[64];
    u8 type[64];
    u32 pid;
    u32 cpu_id;
    u32 core;
    u32 cpu_socket;
} vl_api_thread_data_t;

Right now I iterate over the threads and increment worker_id for each
thread with type "workers".

Thank you for the quick response!
Vladimir Isaev
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15723): https://lists.fd.io/g/vpp-dev/message/15723
Mute This Topic: https://lists.fd.io/mt/71860601/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to