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 E440FA053D for ; Fri, 17 Jul 2020 18:32:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC6351BEB4; Fri, 17 Jul 2020 18:32:42 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 207411BEBC for ; Fri, 17 Jul 2020 18:32:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595003560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6KK7Fr5xLzwQomqBZStSGGtCD/EvhsUwNgEhgBnTWq4=; b=X2jhgQRChASFh3hTDhVBRSznOfzR238RA8rjdqrr2E2wtxXRC6YWhBWB9PPb3gwmQnU/tX Ugltcf+qaqFyDcodQslInBvLAbI6lqMAHfosLzPuIIZPoBByAdePI4cwVATzGUgSw/A5Ra UK49T0+mT7yEHpDemmd7l0JzHqfYLg0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-274-7WylJeKpOEOEONds2xGEyw-1; Fri, 17 Jul 2020 12:32:29 -0400 X-MC-Unique: 7WylJeKpOEOEONds2xGEyw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5FBD81085; Fri, 17 Jul 2020 16:32:28 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 01DC572E48; Fri, 17 Jul 2020 16:32:26 +0000 (UTC) From: Kevin Traynor To: Ian Dolzhansky Cc: Andrew Rybchenko , Gaetan Rivet , Stephen Hemminger , dpdk stable Date: Fri, 17 Jul 2020 17:31:52 +0100 Message-Id: <20200717163214.4839-4-ktraynor@redhat.com> In-Reply-To: <20200717163214.4839-1-ktraynor@redhat.com> References: <20200717163214.4839-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/failsafe: fix RSS RETA size info' has been queued to LTS release 18.11.10 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/23/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/0e1d54296a6b14b7c458be93a4724de5c610052a Thanks. Kevin. --- >From 0e1d54296a6b14b7c458be93a4724de5c610052a Mon Sep 17 00:00:00 2001 From: Ian Dolzhansky Date: Wed, 27 May 2020 15:34:33 +0100 Subject: [PATCH] net/failsafe: fix RSS RETA size info [ upstream commit 6e8bdf7266db71f43f47f40704ab1122f60c3f17 ] 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") Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko Acked-by: Gaetan Rivet Acked-by: Stephen Hemminger --- 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 a3c30c25a9..07043dbbce 100644 --- a/drivers/net/failsafe/failsafe_ops.c +++ b/drivers/net/failsafe/failsafe_ops.c @@ -828,4 +828,11 @@ fs_dev_merge_info(struct rte_eth_dev_info *info, 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); @@ -878,4 +885,5 @@ fs_dev_infos_get(struct rte_eth_dev *dev, infos->max_vfs = UINT16_MAX; infos->max_vmdq_pools = UINT16_MAX; + infos->reta_size = UINT16_MAX; infos->hash_key_size = UINT8_MAX; -- 2.21.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-07-17 17:17:00.224112925 +0100 +++ 0004-net-failsafe-fix-RSS-RETA-size-info.patch 2020-07-17 17:16:59.958771897 +0100 @@ -1 +1 @@ -From 6e8bdf7266db71f43f47f40704ab1122f60c3f17 Mon Sep 17 00:00:00 2001 +From 0e1d54296a6b14b7c458be93a4724de5c610052a Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 6e8bdf7266db71f43f47f40704ab1122f60c3f17 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index e1d08e46c8..96f7e456f9 100644 +index a3c30c25a9..07043dbbce 100644 @@ -24 +25 @@ -@@ -1069,4 +1069,11 @@ fs_dev_merge_info(struct rte_eth_dev_info *info, +@@ -828,4 +828,11 @@ fs_dev_merge_info(struct rte_eth_dev_info *info, @@ -36 +37 @@ -@@ -1120,4 +1127,5 @@ fs_dev_infos_get(struct rte_eth_dev *dev, +@@ -878,4 +885,5 @@ fs_dev_infos_get(struct rte_eth_dev *dev,