From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 219F4A051C
	for <public@inbox.dpdk.org>; Tue, 11 Feb 2020 12:23:52 +0100 (CET)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 196C62B9C;
	Tue, 11 Feb 2020 12:23:52 +0100 (CET)
Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com
 [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 620A41BF80
 for <stable@dpdk.org>; Tue, 11 Feb 2020 12:23:50 +0100 (CET)
Received: by mail-wm1-f68.google.com with SMTP id p9so3016569wmc.2
 for <stable@dpdk.org>; Tue, 11 Feb 2020 03:23:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=wWATevb402BoIaOJVtTagPX53R+78HqF2tWu7z5eSU0=;
 b=bw196vejHYAI0xpoMbsGC8lb4vkX0fux9NeL/v2chCg4lPDF+JnUmUdUOHMcGYWcey
 hRma6NZtfMljGkcnqQfnvBIflwB1Tkuq+STDER4x0xVD7+AlXiXYqL9AGok2cpu2brBG
 czPW6T6UiOZFsk/tFvq+mvkiu4/gryHlFBaIPV0DMTBw0FBxzA27/eYElhkQsX+eFf9z
 EpMN/ZsDV1arOea29p3UjelaNAX1vpz499nuj7EP3nJvQpcfWW3VIPntD4QX8XVnfqhg
 ED03TT/HvxDKpslo8HiyE0FrdRIpNT2OlL0/If6y0KPJOWVmk+7S3Q4MJZydLxoBiI9c
 1EgA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=wWATevb402BoIaOJVtTagPX53R+78HqF2tWu7z5eSU0=;
 b=ukaNABjECFRNpD3XPa4vgx+OBp10HzFjLoGzWKKpg9+yT2AEcdsEQZGbDFXkWzVOe3
 F3oI1r0SY7FcDhZedtH9kur910dhepKV5isF0axZw2sWmecazAILnISjXS0Cs8AXMhY4
 FTGx+fDudDTooLIBkFp34Rd7XAu40WDW2ayWXJYkucE2kGAyaD3/mbbdxKgHiI43CYSp
 WwgJWUeisztqRBbiG56Ls0SZp7v31/0FiUzkW4P/v7/+me81lB3YRJd2n9LUadlXqzMa
 vB9bTrO5N562DB7yw/+tXf9v5Zd/rKeCblwh54MuYPfm8NmHssaymgk2UdZnuI7c9qdq
 JpyQ==
X-Gm-Message-State: APjAAAX9Z+SDJXfl/7Z9gd9mZ8KYtU4U6EAhohxwgtg4VIfa8jV0m7TP
 lPgIyJPyZtLsFTrIpS9lVYaZou7/
X-Google-Smtp-Source: APXvYqw58iU4HmH80frJR51luk65wXol96EJWt3ZBc4CC7xUd1zwa0H02npXis8nGg2ISEzt3R0lHg==
X-Received: by 2002:a1c:7f87:: with SMTP id a129mr5359103wmd.156.1581420230090; 
 Tue, 11 Feb 2020 03:23:50 -0800 (PST)
Received: from localhost ([88.98.246.218])
 by smtp.gmail.com with ESMTPSA id t9sm5025600wrv.63.2020.02.11.03.23.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 11 Feb 2020 03:23:49 -0800 (PST)
From: luca.boccassi@gmail.com
To: Pavan Nikhilesh <pbhagavatula@marvell.com>
Cc: Satananda Burla <sburla@marvell.com>,
	dpdk stable <stable@dpdk.org>
Date: Tue, 11 Feb 2020 11:19:24 +0000
Message-Id: <20200211112216.3929-18-luca.boccassi@gmail.com>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com>
References: <20200211112216.3929-1-luca.boccassi@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-stable] patch 'examples/l2fwd-event: fix ethdev RSS setup'
	has been queued to stable release 19.11.1
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org
Sender: "stable" <stable-bounces@dpdk.org>

Hi,

FYI, your patch has been queued to stable release 19.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/13/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.

Thanks.

Luca Boccassi

---
>From f322f7e0e3e6f5f8c8e7d605390876d48c762cc1 Mon Sep 17 00:00:00 2001
From: Pavan Nikhilesh <pbhagavatula@marvell.com>
Date: Tue, 14 Jan 2020 11:22:23 +0530
Subject: [PATCH] examples/l2fwd-event: fix ethdev RSS setup

[ upstream commit f09d45db53db267f82bb445572f674a8bfab4bd1 ]

Setup RSS configuration based on underlying device capabilities.

Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines")

Signed-off-by: Satananda Burla <sburla@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 examples/l2fwd-event/l2fwd_common.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/examples/l2fwd-event/l2fwd_common.c b/examples/l2fwd-event/l2fwd_common.c
index 181301fe6b..ab341e55b2 100644
--- a/examples/l2fwd-event/l2fwd_common.c
+++ b/examples/l2fwd-event/l2fwd_common.c
@@ -50,6 +50,17 @@ l2fwd_event_init_ports(struct l2fwd_resources *rsrc)
 		if (ret != 0)
 			rte_panic("Error during getting device (port %u) info: %s\n",
 				  port_id, strerror(-ret));
+		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
+			dev_info.flow_type_rss_offloads;
+		if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
+				port_conf.rx_adv_conf.rss_conf.rss_hf) {
+			printf("Port %u modified RSS hash function based on hardware support,"
+			       "requested:%#"PRIx64" configured:%#"PRIx64"",
+				port_id,
+				port_conf.rx_adv_conf.rss_conf.rss_hf,
+				local_port_conf.rx_adv_conf.rss_conf.rss_hf);
+		}
+
 		if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
 			local_port_conf.txmode.offloads |=
 				DEV_TX_OFFLOAD_MBUF_FAST_FREE;
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-02-11 11:17:39.735324992 +0000
+++ 0018-examples-l2fwd-event-fix-ethdev-RSS-setup.patch	2020-02-11 11:17:38.315999776 +0000
@@ -1,12 +1,13 @@
-From f09d45db53db267f82bb445572f674a8bfab4bd1 Mon Sep 17 00:00:00 2001
+From f322f7e0e3e6f5f8c8e7d605390876d48c762cc1 Mon Sep 17 00:00:00 2001
 From: Pavan Nikhilesh <pbhagavatula@marvell.com>
 Date: Tue, 14 Jan 2020 11:22:23 +0530
 Subject: [PATCH] examples/l2fwd-event: fix ethdev RSS setup
 
+[ upstream commit f09d45db53db267f82bb445572f674a8bfab4bd1 ]
+
 Setup RSS configuration based on underlying device capabilities.
 
 Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines")
-Cc: stable@dpdk.org
 
 Signed-off-by: Satananda Burla <sburla@marvell.com>
 Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>