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 BAA27A0518 for ; Fri, 24 Jul 2020 14:00:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B2BAC1BFE3; Fri, 24 Jul 2020 14:00:42 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 80B8F1BFE3 for ; Fri, 24 Jul 2020 14:00:41 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id f18so8090300wrs.0 for ; Fri, 24 Jul 2020 05:00:41 -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=/BvPhdlpI5XfZkpwhkRZ0TpucFqUx/BHGcUB5VqbBuY=; b=h7/MUr7NCH9N6/9AOVK+YnTbPqOy5ONSlLZnMA4VtUBvPtAZRbT4DAnzJPhv5Gclfi ORUffvqexmf/Qw1wJNEuGXdk75fgmPF4KNNuCGmxTji2DLLuIwRcAhL1jmRI6Z3ceGp7 wkJoQaLVcpKOeaMsNaszUp2I0tHJJlAjwUzBUcH5VZNZNEmdLe1nMV0CMm+i1ITpHDUA EeUJE4SZCuPHqiBfARJG04Gk51CQ9vPvT+pwfsN8FNt2d/K9L6zKMDTrhSkQ8xl9zzZR v+GKvXoU5d7cMbZoRWTQYStSvTcCakl21aahD1fUfS64Z0chVJqBN6apOuLYVeCl/ywY 3PLQ== 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=/BvPhdlpI5XfZkpwhkRZ0TpucFqUx/BHGcUB5VqbBuY=; b=Hw5hCGK9j4TjO+ZiadgR9V3xkuDV8eAeN53ofbMJ2h4KRNgHdLbl8OiuAfgHvvmjgP oWEPzlYQnjhCcD1HMj6ftJNmv2sfKna8CbDTt75qzxUIUICcCaYiB3TBQmrvcCaxmwhL wviyaNVVpDeptWze8LV9HqEe9Wbvp8N7DCmUZ2G9oTC2lR54cD2H+9qOmPO03PFpRiVl V2nMLfShHFfxnDfoQUs9QZMAnz9hiKJ7XNAYBKkqq4/PJUQqBWDXf2HDi3xp3/Qnno/Z b0Bk+lCQNg+gPs4Cc+vQsb8sQi+7WPN9Uxetu7e4c6fdavGPJMvTaNXeXK8M+GrX9o8+ 3f6Q== X-Gm-Message-State: AOAM532e7E1SEUfEl6sGVXYHYIhu7GKlJrxJpBsG8Y0WkAYyNnNqASos qTYBhrYHiDuNYOdoDrdyLhQ= X-Google-Smtp-Source: ABdhPJyA7eXgShvzYfC0Uge1mFC96wG4+CVtz3RPI/WL6tY6isbMOme227YjpNxOF7/eCV8lYz5g1w== X-Received: by 2002:adf:f58c:: with SMTP id f12mr8265862wro.314.1595592041243; Fri, 24 Jul 2020 05:00:41 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id d14sm1057958wre.44.2020.07.24.05.00.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 05:00:40 -0700 (PDT) From: luca.boccassi@gmail.com To: Lijun Ou Cc: Wei Hu , dpdk stable Date: Fri, 24 Jul 2020 12:57:23 +0100 Message-Id: <20200724120030.1863487-5-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200724120030.1863487-1-luca.boccassi@gmail.com> References: <20200724120030.1863487-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/hns3: add RSS hash offload to Rx configuration' has been queued to stable release 19.11.4 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 stable release 19.11.4 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/26/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 36e0995b4d49f026bcb0eeb29c1e1d11b2b72179 Mon Sep 17 00:00:00 2001 From: Lijun Ou Date: Fri, 22 May 2020 17:21:17 +0800 Subject: [PATCH] net/hns3: add RSS hash offload to Rx configuration [ upstream commit fdae939696a09b4010df004be06c491d9294e319 ] Rx offload flag `DEV_RX_OFFLOAD_RSS_HASH` which can be used to enable/disable PMDs write to `rte_mbuf::hash::rss`. The hns3 PMD driver already can notify the validity of `rte_mbuf::hash:rss` to the application by enabling `PKT_RX_RSS_HASH` flag in `rte_mbuf::ol_flags`. Fixes: 19a3ca4c99cf ("net/hns3: add start/stop and configure operations") Fixes: c37ca66f2b27 ("net/hns3: support RSS") Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c | 1 + drivers/net/hns3/hns3_ethdev_vf.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index dbe747f9d..85d432d36 100644 --- a/drivers/net/hns3/hns3_ethdev.c +++ b/drivers/net/hns3/hns3_ethdev.c @@ -2228,6 +2228,7 @@ hns3_dev_configure(struct rte_eth_dev *dev) /* When RSS is not configured, redirect the packet queue 0 */ if ((uint32_t)mq_mode & ETH_MQ_RX_RSS_FLAG) { + conf->rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH; rss_conf = conf->rx_adv_conf.rss_conf; if (rss_conf.rss_key == NULL) { rss_conf.rss_key = rss_cfg->key; diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index 251d0efe8..56a1be936 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c @@ -543,6 +543,7 @@ hns3vf_dev_configure(struct rte_eth_dev *dev) /* When RSS is not configured, redirect the packet queue 0 */ if ((uint32_t)mq_mode & ETH_MQ_RX_RSS_FLAG) { + conf->rxmode.offloads |= DEV_RX_OFFLOAD_RSS_HASH; rss_conf = conf->rx_adv_conf.rss_conf; if (rss_conf.rss_key == NULL) { rss_conf.rss_key = rss_cfg->key; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-07-24 12:53:48.790375842 +0100 +++ 0005-net-hns3-add-RSS-hash-offload-to-Rx-configuration.patch 2020-07-24 12:53:48.151003926 +0100 @@ -1,8 +1,10 @@ -From fdae939696a09b4010df004be06c491d9294e319 Mon Sep 17 00:00:00 2001 +From 36e0995b4d49f026bcb0eeb29c1e1d11b2b72179 Mon Sep 17 00:00:00 2001 From: Lijun Ou Date: Fri, 22 May 2020 17:21:17 +0800 Subject: [PATCH] net/hns3: add RSS hash offload to Rx configuration +[ upstream commit fdae939696a09b4010df004be06c491d9294e319 ] + Rx offload flag `DEV_RX_OFFLOAD_RSS_HASH` which can be used to enable/disable PMDs write to `rte_mbuf::hash::rss`. The hns3 PMD driver already can notify the validity of `rte_mbuf::hash:rss` to the @@ -10,7 +12,6 @@ Fixes: 19a3ca4c99cf ("net/hns3: add start/stop and configure operations") Fixes: c37ca66f2b27 ("net/hns3: support RSS") -Cc: stable@dpdk.org Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) @@ -20,10 +21,10 @@ 2 files changed, 2 insertions(+) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c -index 1c06b8ff1..33d7c5c7b 100644 +index dbe747f9d..85d432d36 100644 --- a/drivers/net/hns3/hns3_ethdev.c +++ b/drivers/net/hns3/hns3_ethdev.c -@@ -2312,6 +2312,7 @@ hns3_dev_configure(struct rte_eth_dev *dev) +@@ -2228,6 +2228,7 @@ hns3_dev_configure(struct rte_eth_dev *dev) /* When RSS is not configured, redirect the packet queue 0 */ if ((uint32_t)mq_mode & ETH_MQ_RX_RSS_FLAG) { @@ -32,10 +33,10 @@ if (rss_conf.rss_key == NULL) { rss_conf.rss_key = rss_cfg->key; diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c -index 904562e03..16d601270 100644 +index 251d0efe8..56a1be936 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c -@@ -784,6 +784,7 @@ hns3vf_dev_configure(struct rte_eth_dev *dev) +@@ -543,6 +543,7 @@ hns3vf_dev_configure(struct rte_eth_dev *dev) /* When RSS is not configured, redirect the packet queue 0 */ if ((uint32_t)mq_mode & ETH_MQ_RX_RSS_FLAG) {