Re: [PATCH net-next] net/mlx5: Expose uar access and odp page fault counters

From: Simon Horman

Date: Fri Sep 26 2025 - 08:51:37 EST


On Thu, Sep 25, 2025 at 01:45:30PM +0300, Tariq Toukan wrote:
> From: Akiva Goldberger <agoldberger@xxxxxxxxxx>
>
> Add three counters to vnic health reporter:
> bar_uar_access, odp_local_triggered_page_fault, and
> odp_remote_triggered_page_fault.
>
> - bar_uar_access
> number of WRITE or READ access operations to the UAR on the PCIe
> BAR.
> - odp_local_triggered_page_fault
> number of locally-triggered page-faults due to ODP.
> - odp_remote_triggered_page_fault
> number of remotly-triggered page-faults due to ODP.
>
> Example access:
> $ devlink health diagnose pci/0000:08:00.0 reporter vnic
> vNIC env counters:
> total_error_queues: 0 send_queue_priority_update_flow: 0
> comp_eq_overrun: 0 async_eq_overrun: 0 cq_overrun: 0
> invalid_command: 0 quota_exceeded_command: 0
> nic_receive_steering_discard: 0 icm_consumption: 1032
> bar_uar_access: 1279 odp_local_triggered_page_fault: 20
> odp_remote_triggered_page_fault: 34
>
> Signed-off-by: Akiva Goldberger <agoldberger@xxxxxxxxxx>
> Reviewed-by: Moshe Shemesh <moshe@xxxxxxxxxx>
> Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>

...