[0/5] support setting and querying RSS algorithms
Message ID | 20230315110033.30143-1-liudongdong3@huawei.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 8189941E9F; Wed, 15 Mar 2023 12:01:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6ECAF40A7A; Wed, 15 Mar 2023 12:01:52 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id CE56E40141; Wed, 15 Mar 2023 12:01:50 +0100 (CET) Received: from kwepemi500017.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Pc6p310tVzfbbf; Wed, 15 Mar 2023 18:58:51 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 15 Mar 2023 19:01:48 +0800 From: Dongdong Liu <liudongdong3@huawei.com> To: <dev@dpdk.org>, <ferruh.yigit@amd.com>, <thomas@monjalon.net>, <andrew.rybchenko@oktetlabs.ru>, <reshma.pattan@intel.com> CC: <stable@dpdk.org>, <yisen.zhuang@huawei.com>, <liudongdong3@huawei.com> Subject: [PATCH 0/5] support setting and querying RSS algorithms Date: Wed, 15 Mar 2023 19:00:28 +0800 Message-ID: <20230315110033.30143-1-liudongdong3@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500017.china.huawei.com (7.221.188.110) X-CFilter-Loop: Reflected 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 |
Message
Dongdong Liu
March 15, 2023, 11 a.m. UTC
This patchset is to support setting and querying RSS algorithms. Huisong Li (1): net/hns3: support setting and querying RSS hash function Jie Hai (4): ethdev: support setting and querying rss algorithm app/proc-info: fix never show RSS info app/proc-info: show RSS types with strings app/proc-info: support querying RSS hash algorithm app/proc-info/main.c | 145 ++++++++++++++++++++++++- doc/guides/rel_notes/release_23_03.rst | 4 +- drivers/net/hns3/hns3_rss.c | 47 ++++---- lib/ethdev/rte_ethdev.c | 18 +++ lib/ethdev/rte_ethdev.h | 5 + 5 files changed, 191 insertions(+), 28 deletions(-) -- 2.22.0
Comments
LGTM Series-acked-by: Chengwen Feng <fengchengwen@huawei.com> On 2023/11/1 15:40, Jie Hai wrote: > This patchset is to support setting and querying RSS algorithms. > For this purpose, field "rss_algo_capa" is added to ``rte_eth_dev_info`` > and field "algorithm" is added to ``rte_eth_rss_conf``. > The drivers should reports their "rss_algo_capa" if they support > updating RSS algorithms. Otherwise, the "rss_algo_capa" is set to > RTE_ETH_HASH_ALGO_CAPA_MASK(DEFAULT). The app configures RSS algorithms > by field "algorithm" and the related API should verify "algorithm" with > "rss_algo_capa". > > -- > v8: > 1. rewrite some comments. > 2. add check for rss_key_len in ethdev level. > 3. add Acked-by: Huisong Li <lihuisong@huawei.com>. > 4. fix log on RSS hash algorithm. > 5. add rte_eth_dev_rss_algo_name to lib/ethdev/version.map. > 6. fix RSS algorithm display on testpmd. > > v7: > 1. fix compile error. > 2. add signed-off-by to patch[4/9]. > v6: > 1. rewrite some comments. > 2. add "rss_algo_capa" for `rte_eth_dev_info``. > 3. add new API to get name of RSS algorithms > > v5: > 1. rewrite some comments. > 2. check RSS algorithm for drivers supporting RSS. > 3. change field "func" of rss_conf to "algorithm". > 4. fix commit log for [PATCH v4 4/7]. > 5. add Acked-by Reshma Pattan. > 6. add symmetric_toeplitz_sort for showing. > 7. change "hf" to "hash function" for showing. > > v4: > 1. recomment some definitions related to RSS. > 2. allocate static memory for rss_key instead of dynamic. > 3. use array of strings to get the name of rss algorithm. > 4. add display of rss algorithm with testpmd. > > v3: > 1. fix commit log for PATCH [1/5]. > 2. make RSS ABI changes description to start the actual text at the margin. > 3. move defnition of enum rte_eth_hash_function to rte_ethdev.h. > 4. fix some comment codes. > > v2: > 1. return error if "func" is invalid. > 2. modify the comments of the "func" field. > 3. modify commit log of patch [3/5]. > 4. use malloc instead of rte_malloc. > 5. adjust display format of RSS info. > 6. remove the string display of rss_hf. > > Huisong Li (1): > net/hns3: support setting and querying RSS hash function > > Jie Hai (9): > ethdev: overwrite some comment related to RSS > lib/ethdev: check RSS key length > ethdev: support setting and querying RSS algorithm > net/hns3: report RSS hash algorithms capability > app/proc-info: fix never show RSS info > app/proc-info: adjust the display format of RSS info > ethdev: add API to get RSS algorithm names > app/proc-info: support querying RSS hash algorithm > app/testpmd: add RSS hash algorithms display > > app/proc-info/main.c | 24 +++++--- > app/test-pmd/cmdline.c | 29 +++++++-- > app/test-pmd/config.c | 29 ++++----- > app/test-pmd/testpmd.h | 2 +- > doc/guides/rel_notes/release_23_11.rst | 9 +++ > drivers/net/hns3/hns3_common.c | 4 ++ > drivers/net/hns3/hns3_rss.c | 47 ++++++++------- > lib/ethdev/rte_ethdev.c | 82 ++++++++++++++++++++++++++ > lib/ethdev/rte_ethdev.h | 79 ++++++++++++++++++++----- > lib/ethdev/rte_flow.c | 1 - > lib/ethdev/rte_flow.h | 25 +------- > lib/ethdev/version.map | 1 + > 12 files changed, 239 insertions(+), 93 deletions(-) >
On 11/2/2023 8:20 AM, Jie Hai wrote: > This patchset is to support setting and querying RSS algorithms. > For this purpose, field "rss_algo_capa" is added to ``rte_eth_dev_info`` > and field "algorithm" is added to ``rte_eth_rss_conf``. > The drivers should reports their "rss_algo_capa" if they support > updating RSS algorithms. Otherwise, the "rss_algo_capa" is set to > RTE_ETH_HASH_ALGO_CAPA_MASK(DEFAULT). The app configures RSS algorithms > by field "algorithm" and the related API should verify "algorithm" with > "rss_algo_capa". > > -- > v9: > 1. rewrite some comments. > 2. modify check on rss_key_len and move it to patch 1. > 3. add API change for rss_key_len. > 4. add NEW Feature for RSS. > 5. move modification on rss_config_display to patch 7/9. > 6. update testpmd documentation. > 7. add acked-bys. > > v8: > 1. rewrite some comments. > 2. add check for rss_key_len in ethdev level. > 3. add Acked-by: Huisong Li <lihuisong@huawei.com>. > 4. fix log on RSS hash algorithm. > 5. add rte_eth_dev_rss_algo_name to lib/ethdev/version.map. > 6. fix RSS algorithm display on testpmd. > > v7: > 1. fix compile error. > 2. add signed-off-by to patch[4/9]. > v6: > 1. rewrite some comments. > 2. add "rss_algo_capa" for `rte_eth_dev_info``. > 3. add new API to get name of RSS algorithms > > v5: > 1. rewrite some comments. > 2. check RSS algorithm for drivers supporting RSS. > 3. change field "func" of rss_conf to "algorithm". > 4. fix commit log for [PATCH v4 4/7]. > 5. add Acked-by Reshma Pattan. > 6. add symmetric_toeplitz_sort for showing. > 7. change "hf" to "hash function" for showing. > > v4: > 1. recomment some definitions related to RSS. > 2. allocate static memory for rss_key instead of dynamic. > 3. use array of strings to get the name of rss algorithm. > 4. add display of rss algorithm with testpmd. > > v3: > 1. fix commit log for PATCH [1/5]. > 2. make RSS ABI changes description to start the actual text at the margin. > 3. move defnition of enum rte_eth_hash_function to rte_ethdev.h. > 4. fix some comment codes. > > v2: > 1. return error if "func" is invalid. > 2. modify the comments of the "func" field. > 3. modify commit log of patch [3/5]. > 4. use malloc instead of rte_malloc. > 5. adjust display format of RSS info. > 6. remove the string display of rss_hf. > > Huisong Li (1): > net/hns3: support setting and querying RSS hash function > > Jie Hai (8): > ethdev: overwrite some comment related to RSS > ethdev: support setting and querying RSS algorithm > net/hns3: report RSS hash algorithms capability > app/proc-info: fix never show RSS info > app/proc-info: adjust the display format of RSS info > ethdev: add API to get RSS algorithm names > app/proc-info: support querying RSS hash algorithm > app/testpmd: add RSS hash algorithms display > > For series, Reviewed-by: Ferruh Yigit <ferruh.yigit@amd.com> Series applied to dpdk-next-net/main, thanks.