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 5125CA0C4E for ; Mon, 12 Jul 2021 18:35:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3DAA34069E; Mon, 12 Jul 2021 18:35:29 +0200 (CEST) Received: from CNSHJSMIN05.NOKIA-SBELL.COM (cnshjsmin05.app.nokia-sbell.com [116.246.26.45]) by mails.dpdk.org (Postfix) with ESMTP id 85E554003C for ; Mon, 5 Jul 2021 12:07:41 +0200 (CEST) X-AuditID: ac18929d-547ff70000028593-05-60e2d9eab21c Received: from CNSHPPEXCH1601.nsn-intra.net (Unknown_Domain [135.251.51.101]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by CNSHJSMIN05.NOKIA-SBELL.COM (Symantec Messaging Gateway) with SMTP id 7E.19.34195.AE9D2E06; Mon, 5 Jul 2021 18:07:38 +0800 (HKT) Received: from CNSHPPEXCH1601.nsn-intra.net (135.251.51.101) by CNSHPPEXCH1601.nsn-intra.net (135.251.51.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 5 Jul 2021 18:07:38 +0800 Received: from CNSHPPEXCH1601.nsn-intra.net ([135.251.51.101]) by CNSHPPEXCH1601.nsn-intra.net ([135.251.51.101]) with mapi id 15.01.2176.012; Mon, 5 Jul 2021 18:07:38 +0800 From: "Yan, Xiaoping (NSB - CN/Hangzhou)" To: "users@dpdk.org" Thread-Topic: mlx5 VF packet lost between rx_port_unicast_packets and rx_good_packets Thread-Index: AddxgEIiozH3tSNDT0OXrcwVnnhgFg== Date: Mon, 5 Jul 2021 10:07:38 +0000 Message-ID: <0fbb0c1b5a2b4fd3b95d7238db101698@nokia-sbell.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [135.251.51.115] MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCIsWRmVeSWpSXmKPExsXS/ts4VffVzUcJBnd26lo0H1zP4sDo8WvB UtYAxigum5TUnMyy1CJ9uwSujKa7E1gLLq1jrejuu8fewPhgOmsXIyeHhICJxI2Dv9m6GLk4 hAQOMUksu7eJFcL5wyjx5uRSFghnI6PEw3Nb2EFa2AQ8JF6c2MoMYosIqEp8mbWXBcQWFgiS ONR8iQkiHi6xYNl+KFtP4sWvL0C9HBwsAioSrw6YgoR5BewkHl9qZASxGQVkJaY9ug9Wziwg LnHryXwmiOtEJB5ePM0GYYtKvHz8jxVkjISAkkTfBqjyeImDy+YyQowUlDg58wnLBEahWUgm zUJSNgtJGUQ8VWLrz01Qto7Egt2f2CBsbYllC18zw9hnDjxmwhS3l5gwaQFUr6rE1tk9rBD2 OkaJ2w1uELaixJTuh+yzgK4Gqb/bkwtTfvn1KSa48g0LjZCVL2AUWMUo7ewX7OEV7OvpZ2Cq 5+fv7emoG+zk6uOj5+zvu4kRGPlrJCbN3cF4Ye43vUOMTByMhxhVgAY82rD6AqMUS15+XqqS CK/IlEcJQrwpiZVVqUX58UWlOanFhxilOViUxHmvTp+RICSQnliSmp2aWpBaBJNl4uCUamBK NJG/sfId+6fnD1t4Y2K9cjc62zpG7laenbhhdfuhKK2dC1VnX5FKqzb+PpH75zxxjbLVbXoJ 10M/rp8399EWrfm+pd1la94s1bhedOtEF6/pnl83vf6yfV8eG3hhbvu1hGfHFqs3JZ9xPbzK Py3H2flSzU6f31zOm1gSJNxr/k6YL7vgvsvse2py/eo93eb7d72x33b88VKldQbbtL/K3HXY 12N1T2lV//UZ91XWsi14qmiRoNmuGXB49USVmzllU0oD+hRF+K5ce2Fh4iay5F1h2jZ9kQk1 6W5Zs0OUfyzZufww362Oh1YttW5v10xu5xXQkH653nc534vs/X0mG93SuRY8eaD6YM7ETxft lViKMxINtZiLihMBrPyPZHcDAAA= X-Mailman-Approved-At: Mon, 12 Jul 2021 18:35:27 +0200 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-users] mlx5 VF packet lost between rx_port_unicast_packets and rx_good_packets X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 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, When doing traffic loopback test on a mlx5 VF, we found there are some pack= et loss (not all packet received back ). >From xstats counters, I found all packets have been received in rx_port_uni= cast_packets, but rx_good_packets has lower counter, and rx_port_unicast_pa= ckets - rx_good_packets =3D lost packets i.e. packet lost between rx_port_unicast_packets and rx_good_packets. But I can not find any other counter indicating where exactly those packets= are lost. Any idea? Attached is the counter logs. (bf is before the test, af is after the test,= fp-cli dpdk-port-stats is the command used to get xstats, and ethtool -S _= f1 (the vf used) also printed) Test equipment reports that it sends: 2911176 packets, receives: 2909474, = dropped: 1702 And the xstats (after - before) shows rx_port_unicast_packets 2911177, rx_= good_packets 2909475, so drop (2911177 - rx_good_packets) is 1702 BTW, I also noticed this discussion "packet loss between phy and good count= er" http://mails.dpdk.org/archives/users/2018-July/003271.html but my case seems to be different as packet also received in rx_port_unica= st_packets, and I checked counter from pf (ethtool -S ens1f0 in attached l= og), rx_discards_phy is not increasing. Thank you. Best regards Yan Xiaoping