From patchwork Thu Dec 7 01:42:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Hai X-Patchwork-Id: 461 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 534A043692; Thu, 7 Dec 2023 02:46:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 244CC40295; Thu, 7 Dec 2023 02:46:08 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id B7F3240295 for ; Thu, 7 Dec 2023 02:46:06 +0100 (CET) Received: from kwepemd100004.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Slxnt5SK5zShjq for ; Thu, 7 Dec 2023 09:41:38 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemd100004.china.huawei.com (7.221.188.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.28; Thu, 7 Dec 2023 09:46:00 +0800 From: Jie Hai To: CC: , , , Subject: [PATCH v2 0/4] net/hns3: bugfix on reset and stdatomic API Date: Thu, 7 Dec 2023 09:42:01 +0800 Message-ID: <20231207014205.4002558-1-haijie1@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20231111015915.2776769-1-haijie1@huawei.com> References: <20231111015915.2776769-1-haijie1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemd100004.china.huawei.com (7.221.188.31) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patchset fixes some bugs on reset, and replaces all gcc builtin __atomic_xxx with rte_atomic_xxx. --- v2: 1. remove mailbox bugfix which has been applied. 2. add new bugfixes on reset. 3. Add RTE_ATOMIC to related variable. -- Dengdui Huang (3): net/hns3: fix VF multiple count on one reset net/hns3: fix disable command with firmware net/hns3: fix incorrect reset level comparison Jie Hai (1): net/hns3: use stdatomic API drivers/net/hns3/hns3_cmd.c | 24 ++++--- drivers/net/hns3/hns3_dcb.c | 3 +- drivers/net/hns3/hns3_ethdev.c | 76 +++++++++++---------- drivers/net/hns3/hns3_ethdev.h | 36 +++++----- drivers/net/hns3/hns3_ethdev_vf.c | 108 ++++++++++++++++++------------ drivers/net/hns3/hns3_intr.c | 47 +++++++------ drivers/net/hns3/hns3_intr.h | 4 +- drivers/net/hns3/hns3_mbx.c | 6 +- drivers/net/hns3/hns3_mp.c | 9 ++- drivers/net/hns3/hns3_rxtx.c | 15 +++-- drivers/net/hns3/hns3_tm.c | 6 +- 11 files changed, 192 insertions(+), 142 deletions(-)