From patchwork Tue Nov 28 05:59:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 134634 X-Patchwork-Delegate: thomas@monjalon.net 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 18FFB433ED; Tue, 28 Nov 2023 06:59:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B886041133; Tue, 28 Nov 2023 06:59:34 +0100 (CET) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id B0847410F6 for ; Tue, 28 Nov 2023 06:59:31 +0100 (CET) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SfWqx4L9vzMnR9; Tue, 28 Nov 2023 13:54:37 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 Nov 2023 13:59:26 +0800 From: Huisong Li To: , , , Dongdong Liu , Jie Hai , Chengwen Feng CC: , Subject: [PATCH v5 1/3] doc: fix the description of RSS related feature Date: Tue, 28 Nov 2023 13:59:25 +0800 Message-ID: <20231128055927.61704-2-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231128055927.61704-1-lihuisong@huawei.com> References: <20231123135916.33315-1-lihuisong@huawei.com> <20231128055927.61704-1-lihuisong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000004.china.huawei.com (7.193.23.18) 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 patch fixes the description of RSS feature. And the settinf ot hash algorithm is introduced by 23.11, so add it. Fixes: 34ff088cc241 ("ethdev: set and query RSS hash algorithm") Signed-off-by: Huisong Li Acked-by: Chengwen Feng Acked-by: Ferruh Yigit --- doc/guides/nics/features.rst | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst index 1a1dc16c1e..18b4c9637e 100644 --- a/doc/guides/nics/features.rst +++ b/doc/guides/nics/features.rst @@ -277,10 +277,20 @@ RSS hash Supports RSS hashing on RX. * **[uses] user config**: ``dev_conf.rxmode.mq_mode`` = ``RTE_ETH_MQ_RX_RSS_FLAG``. -* **[uses] user config**: ``dev_conf.rx_adv_conf.rss_conf``. +* **[uses] user config**: ``dev_conf.rx_adv_conf.rss_conf.rss_hf``. ``rss_conf.rss_hf`` * **[uses] rte_eth_rxconf,rte_eth_rxmode**: ``offloads:RTE_ETH_RX_OFFLOAD_RSS_HASH``. * **[provides] rte_eth_dev_info**: ``flow_type_rss_offloads``. * **[provides] mbuf**: ``mbuf.ol_flags:RTE_MBUF_F_RX_RSS_HASH``, ``mbuf.rss``. +* **[related] API**: ``rte_eth_dev_configure()``, ``rte_eth_dev_rss_hash_update`` + ``rte_eth_dev_rss_hash_conf_get()``. + +Support RSS hash algorithm on Rx. + +* **[implements] eth_dev_ops**: ``dev_configure``, ``rss_hash_update``, ``rss_hash_conf_get``. +* **[uses] user config**: ``rss_conf.algorithm`` +* **[provides] rte_eth_dev_info**: ``rss_algo_capa``. +* **[related] API**: ``rte_eth_dev_configure()``, ``rte_eth_dev_rss_hash_update()``, + ``rte_eth_dev_rss_hash_conf_get()``. .. _nic_features_inner_rss: @@ -288,7 +298,7 @@ Supports RSS hashing on RX. Inner RSS --------- -Supports RX RSS hashing on Inner headers. +Supports RX RSS hashing on Inner headers by rte_flow API. * **[uses] rte_flow_action_rss**: ``level``. * **[uses] rte_eth_rxconf,rte_eth_rxmode**: ``offloads:RTE_ETH_RX_OFFLOAD_RSS_HASH``. @@ -303,9 +313,10 @@ RSS key update Supports configuration of Receive Side Scaling (RSS) hash computation. Updating Receive Side Scaling (RSS) hash key. -* **[implements] eth_dev_ops**: ``rss_hash_update``, ``rss_hash_conf_get``. +* **[implements] eth_dev_ops**: ``dev_configure``, ``rss_hash_update``, ``rss_hash_conf_get``. +* **[uses] user config**: ``rss_conf.rss_key``, ``rss_conf.rss_key_len`` * **[provides] rte_eth_dev_info**: ``hash_key_size``. -* **[related] API**: ``rte_eth_dev_rss_hash_update()``, +* **[related] API**: ``rte_eth_dev_configure()``, ``rte_eth_dev_rss_hash_update()``, ``rte_eth_dev_rss_hash_conf_get()``. From patchwork Tue Nov 28 05:59:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 134632 X-Patchwork-Delegate: thomas@monjalon.net 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 E8274433ED; Tue, 28 Nov 2023 06:59:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69391410F9; Tue, 28 Nov 2023 06:59:32 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 5C87D410D5 for ; Tue, 28 Nov 2023 06:59:29 +0100 (CET) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SfWwx3N2KzvRBN; Tue, 28 Nov 2023 13:58:57 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 Nov 2023 13:59:27 +0800 From: Huisong Li To: , , CC: , Subject: [PATCH v5 2/3] doc: add link up/down feature Date: Tue, 28 Nov 2023 13:59:26 +0800 Message-ID: <20231128055927.61704-3-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231128055927.61704-1-lihuisong@huawei.com> References: <20231123135916.33315-1-lihuisong@huawei.com> <20231128055927.61704-1-lihuisong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000004.china.huawei.com (7.193.23.18) 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 Add link up/down feature for features.rst. Cc: stable@dpdk.org Signed-off-by: Huisong Li Acked-by: Chengwen Feng Acked-by: Ferruh Yigit --- doc/guides/nics/features.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst index 18b4c9637e..ced400beba 100644 --- a/doc/guides/nics/features.rst +++ b/doc/guides/nics/features.rst @@ -45,6 +45,10 @@ Supports getting the link speed, duplex mode and link state (up/down). * **[implements] rte_eth_dev_data**: ``dev_link``. * **[related] API**: ``rte_eth_link_get()``, ``rte_eth_link_get_nowait()``. +Set link up/down an Ethernet device. + +* **[implements] eth_dev_ops**: ``dev_set_link_up``, ``dev_set_link_down``. +* **[related] API**: ``rte_eth_dev_set_link_up()``, ``rte_eth_dev_set_link_down()``. .. _nic_features_link_status_event: From patchwork Tue Nov 28 05:59:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 134633 X-Patchwork-Delegate: thomas@monjalon.net 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 44719433ED; Tue, 28 Nov 2023 06:59:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9215541104; Tue, 28 Nov 2023 06:59:33 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 86812410DD for ; Tue, 28 Nov 2023 06:59:29 +0100 (CET) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SfWwx6swSzvRBQ; Tue, 28 Nov 2023 13:58:57 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 Nov 2023 13:59:27 +0800 From: Huisong Li To: , , CC: , Subject: [PATCH v5 3/3] doc: add dump device private information ops Date: Tue, 28 Nov 2023 13:59:27 +0800 Message-ID: <20231128055927.61704-4-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231128055927.61704-1-lihuisong@huawei.com> References: <20231123135916.33315-1-lihuisong@huawei.com> <20231128055927.61704-1-lihuisong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000004.china.huawei.com (7.193.23.18) 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 Add dump device private information to dev ops. Cc: stable@dpdk.org Signed-off-by: Huisong Li Acked-by: Chengwen Feng Acked-by: Ferruh Yigit --- doc/guides/nics/features.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features.rst b/doc/guides/nics/features.rst index ced400beba..96a6f11ee3 100644 --- a/doc/guides/nics/features.rst +++ b/doc/guides/nics/features.rst @@ -982,3 +982,4 @@ Other dev ops not represented by a Feature * ``udp_tunnel_port_add`` * ``udp_tunnel_port_del`` * ``tx_pkt_prepare`` +* ``eth_dev_priv_dump``