On 13 Mar 2026, at 21:50, Timothy Redaelli via dev wrote:
> When --format json is passed to ovs-appctl, pmd-sleep-show returns a
> JSON object with the default_max_sleep_us field and a 'pmds' array.
> Each element in the array has numa_id, core_id and max_sleep_us fields
> for the PMD thread.
>
> Example output:
> {"default_max_sleep_us":100,
> "pmds":[{"core_id":0,"max_sleep_us":100,"numa_id":0}]}
>
> Signed-off-by: Timothy Redaelli <[email protected]>
Hi Timothy,
For this patch, please index the PMDs by their core_id rather than using
an array. This allows direct lookup and is consistent with the approach
used for revalidators in patch 2. Here's the suggested structure:
{
"default_max_sleep_us": 100,
"pmds": {
"3": {
"numa_id": 0,
"max_sleep_us": 100
},
"5": {
"numa_id": 0,
"max_sleep_us": 100
},
"7": {
"numa_id": 1,
"max_sleep_us": 150
}
}
}
Also, please split the show function into separate text and JSON functions
like patch 5, and update the unit test to check the full output rather
than using grep.
Cheers,
Eelco
[...]
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- Re: [ovs-dev] [PATCH 1/5] ofproto-dpif: Add ... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH 1/5] ofproto-dpif: ... Ilya Maximets
- Re: [ovs-dev] [PATCH 1/5] ofproto-dp... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH 1/5] ofprot... Ilya Maximets
- [ovs-dev] [PATCH 2/5] ofproto-dpif-upcall: Add JS... Timothy Redaelli via dev
- Re: [ovs-dev] [PATCH 2/5] ofproto-dpif-upcal... Eelco Chaudron via dev
- [ovs-dev] [PATCH 4/5] dpif-netdev: Add JSON outpu... Timothy Redaelli via dev
- Re: [ovs-dev] [PATCH 4/5] dpif-netdev: Add J... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH 4/5] dpif-netdev: A... Ilya Maximets
- [ovs-dev] [PATCH 3/5] dpif-netdev: Add JSON outpu... Timothy Redaelli via dev
- Re: [ovs-dev] [PATCH 3/5] dpif-netdev: Add J... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH 3/5] dpif-netdev: A... Ilya Maximets
- Re: [ovs-dev] [PATCH 3/5] dpif-netde... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH 3/5] dpif-n... Ilya Maximets
- Re: [ovs-dev] [PATCH 3/5] d... Eelco Chaudron via dev
- [ovs-dev] [PATCH 5/5] dpctl: Add JSON output to d... Timothy Redaelli via dev
- Re: [ovs-dev] [PATCH 5/5] dpctl: Add JSON ou... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH 5/5] dpctl: Add JSO... Ilya Maximets
- Re: [ovs-dev] [PATCH 5/5] dpctl: Add... Eelco Chaudron via dev
- Re: [ovs-dev] [PATCH 5/5] dpctl:... Ilya Maximets
