From patchwork Thu May 30 10:20:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matan Azrad X-Patchwork-Id: 53895 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C1C91B945; Thu, 30 May 2019 12:20:46 +0200 (CEST) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id D1D7D4CA6 for ; Thu, 30 May 2019 12:20:44 +0200 (CEST) From: Matan Azrad To: Shahaf Shuler , Yongseok Koh Cc: dev@dpdk.org Date: Thu, 30 May 2019 10:20:30 +0000 Message-Id: <1559211639-17442-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH v1 0/9] mlx5: Handle data-path completions with error 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add support for data-path Rx and Tx completions with error handling: 1. Detect the error. 2. Do not crash. 3. Report it in statistics counters. 4. Dump debug information to system log file. 5. Recover the error under the hood. 6. Add support for secondary process recovery. No performance impact was shown. Matan Azrad (9): net/mlx5: remove Rx queues indexes correlation net/mlx5: add log file procedure for debug data net/mlx5: fix device arguments error detection net/mlx5: mitigate Rx doorbell memory barrier net/mlx5: separate Rx queue initialization net/mlx5: extend Rx completion with error handling net/mlx5: handle Tx completion with error net/mlx5: recover secondary process Rx errors net/mlx5: recover secondary process Tx errors doc/guides/nics/mlx5.rst | 7 + drivers/net/mlx5/mlx5.c | 14 +- drivers/net/mlx5/mlx5.h | 12 + drivers/net/mlx5/mlx5_mp.c | 46 +++ drivers/net/mlx5/mlx5_prm.h | 11 + drivers/net/mlx5/mlx5_rxq.c | 42 +-- drivers/net/mlx5/mlx5_rxtx.c | 673 ++++++++++++++++++++++++++++------ drivers/net/mlx5/mlx5_rxtx.h | 193 +++++----- drivers/net/mlx5/mlx5_rxtx_vec.c | 5 +- drivers/net/mlx5/mlx5_rxtx_vec_neon.h | 36 +- drivers/net/mlx5/mlx5_rxtx_vec_sse.h | 36 +- drivers/net/mlx5/mlx5_trigger.c | 1 + drivers/net/mlx5/mlx5_txq.c | 4 +- 13 files changed, 792 insertions(+), 288 deletions(-)