From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D904EA034E; Wed, 27 May 2020 16:34:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C22AC1D915; Wed, 27 May 2020 16:34:43 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id B7B111D909; Wed, 27 May 2020 16:34:42 +0200 (CEST) Received: from mx1-us1.ppe-hosted.com (unknown [10.110.50.150]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 5D6E4200F1; Wed, 27 May 2020 14:34:42 +0000 (UTC) Received: from us4-mdac16-7.at1.mdlocal (unknown [10.110.49.174]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 5B1AA800AF; Wed, 27 May 2020 14:34:42 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.49.32]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id E8BDE100072; Wed, 27 May 2020 14:34:41 +0000 (UTC) Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 6E97928007E; Wed, 27 May 2020 14:34:41 +0000 (UTC) Received: from ukex01.SolarFlarecom.com (10.17.10.4) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 27 May 2020 15:34:37 +0100 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 27 May 2020 15:34:37 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 04REYbCa007593; Wed, 27 May 2020 15:34:37 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id 6689816139D; Wed, 27 May 2020 15:34:37 +0100 (BST) From: Andrew Rybchenko To: Gaetan Rivet CC: , Ian Dolzhansky , "Stephen Hemminger" , Date: Wed, 27 May 2020 15:34:33 +0100 Message-ID: <1590590073-8964-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1020-25444.002 X-TM-AS-Result: No-1.188200-8.000000-10 X-TMASE-MatchedRID: OtgrC38k5ReB//TxCalW+sGNvKPnBgOa9/x+2nQH35JHZg0gWH5yUX1p a9OL1UpKljl6GKXHRh2mcFuKGELrlpXOyk7EwLgl8UIP9c6qlJsvV5f7P0HVDGMunwKby/AXw8N rJJ26PmWt2gtuWr1LmnPL3KdKFhM8bwFT1cZHxCE49w4rSKMAfX/0yDqj7AyLZ9uMaIUDtOXx9f z91y6x5Y0W/nUPvg/wHbfxEQJIJO2vvxILmKK/HBRFJJyf5BJe3QfwsVk0UbvqwGfCk7KUs/nRx tEBOWFdjVSmQYpmZaY02tNMrjjtRmrNl+bCJw5SCoNY0prmMGonMsCy4LISmnDdrFk0AjpE1SML xGItp9ljhRJSVn+sbw9cvEd/Et5dVEc5IqztENReYfSkFq6uAb7jE6+wkCSeftwZ3X11IV0= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.188200-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1020-25444.002 X-MDID: 1590590082-DBCLXV0Ap1oL Subject: [dpdk-dev] [PATCH] net/failsafe: report valid RSS RETA size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Ian Dolzhansky Failsafe driver has been indicating zero for RSS redirection table size after device info reporting had been reworked. Report proper value. Fixes: 4586be3743d4 ("net/failsafe: fix reported device info") Cc: Stephen Hemminger Cc: stable@dpdk.org Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko --- drivers/net/failsafe/failsafe_ops.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c index e046cfe6aa..45da9378c3 100644 --- a/drivers/net/failsafe/failsafe_ops.c +++ b/drivers/net/failsafe/failsafe_ops.c @@ -1068,6 +1068,13 @@ fs_dev_merge_info(struct rte_eth_dev_info *info, info->rx_queue_offload_capa &= sinfo->rx_queue_offload_capa; info->tx_queue_offload_capa &= sinfo->tx_queue_offload_capa; info->flow_type_rss_offloads &= sinfo->flow_type_rss_offloads; + + /* + * RETA size is a GCD of RETA sizes indicated by sub-devices. + * Each of these sizes is a power of 2, so use the lower one. + */ + info->reta_size = RTE_MIN(info->reta_size, sinfo->reta_size); + info->hash_key_size = RTE_MIN(info->hash_key_size, sinfo->hash_key_size); @@ -1128,6 +1135,7 @@ fs_dev_infos_get(struct rte_eth_dev *dev, infos->max_hash_mac_addrs = UINT32_MAX; infos->max_vfs = UINT16_MAX; infos->max_vmdq_pools = UINT16_MAX; + infos->reta_size = UINT16_MAX; infos->hash_key_size = UINT8_MAX; /* -- 2.17.1