On 4/2/26 12:10 PM, Eelco Chaudron via dev wrote:
> 
> 
> 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": {

"pmds" is generally not a good term, should probably just be "threads".

>     "3": {
>       "numa_id": 0,

The "_id" part may be redundant.

>       "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
> 

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to