From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A18526A09F; Tue, 26 Aug 2025 09:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756199205; cv=none; b=P6C8ldanm9tVPqe8boU8uXW3NnUI1jztRfYTQ1rlFplKej5nuiqoi55cUPHYEwKppszINUKcZRnlCwod2sRn7qByQaz7jCSzxe9UYgKjwoJPtvGmrCHIIDdLAAcjnlGFqEqDf8Zz7DJxsYEvITEwZVQPKtU6DdCvOjBo9ju2jsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756199205; c=relaxed/simple; bh=KUp3bc/tsNbImpNd7IPGfxSAfDEKwtB2truPWEYMsoU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=t1IEiUIHJqeZeEObbos3QenP8msN19WPRNDEwa4fAcy9A1jiENtMzzYPiOmyz2U+OcXIS3XhLqNpYBH3ex31tifuAD/GLvPVsaIOzumPOdMi4Dp1hu+hRt1BWfdZ3vpaI5mpHWqmbmI2wAeqOBqA3+NQpeV6jAgzQ5qOJ3bjyC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4cB1sW6bdRz24j3q; Tue, 26 Aug 2025 17:03:11 +0800 (CST) Received: from kwepemf100013.china.huawei.com (unknown [7.202.181.12]) by mail.maildlp.com (Postfix) with ESMTPS id 28EBE1A016C; Tue, 26 Aug 2025 17:06:08 +0800 (CST) Received: from DESKTOP-62GVMTR.china.huawei.com (10.174.189.55) by kwepemf100013.china.huawei.com (7.202.181.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 26 Aug 2025 17:06:06 +0800 From: Fan Gong To: Fan Gong , Zhu Yikai CC: , , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Andrew Lunn , , Jonathan Corbet , Bjorn Helgaas , luosifu , Xin Guo , Shen Chenyang , Zhou Shuai , Wu Like , Shi Jing , Meny Yossefi , Gur Stavi , Lee Trager , Michael Ellerman , Vadim Fedorenko , Suman Ghosh , Przemek Kitszel , Joe Damato , Christophe JAILLET Subject: [PATCH net-next v01 00/12] net: hinic3: Add a driver for Huawei 3rd gen NIC - sw and hw initialization Date: Tue, 26 Aug 2025 17:05:42 +0800 Message-ID: X-Mailer: git-send-email 2.51.0.windows.1 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemf100013.china.huawei.com (7.202.181.12) This is [3/3] part of hinic3 Ethernet driver initial submission. With this patch hinic3 becomes a functional Ethernet driver. The driver parts contained in this patch: Memory allocation and initialization of the driver structures. Management interfaces initialization. HW capabilities probing, initialization and setup using management interfaces. Net device open/stop implementation and data queues initialization. Register VID:DID in PCI id_table. Fix netif_queue_set_napi usage. Changes: PATCH 03 V01: Fan Gong (12): hinic3: HW initialization hinic3: HW management interfaces hinic3: HW common function initialization hinic3: HW capability initialization hinic3: Command Queue flush interfaces hinic3: Nic_io initialization hinic3: Queue pair resource initialization hinic3: Queue pair context initialization hinic3: Tx & Rx configuration hinic3: Add Rss function hinic3: Add port management hinic3: Fix missing napi->dev in netif_queue_set_napi drivers/net/ethernet/huawei/hinic3/Makefile | 2 + .../ethernet/huawei/hinic3/hinic3_hw_cfg.c | 195 ++++ .../ethernet/huawei/hinic3/hinic3_hw_cfg.h | 4 + .../ethernet/huawei/hinic3/hinic3_hw_comm.c | 364 ++++++++ .../ethernet/huawei/hinic3/hinic3_hw_comm.h | 21 + .../ethernet/huawei/hinic3/hinic3_hw_intf.h | 121 +++ .../net/ethernet/huawei/hinic3/hinic3_hwdev.c | 561 ++++++++++- .../net/ethernet/huawei/hinic3/hinic3_hwif.c | 266 ++++++ .../net/ethernet/huawei/hinic3/hinic3_hwif.h | 16 + .../net/ethernet/huawei/hinic3/hinic3_irq.c | 2 +- .../net/ethernet/huawei/hinic3/hinic3_lld.c | 9 +- .../net/ethernet/huawei/hinic3/hinic3_main.c | 9 +- .../net/ethernet/huawei/hinic3/hinic3_mgmt.c | 21 + .../net/ethernet/huawei/hinic3/hinic3_mgmt.h | 2 + .../huawei/hinic3/hinic3_mgmt_interface.h | 119 +++ .../huawei/hinic3/hinic3_netdev_ops.c | 432 ++++++++- .../ethernet/huawei/hinic3/hinic3_nic_cfg.c | 152 +++ .../ethernet/huawei/hinic3/hinic3_nic_cfg.h | 20 + .../ethernet/huawei/hinic3/hinic3_nic_dev.h | 5 + .../ethernet/huawei/hinic3/hinic3_nic_io.c | 883 +++++++++++++++++- .../ethernet/huawei/hinic3/hinic3_nic_io.h | 39 +- .../huawei/hinic3/hinic3_pci_id_tbl.h | 10 + .../net/ethernet/huawei/hinic3/hinic3_rss.c | 359 +++++++ .../net/ethernet/huawei/hinic3/hinic3_rss.h | 14 + .../net/ethernet/huawei/hinic3/hinic3_rx.c | 234 ++++- .../net/ethernet/huawei/hinic3/hinic3_rx.h | 40 +- .../net/ethernet/huawei/hinic3/hinic3_tx.c | 184 +++- .../net/ethernet/huawei/hinic3/hinic3_tx.h | 30 +- 28 files changed, 4026 insertions(+), 88 deletions(-) create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_mgmt.c create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_pci_id_tbl.h create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_rss.c create mode 100644 drivers/net/ethernet/huawei/hinic3/hinic3_rss.h base-commit: b1c92cdf5af3198e8fbc1345a80e2a1dff386c02 -- 2.43.0