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 01010A0A0C for ; Tue, 3 Aug 2021 14:22:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EF588411CF; Tue, 3 Aug 2021 14:22:38 +0200 (CEST) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id 04C31411D6 for ; Tue, 3 Aug 2021 14:22:38 +0200 (CEST) Received: by mail-wm1-f53.google.com with SMTP id i10-20020a05600c354ab029025a0f317abfso1598273wmq.3 for ; Tue, 03 Aug 2021 05:22:38 -0700 (PDT) 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=KNQQlN5SZT8FkPF4kgFKvlj1XPgMgZxgvQeh4rLDVdc=; b=OZuIqp8g/8q8Algelrk7HVWG4kn5QQezZfUNYkJPYOe1OwoQnJi01TTgOIGSoPJ9KV WjrartyQthcXN7WSEn7WRv2UAN4j3VacQjWGMRFXTmp3LIL9hj5tUcm/Zm5h/oc5mDAG 5ccKnizKV21h/XQJ53GenIIAp6Pt4Nh6Jdjn2PYclnfCgNenmqVRQzr/Wl9/us+aHLG9 s0tR7/RE1w0JF8F4klpve4uCBqnZYqzhs/3pUYeITj8WMmRhX9cYvXBRFMuJ9eyAIsGy ulb7YoS9PSKl/zKV38UxUxBMz02uRX2F3iif+GOzWo5kosxthk8BAUIsN70AlNyhMVNs HGgQ== 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=KNQQlN5SZT8FkPF4kgFKvlj1XPgMgZxgvQeh4rLDVdc=; b=S9HoC0HjDTCTmDYS8qRRMz5Vt/V+B5HYH79dIFgxb4zfXUPV05TgSsEzEzZZbq5vv+ 714MHXPbCK0D5rU7jClKPv4o2p9zO1oJ2MQgLbDXyD+4H+kHIbNMYnkhIK0Cf6N15HUP /HLA3nFlSm9XNZPF8z1DY0ERhqA4KVgqL9BLTXrzO3MPbszCzPmxo/DspqrVSFaars2g JUCP31y+eRZihbLR0XALpkFDUvq4qMjLwEjbRz4zbUA6PhczS+uaM9dvLWQiDXpM6kNS U8mH0jqi7dbC80oti26uZlsdEzC7XHLqZQ2uB80yLzCVP/pueR3PeGxa54i/l1yvmWva cWgQ== X-Gm-Message-State: AOAM533OY07V+lheJkBSv0bW81GoxiGT5gCnVAVtD0fHzsEN+giIokEW T9ytIELlb/44AYWvjmIFAnY= X-Google-Smtp-Source: ABdhPJySJjCo7nOjZDXhlSnidVo5lzBW0WDddHv69UekJZZ7QvSdir2ZKp3nS+f5xRAdBKHJjs4Chg== X-Received: by 2002:a7b:c8c8:: with SMTP id f8mr13822271wml.6.1627993357828; Tue, 03 Aug 2021 05:22:37 -0700 (PDT) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id n7sm8106722wmd.3.2021.08.03.05.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Aug 2021 05:22:37 -0700 (PDT) From: luca.boccassi@gmail.com To: Lior Margalit Cc: Matan Azrad , dpdk stable Date: Tue, 3 Aug 2021 13:21:58 +0100 Message-Id: <20210803122214.1094992-9-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210803122214.1094992-1-luca.boccassi@gmail.com> References: <20210726135322.149850-59-luca.boccassi@gmail.com> <20210803122214.1094992-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/mlx5: fix default queue number in RSS flow rule' has been queued to stable release 20.11.3 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/05/21. 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/4ac789fddc852fc8d33eba4f04ff54ec854ca279 Thanks. Luca Boccassi --- >From 4ac789fddc852fc8d33eba4f04ff54ec854ca279 Mon Sep 17 00:00:00 2001 From: Lior Margalit Date: Tue, 27 Jul 2021 09:46:20 +0300 Subject: [PATCH] net/mlx5: fix default queue number in RSS flow rule [ upstream commit 4a5a1e6b624e46f24b13d095e35a9b8699bd59b9 ] The selection flags for the RX hash define how the received packets will be distributed between multiple queues. When creating a new TIR, the queue_num is set to 1 if none of the selection flags is set. Applied the same to the RSS desc before checking if it matches a cached TIR object to save creating a new object every time. Fixes: fabf8a37241c ("net/mlx5: fix shared RSS action release") Signed-off-by: Lior Margalit Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_flow_dv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 2a86b03bf9..5b2e1a9f07 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -8705,6 +8705,8 @@ flow_dv_hrxq_prepare(struct rte_eth_dev *dev, rss_desc->hash_fields = dev_flow->hash_fields; rss_desc->tunnel = !!(dh->layers & MLX5_FLOW_LAYER_TUNNEL); rss_desc->shared_rss = 0; + if (rss_desc->hash_fields == 0) + rss_desc->queue_num = 1; *hrxq_idx = mlx5_hrxq_get(dev, rss_desc); if (!*hrxq_idx) return NULL; -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-08-03 12:35:08.603686799 +0100 +++ 0009-net-mlx5-fix-default-queue-number-in-RSS-flow-rule.patch 2021-08-03 12:35:08.214818729 +0100 @@ -1 +1 @@ -From 4a5a1e6b624e46f24b13d095e35a9b8699bd59b9 Mon Sep 17 00:00:00 2001 +From 4ac789fddc852fc8d33eba4f04ff54ec854ca279 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 4a5a1e6b624e46f24b13d095e35a9b8699bd59b9 ] + @@ -15 +16,0 @@ -Cc: stable@dpdk.org @@ -24 +25 @@ -index 0538c8565c..7f07e3d800 100644 +index 2a86b03bf9..5b2e1a9f07 100644 @@ -27 +28 @@ -@@ -10985,6 +10985,8 @@ flow_dv_hrxq_prepare(struct rte_eth_dev *dev, +@@ -8705,6 +8705,8 @@ flow_dv_hrxq_prepare(struct rte_eth_dev *dev,