From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 59AB94590C;
	Thu,  5 Sep 2024 11:29:43 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id DE43242E6E;
	Thu,  5 Sep 2024 11:29:29 +0200 (CEST)
Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189])
 by mails.dpdk.org (Postfix) with ESMTP id 7477E42E57
 for <dev@dpdk.org>; Thu,  5 Sep 2024 11:29:27 +0200 (CEST)
Received: from mail.maildlp.com (unknown [172.19.163.174])
 by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Wzv7v2Zksz69XT;
 Thu,  5 Sep 2024 17:24:27 +0800 (CST)
Received: from dggpeml500024.china.huawei.com (unknown [7.185.36.10])
 by mail.maildlp.com (Postfix) with ESMTPS id E15261400D1;
 Thu,  5 Sep 2024 17:29:25 +0800 (CST)
Received: from localhost.localdomain (10.50.165.33) by
 dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.1.2507.39; Thu, 5 Sep 2024 17:29:25 +0800
From: Chengwen Feng <fengchengwen@huawei.com>
To: <thomas@monjalon.net>, <ferruh.yigit@amd.com>,
 <konstantin.ananyev@huawei.com>, <ajit.khaparde@broadcom.com>
CC: <dev@dpdk.org>, <andrew.rybchenko@oktetlabs.ru>,
 <kalesh-anakkur.purayil@broadcom.com>, <Honnappa.Nagarahalli@arm.com>
Subject: [PATCH v4 0/7] fix race-condition of proactive error handling mode
Date: Thu, 5 Sep 2024 09:24:57 +0000
Message-ID: <20240905092504.10725-1-fengchengwen@huawei.com>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20230301030610.49468-1-fengchengwen@huawei.com>
References: <20230301030610.49468-1-fengchengwen@huawei.com>
MIME-Version: 1.0
Content-Type: text/plain
X-Originating-IP: [10.50.165.33]
X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To
 dggpeml500024.china.huawei.com (7.185.36.10)
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

This patch fixes race-condition of proactive error handling mode, the
discussion thread [1].

[1] http://patchwork.dpdk.org/project/dpdk/patch/20230220060839.1267349-2-ashok.k.kaladi@intel.com/

Chengwen Feng (7):
  ethdev: fix race-condition of proactive error handling mode
  net/hns3: replace fp ops config function
  net/bnxt: fix race-condition when report error recovery
  net/bnxt: use fp ops setup function
  app/testpmd: add error recovery usage demo
  app/testpmd: extract event handling to event.c
  doc: testpmd support event handling section

---
v4:
- rebase main branch.
v3:
- adjust the usage of RTE_ETH_EVENT_QUEUE_STATE in 7/7 commit.
- add ack-by from Konstantin Ananyev, Ajit Khaparde and Huisong Li.
v2:
- extract event handling to event.c and document it, which address
  Ferruh's comment.
- add ack-by from Konstantin Ananyev and Dongdong Liu.

 app/test-pmd/event.c                         | 390 +++++++++++++++++++
 app/test-pmd/meson.build                     |   1 +
 app/test-pmd/parameters.c                    |  36 +-
 app/test-pmd/testpmd.c                       | 236 +----------
 app/test-pmd/testpmd.h                       |  10 +-
 doc/guides/prog_guide/ethdev/ethdev.rst      |  20 +-
 doc/guides/testpmd_app_ug/event_handling.rst |  81 ++++
 doc/guides/testpmd_app_ug/index.rst          |   1 +
 drivers/net/bnxt/bnxt_cpr.c                  |  18 +-
 drivers/net/bnxt/bnxt_ethdev.c               |   9 +-
 drivers/net/hns3/hns3_rxtx.c                 |  21 +-
 lib/ethdev/ethdev_driver.c                   |   8 +
 lib/ethdev/ethdev_driver.h                   |  10 +
 lib/ethdev/rte_ethdev.h                      |  32 +-
 lib/ethdev/version.map                       |   1 +
 15 files changed, 552 insertions(+), 322 deletions(-)
 create mode 100644 app/test-pmd/event.c
 create mode 100644 doc/guides/testpmd_app_ug/event_handling.rst

-- 
2.17.1