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 548C1454E9 for ; Tue, 25 Jun 2024 02:02:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 506D141140; Tue, 25 Jun 2024 02:02:20 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mails.dpdk.org (Postfix) with ESMTP id F1D3A40EDD for ; Tue, 25 Jun 2024 02:02:18 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-364a39824baso3608955f8f.1 for ; Mon, 24 Jun 2024 17:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719273738; x=1719878538; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6b1ZxJr9AxKa2SugBKoBG9sYFCi8Chs0SP2i1njRJUw=; b=COiC8i52DAzYSZ/lY3W+9rER7VMFBWkeeOxivkvFqf7KB+lWxz/jxMivQcQZpQizAd 9+GpJ8BqEclNyrK33bDti0JCWyBGbzHSzfnEvIAKILAqpRvzYy+CfJRjiXcbzUnvmnPz 1e7m8jcGNIvH6RMC3585+MkCETfmrrt9hp9xY3G3QDRpWw6xTabf+SGDZzus8tTcY/bM qOS2GiT89D6aswi8CBgI5gzjmbekpbrzbGxTdxtZeca4enjt/DeZqRxJnuHYpDf9p3Sp 2iSmIDlpz4VMSgcnlLzS3iwVaL5pLiz/fuZOowOGdeK4O0p4ao2IjkMIo9dTsTRmeFf9 rahA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719273738; x=1719878538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6b1ZxJr9AxKa2SugBKoBG9sYFCi8Chs0SP2i1njRJUw=; b=edbr/k+EiK0K6ifFf370iqjUr4Wotw3ByOh4z7cs5AhcCabheXr213crG0+I6Q1q9d RGf2QA+AMsM9cFDO9g9Niaa6u1lBLfA7h37tclXV6/SbGefG0yYPmepI0MPSjbc/ZVyQ NIu1M4pWNTQ2hxIfTZoDy0zOeIihrFUOAbhfAa/mb2WMEBrFYMgNHs2zQYUhf/aOFAbL VDt50Zm0dWVQRAyL2iOgI0TNML1w00qf6u3d0Dg4NUFBaU9i9n4bBl7JJGMySM/eTGdY qG7gV6Fc2hSYBkbMzM9QEAOWxdhCzBTR4LEP+V4JcKI1CGyjPm9co+XzVV9At1J4hpBn Wm8g== X-Gm-Message-State: AOJu0YxIpytSR1f1VKO6WzR73tLXD0KGvCrN8wfmskdvMZunci8xwkVT gQjLDdPZl8SF+ox03g4dCpKBdNj/Klx/q90OpqV1LD0WYVUjK+Qo5ui/SvKG X-Google-Smtp-Source: AGHT+IET1T1lSxU0+QvQt3SryOaWF3Cjlzb2jIJn1Lp8J7UNF+dPXwzUYqNbzsxaSr7gsiHC36qgzw== X-Received: by 2002:a5d:4e42:0:b0:364:7de:d70 with SMTP id ffacd0b85a97d-366e7a0fc25mr4760555f8f.29.1719273738535; Mon, 24 Jun 2024 17:02:18 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-366f624cdacsm3439506f8f.70.2024.06.24.17.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 17:02:18 -0700 (PDT) From: luca.boccassi@gmail.com To: Sunil Kumar Kori Cc: dpdk stable Subject: patch 'net/cnxk: fix RSS config' has been queued to stable release 22.11.6 Date: Tue, 25 Jun 2024 00:58:44 +0100 Message-Id: <20240624235907.885628-58-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240624235907.885628-1-luca.boccassi@gmail.com> References: <20240624235907.885628-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 22.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/27/24. 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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/d1c48d821e1b78aeafc0921710bcb28702c3f137 Thanks. Luca Boccassi --- >From d1c48d821e1b78aeafc0921710bcb28702c3f137 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Kori Date: Thu, 23 May 2024 20:23:21 +0530 Subject: [PATCH] net/cnxk: fix RSS config [ upstream commit d3654d35176dcc6e5ebb7bab00c7fdd6b61fc1f0 ] Currently user passed RSS configuration is ignored via rte_eth_dev_configure() API. Instead default RSS setup is done by driver. Adding handling for user passed RSS configuration too via rte_eth_dev_configure(). Fixes: b75e0aca84b0 ("net/cnxk: add device configuration operation") Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_ethdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c index f9245258cb..56b26a9650 100644 --- a/drivers/net/cnxk/cnxk_ethdev.c +++ b/drivers/net/cnxk/cnxk_ethdev.c @@ -1334,6 +1334,13 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev) goto free_nix_lf; } + /* Overwrite default RSS setup if requested by user */ + rc = cnxk_nix_rss_hash_update(eth_dev, &conf->rx_adv_conf.rss_conf); + if (rc) { + plt_err("Failed to configure rss rc=%d", rc); + goto free_nix_lf; + } + /* Init the default TM scheduler hierarchy */ rc = roc_nix_tm_init(nix); if (rc) { -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-06-25 00:22:16.773206636 +0100 +++ 0058-net-cnxk-fix-RSS-config.patch 2024-06-25 00:22:13.209186138 +0100 @@ -1 +1 @@ -From d3654d35176dcc6e5ebb7bab00c7fdd6b61fc1f0 Mon Sep 17 00:00:00 2001 +From d1c48d821e1b78aeafc0921710bcb28702c3f137 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit d3654d35176dcc6e5ebb7bab00c7fdd6b61fc1f0 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -22 +23 @@ -index 6b37bd877f..95a3d8aaf9 100644 +index f9245258cb..56b26a9650 100644 @@ -25 +26 @@ -@@ -1384,6 +1384,13 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev) +@@ -1334,6 +1334,13 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev)