From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25EA443730; Tue, 19 Dec 2023 12:09:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B9422402DE; Tue, 19 Dec 2023 12:09:06 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id E43B540283 for ; Tue, 19 Dec 2023 12:09:05 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id C0F4E43745; Tue, 19 Dec 2023 12:09:05 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1336] Statistic counter rx_missed_errors always shows zero no matter how large the traffic was generated on Mellanox NICs Date: Tue, 19 Dec 2023 11:09:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 22.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: pony.ma@ericsson.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: multipart/alternative; boundary=17029841450.f50eb.2564174 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --17029841450.f50eb.2564174 Date: Tue, 19 Dec 2023 12:09:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1336 Bug ID: 1336 Summary: Statistic counter rx_missed_errors always shows zero no matter how large the traffic was generated on Mellanox NICs Product: DPDK Version: 22.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: critical Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: pony.ma@ericsson.com Target Milestone: --- Created attachment 266 --> https://bugs.dpdk.org/attachment.cgi?id=3D266&action=3Dedit dpdk imitation log in data-plane pod Our product used the DPDK as a lib for data-plane pod in the vcloud platfor= m. We observed that if data-plane pod doesn't mount the host path /sys/device = to the container, then "rx_missed_errors" counter always shows zero no matter = how large the traffic was generated on Mellanox NIC. But our customers don't li= ke application need to access any host paths, therefore we have to remove the mount path /sys/device.=20 The outcome is data-plane pod would miss the "rx_missed_errors" metric, it might have a degradation regarding the debuggability for packet loss. I have got through the dpdk code about the function "mlx5_os_read_dev_stat", and gdb the dpdk process. It shows that the point of "priv-gcounters" is NU= LL and below two paths have no file of "out_of_buffer" (gdb) p priv->q_counters $4 =3D (struct mlx5_devx_obj *) 0x0 (gdb) info local mkstr_size_path1 =3D 54 path1 =3D "/sys/class/infiniband/mlx5_2/hw_counters/out_of_buffer" mkstr_size_path =3D 62 path =3D "/sys/class/infiniband/mlx5_2/ports/1/hw_counters/out_of_buffer" Note: Our NIC is Mellanox and SRIOV VFs are used for POD. We expect that Statistic counter "rx_missed_errors" can work well without mounting host path /sys/device on Mellanox NICs. --=20 You are receiving this mail because: You are the assignee for the bug.= --17029841450.f50eb.2564174 Date: Tue, 19 Dec 2023 12:09:05 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1336
Summary Statistic counter rx_missed_errors always shows zero no matte= r how large the traffic was generated on Mellanox NICs
Product DPDK
Version 22.11
Hardware x86
OS Linux
Status UNCONFIRMED
Severity critical
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter pony.ma@ericsson.com
Target Milestone ---

Created attachment 266 [details]=

dpdk imitation log in data-plane pod

Our product used the DPDK as a lib for data-plane pod in the vcloud platfor=
m.
We observed that if data-plane pod doesn't mount the host path /sys/device =
to
the container, then "rx_missed_errors" counter always shows zero =
no matter how
large the traffic was generated on Mellanox NIC. But our customers don't li=
ke
application need  to access any host paths, therefore we have to remove the
mount path /sys/device.=20

The outcome is data-plane pod would miss the "rx_missed_errors" m=
etric, it
might have a degradation regarding the debuggability for packet loss.

I have got through the dpdk code about the function "mlx5_os_read_dev_=
stat",
and gdb the dpdk process. It shows that the point of "priv-gcounters&q=
uot; is NULL
and below two paths have no file of "out_of_buffer"

(gdb)  p priv->q_counters
$4 =3D (struct mlx5_devx_obj *) 0x0

(gdb) info local
mkstr_size_path1 =3D 54
path1 =3D "/sys/class/infiniband/mlx5_2/hw_counters/out_of_buffer"
mkstr_size_path =3D 62
path =3D "/sys/class/infiniband/mlx5_2/ports/1/hw_counters/out_of_buff=
er"

Note: Our NIC is Mellanox and SRIOV VFs are used for POD.

We expect that Statistic counter "rx_missed_errors" can work well=
 without
mounting host path /sys/device on Mellanox NICs.
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17029841450.f50eb.2564174--