From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E497A0540 for ; Tue, 14 Jul 2020 10:35:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 752E01C1C0; Tue, 14 Jul 2020 10:35:39 +0200 (CEST) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by dpdk.org (Postfix) with ESMTP id A1F711C199 for ; Tue, 14 Jul 2020 10:35:37 +0200 (CEST) Received: by mail-io1-f48.google.com with SMTP id e64so16431597iof.12 for ; Tue, 14 Jul 2020 01:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flowmon.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=DG3EEiKuHv4l4ojq6SiLEbDJi0X4mYkChl4Nux6H7Zo=; b=h079KFdQjs/Z5TKmVbrFJPN0Z86mjac8mXIqQkCzRzDJKcWc8QJGcKN3N7JjBCoXqb bPQWgy2f1s/nLuWoqaESC8j0NeqpZm1eZTqk9nWgCinByi4s8Oa6SO54qaYGcgOLXPa5 s1alWUg+uyEQ63i1CfA4o3SP+OXHEf/Ijo5B63OfUGqYFKzfkeFg7lUtTN0ti6L6f3ge zxt3eot3YuTzt7QEAck85UWAl3qJphHSYdQ8Dfe2Ax/WPJaAA0a8os7LDEjR4OtlNJcQ 9phsVey32GOwa5MMWWIfYLSDImNOzchdlnbL+rOj/RjwwZekntMztBs9Be4RiSu44rcJ Wztg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DG3EEiKuHv4l4ojq6SiLEbDJi0X4mYkChl4Nux6H7Zo=; b=ApXxjQDvpcXAdpiEHmsfXNq7xqdG1aY/meoQlqaCDQnS9BqOJ86q1oxePbW8ED5DTT U6MVSAMQnLU8rGYdZJTCQiNgASlh2mGD7paD9KO+RJUBoFW+yIsxGZet9k80WoAnPd25 daKo4VOlIePsXUqBHqBPriSNrgECK8+goio/YBf2Unq4Loaj7MSus1Uqy/C2fe8QgeEP JEHUHmycBC2EzAsetou6EGfaCcRPzOE2711FxShlfB/V/x157fr+fwbQrw9Yp6fF8AT3 J7qI122Tne88BPw6bCzeAHUDDYFDe1N8SCTTUcLcXNFvuoFIKKkmWSMOy4c3aLYLXjgn H/uQ== X-Gm-Message-State: AOAM5302CGDwMgQYSKaQYQTRVYByLChQXSCGAPgoPnZR8BhN8RIhB2/d FLQP9WyN1GjXgvOFZlu6dvlAu/RMU0E1bqA1+7jIVfguGgE= X-Google-Smtp-Source: ABdhPJwDquWYWB8pyt4L0+Lt+T+QjNGc8CmmNciyVm+w4hXFRA+eWp4XsC/9QCh/5bXiRFX71mtH+KEt/2NxtbxpAM0= X-Received: by 2002:a05:6638:d08:: with SMTP id q8mr4595637jaj.77.1594715736772; Tue, 14 Jul 2020 01:35:36 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?VG9tw6HFoSBKw6Fuc2vDvQ==?= Date: Tue, 14 Jul 2020 10:35:25 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Mellanox MLX5 - RX Missed Errors Counter Overflow X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, I am using the Mellanox MLX5 driver and I noticed nonsense values in *rx_missed_errors* counter. Configuration: - DPDK version 20.02 - CentOS Linux release 7.7.1908 (Core) - Mellanox OFED version: MLNX_OFED_LINUX-4.7-3.2.9.0-rhel7.7-x86_64 I have a function which periodically retrieves xstats counters. char *field_names[7] = {"rx_packets_phy", "rx_discards_phy", "rx_missed_errors", "rx_errors", "rx_bytes_phy", "tx_packets_phy", "tx_bytes_phy"}; uint64_t ids[7], values[7]; int i; for (i = 0; i < 7; i++) { rte_eth_xstats_get_id_by_name(port_id, field_names[i], &ids[i]); } rte_eth_xstats_get_by_id(port_id, ids, values, 7); It works perfectly fine until the value in *rx_missed_errors* counter reaches around 3721692877 (maximum observed value, but probably not the actual maximum value) which is 0xDDD486CD hex. After that, the next measurement reports the value 18446744073150886746 which is obviously wrong. Then, after some time, the value starts again from zero. The documentation says that the counter is supposed to be 64-byte unsigned integer: https://doc.dpdk.org/api/structrte__eth__xstat.html Is anybody else experiencing this issue? It might not be related only to the MLX5 driver because we had a similar issue with Intel X710 cards. Thanks. Tomas