From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 50DEE4321D; Sat, 28 Oct 2023 05:02:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 371214029A; Sat, 28 Oct 2023 05:02:34 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id DF82A40291 for ; Sat, 28 Oct 2023 05:02:32 +0200 (CEST) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SHPNy2Z0VzPnl9 for ; Sat, 28 Oct 2023 10:58:26 +0800 (CST) Received: from [10.67.121.59] (10.67.121.59) 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.31; Sat, 28 Oct 2023 11:02:29 +0800 Message-ID: <5a227afc-b347-059e-3b8c-705a84268cfc@huawei.com> Date: Sat, 28 Oct 2023 11:02:29 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v7 3/9] net/hns3: report RSS hash algorithms capability To: Jie Hai , , Yisen Zhuang CC: , References: <20231027092836.445224-1-haijie1@huawei.com> <20231028014611.4086500-1-haijie1@huawei.com> <20231028014611.4086500-4-haijie1@huawei.com> From: "lihuisong (C)" In-Reply-To: <20231028014611.4086500-4-haijie1@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.121.59] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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 lgtm, Acked-by: Huisong Li 在 2023/10/28 9:46, Jie Hai 写道: > The hns3 driver should reports RSS hash algorithm capability > to support updating RSS hash algorithm by > rte_eth_dev_rss_hash_update() or rte_eth_dev_configure(). > > Signed-off-by: Jie Hai > --- > drivers/net/hns3/hns3_common.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c > index c4d47f43fe44..7f5067ea2fa2 100644 > --- a/drivers/net/hns3/hns3_common.c > +++ b/drivers/net/hns3/hns3_common.c > @@ -132,6 +132,10 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) > info->reta_size = hw->rss_ind_tbl_size; > info->hash_key_size = hw->rss_key_size; > info->flow_type_rss_offloads = HNS3_ETH_RSS_SUPPORT; > + info->rss_algo_capa = RTE_ETH_HASH_ALGO_CAPA_MASK(DEFAULT) | > + RTE_ETH_HASH_ALGO_CAPA_MASK(TOEPLITZ) | > + RTE_ETH_HASH_ALGO_CAPA_MASK(SIMPLE_XOR) | > + RTE_ETH_HASH_ALGO_CAPA_MASK(SYMMETRIC_TOEPLITZ); > > info->default_rxportconf.burst_size = HNS3_DEFAULT_PORT_CONF_BURST_SIZE; > info->default_txportconf.burst_size = HNS3_DEFAULT_PORT_CONF_BURST_SIZE;