From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0076.outbound.protection.outlook.com [104.47.2.76]) by dpdk.org (Postfix) with ESMTP id 692032C55 for ; Wed, 29 Nov 2017 12:29:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qrFiDJvUtLJbdc5fvRaApvhnw/hso/gLSBlQHAGGUBI=; b=Zar59q+m+i2MwzBCu0b4Fy7LnNE3RXB2mQAxsQwFXz62ykhNj1X31kUbEeOX9cbGpZpZoYRgC9/9Uh5ACilUYqAU73S2KGkbRkmauOLvSKIiMqutdPm0p8s/cNNl7aPBE/roXTCI4QUgfd3/tESfLOIQbHM6eXaFJaWUutbjmew= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (82.166.227.17) by DB6PR05MB3142.eurprd05.prod.outlook.com (2603:10a6:6:1a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Wed, 29 Nov 2017 11:29:16 +0000 From: Shahaf Shuler To: nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com, yskoh@mellanox.com Cc: dev@dpdk.org Date: Wed, 29 Nov 2017 13:29:07 +0200 Message-Id: <20171129112908.29493-1-shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [82.166.227.17] X-ClientProxiedBy: DB6PR1001CA0041.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:55::27) To DB6PR05MB3142.eurprd05.prod.outlook.com (2603:10a6:6:1a::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 738c358c-0360-4fd2-8b94-08d5371c6d1f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603199); SRVR:DB6PR05MB3142; X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3142; 3:5vHd6/OzKsdEcpJU5+1nbVUokX5HZPG846AAQlN1NqgfaybnY2hQD2CVhmFZGhPj/9okJGbEJplVoPE+ZTdTtFRem04mW0PUyv/eN5ce0VzKbq+AkDbv4P8xpohh2t+xoxNeoW5/k2ygNgNOlY+P2q5L19cDxEi8cfxjCff7pZCFIRbFR7Z3fJJRDrFKcEPNJEttm/T5VSIeA5ja+8gpTCyfgLk12TmNW1GXOuNxH9fkbHPF5ssxCWQcLj9KvB1S; 25:25mz4H9jKLuVVLGoumMyIlWUbuc4vLZ9oxZT1nexyDzZhDXoN46HnZdCCxPtajDj2A35uInj/o1+/aJFc2s0NZXBu6TTBulrGhlP7BJJkkZ+fxKlxd6S5EDUpDasxf6UZwCBiL4APg0E0fBD2UaPcrlc8uy1EIArA2aUauQ8VNMBiTxm43DLipomSOttsWJfrl5+vV8G5ZfZn3D1R9N8RmR2OG3GGcmNuNgU36DF8oa13+2dPcUpyLqsPE+kFlHnSe+arAcF7QmZvD0Jsp0FwvFVGaWEn8x97rrV7eys6oQso93PQHagKrNS1KSAHnuvWMxNKn3dyrT9PjK7jB+iUvg85FNAPxKhTYF59urRCdU=; 31:oUM20M0Vlozik5MYAmJ/Cl+RrEvwBYTor6iQcWKl/QZTFn4BduO8VzqhbNJ1f+Pc+HAqmzamM9XepLrNf0TN2pvXwRNSB/JbPFaSWv7BkhjkAjWGxYz7LkNQNcaNNqfcoV0nH61DEyKTue2s6BBGBZG8O2tUSyXtM8olCvCCYIYViR4lmJWWU3r2h3atQSsxmaZe+iv+vblZPQyBFsmDY9VUx3DcZ4IJGLzpEAEdO5Y= X-MS-TrafficTypeDiagnostic: DB6PR05MB3142: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR05MB3142; 20:XRVK8lgVjYcSS1w/DlFpq/DJUjXPMBBG1dQK/SzWF5sIu/eNZNUr7pX1iV4j0vCz9WiFY0hwzzjYjR1tO4RuEhZRYUjKB5o4YAu5Dyj2Ri16udC+fNykio+QUk62WrR3prPoocvrXw+aqHj3ye8pfROZSWSt4Row0FrOrZcqWEnuT3w+tdXNQjhtYPgo3DhI1PX9JZU7ZCBSbbGIaAAbwLUN4PjN1DS1B4xYDfDcpR87+pnBEWqOHzHWPraZqQv3IwHGpEwDqjbI4+oEhNwQniym6qCc85P5TChvspaJxPIUb6tQQKHmwqh5hgkpYYsMGNfipDyJD+RSjxgzlD2cXDSAM4O5ZogUrHxvbXACKobDsJnAqhTJsjU/PhbKKV64WdKexyVuONJafgwLnjsVLebBitADF+umDm50SFKquzNVDB2yw5ailRIbco9ie8jAHvwzUkOqezBQZVrIFY3UvXu7g8VMOXILmtsK0a2THlh+8/dt1cdavH5jKHYOFJ5O; 4:Y7EUuIf87r8Vn9eUwH/9m4icsCWEj6bSFq6rCbB7qd0Na0iPuw0lzEatj0+1Slq/uliZXUMAGonnqJg+/2guepjqffW+99AMfbh68rl5c82fbWCVqLBSyxPokzB1J8AEcP9fecszlDmpU4dEyb6kF6Cqbwn43itMUvDEI0lUx2ugJ4Q07R5OiI9BUlTupCZv+4HiMiTcsFJBgj/JxeiVB2ty5KDB1D7Y14SSZ5fGiBascT+df4I2ffoR+to196c2nJrgb1C7jjwzHGcasyaToQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231022)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(6072148)(201708071742011); SRVR:DB6PR05MB3142; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB6PR05MB3142; X-Forefront-PRVS: 05066DEDBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(366004)(376002)(39860400002)(189002)(199003)(4326008)(25786009)(50466002)(478600001)(86362001)(55016002)(48376002)(33026002)(2906002)(69596002)(51416003)(7696005)(52116002)(16526018)(6636002)(66066001)(47776003)(6666003)(316002)(16586007)(68736007)(101416001)(97736004)(7736002)(189998001)(50226002)(50986999)(81156014)(15650500001)(8936002)(81166006)(36756003)(33646002)(6116002)(3846002)(305945005)(21086003)(5660300001)(8676002)(1076002)(105586002)(5890100001)(106356001)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB3142; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR05MB3142; 23:5hgyC5TzLNkQiwAK4ZOru2u2n2178DIpTAJaiZOaV?= =?us-ascii?Q?5d6jHE7R8ONU6GdvPV/IinShApTtm1CC6tOtDpoN8iJ30TV8IZ8BRE7yhpJw?= =?us-ascii?Q?y5zzfTePezjsquSdO6R/hWFcW1SPe8saPfX7e1Y7wmXjhcbyKLasmSuVMbtQ?= =?us-ascii?Q?Lk0XDEbeaM7N9WX6CZUtYpuP+e83dCvvYBLpR38wtyQKayJFx1gpD7UHMDL5?= =?us-ascii?Q?bZ/YRZm607K7NHcM4OZEimB9rD9ELqJ/ysiJmXw4pOaeyusPTwY8p9Hs0SRD?= =?us-ascii?Q?F41i9FZH+1uvHkeSMzpsFuCujxoHsZ5hOToHbYxGLvX3SQh/TPuw6AnFgUQE?= =?us-ascii?Q?DAWyZGEBMLI4t8PMg5fryF3Wa8Kh6L6O63VL3PjDU9/q1EjULyV2NzzGYXfV?= =?us-ascii?Q?deMdETe0i50NN425C2y36UuFXQcMRjrJv7QDFD2Fn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JsQscxlk/Js/j3+Y08eYSmCCjj0SWirrPUx69209SCNzD15Kvwaku7bNWXeaDmd0jI7ek7B2YSbwCdc5P4UXBDOobXrQadZE56jiU7UjAZU5Dx/jn1RwB5/xnQTFEg9e1UgO0MdOIYFWRFg83ZCJqEKzqseFoBK95KiJRPh0kjsbf0EG3HbEzrE4u2NDrKZr2jpQHTCYb8QPcqOhW2TBYkaCcbyG+uroKn/j5JgGgiK+n6YsyxFEb+TjXksgLttuh6U=; 5:LfQN89Jaw55rQDVJHuULVg00zifzrkpSmHxqfzNWh6P38hL9l7VHRCg9tYsv1qCsH7qVnfTxSJrS+RLq32i0uM6lVxE5K2xzUQfutPYCvmvHalBCetYS65C3JxCwMKAmIG6Sr8jXE19VCM1pwJvuTaq4tM/UMYi8FvGXLq4vQEw=; 24:ZpbHgxpNpmEXU4oGI+kzOYyKHUEAZaz6PzgAICa9xlR76/+ISfzOSo7xQHrZJiXDni9/d+8dPK5hwZcATbizAYJomI9ze+RqP+HLnhla0Wg=; 7:Ny6ItVy4eEFXSz/oQSZ/sJzAxi64suuzghLY/8ZxedEVxYFzCCmNMs6zxvR08Hp8oC64sa7U3VrbFOl0vl0lKdK9RTjbGjnYNrsjbePOLRUXMvqvdIdP146emGAzPmNSPekFdj5fPDhRgynGt1vR29ksoXd5NaF4CEqldtu4r4NwDzuef2DHZWCcP8k5XLTE7F9olJ26lfCgZWEpRhNHAdORfEemCOMfOLiZpFC+JLm4vjiCuqBZie/NQ9mMKlfR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 11:29:16.6876 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 738c358c-0360-4fd2-8b94-08d5371c6d1f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB3142 Subject: [dpdk-dev] [PATCH 1/2] doc: update mlx5 statistics query X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 11:29:19 -0000 Update the guide with more details on the different statistics query possible with MLX5 PMD. Signed-off-by: Shahaf Shuler --- doc/guides/nics/mlx5.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index f9558da89..154db64d7 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -105,8 +105,6 @@ Limitations ----------- - Inner RSS for VXLAN frames is not supported yet. -- Port statistics through software counters only. Flow statistics are - supported by hardware counters. - Hardware checksum RX offloads for VXLAN inner header are not supported yet. - Forked secondary process not supported. - Flow pattern without any specific vlan will match for vlan packets as well: @@ -134,6 +132,17 @@ Limitations to 0 are not supported. - VXLAN TSO and checksum offloads are not supported on VM. +Statistics +---------- + +MLX5 supports various of methods to report statistics: + +Port statistics can be queried using ``rte_eth_stats_get()``. The port statistics are through SW only and counts the number of packets received or sent successfully by the PMD. + +Extended statistics can be queried using ``rte_eth_xstats_get()``. The extended statistics expose a wider set of counters counted by the device. The extended port statistics counts the number of packets received or sent successfully by the port. As Mellanox NICs are using the :ref:`Bifurcated Linux Driver ` those counters counts also packet received or sent by the Linux kernel. The counters with ``_phy`` suffix counts the total events on the physical port, therefore not valid for VF. + +Finally per-flow statistics can by queried using ``rte_flow_query`` when attaching a count action for specific flow. The flow counter counts the number of packets received successfully by the port and match the specific flow. + Configuration ------------- -- 2.12.0