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 AA5D3A0093 for ; Tue, 19 May 2020 15:09:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A06051D6A4; Tue, 19 May 2020 15:09:45 +0200 (CEST) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id B78481D6A4 for ; Tue, 19 May 2020 15:09:44 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id m185so3487293wme.3 for ; Tue, 19 May 2020 06:09:44 -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=53UMWgolKBuFDXUaz1hM8Qw2cK9Qh0znb8YHikiUNN8=; b=vbMhoChd95rLsncW3fVbgMsy/6v6fcYGK3inR9yLUgau0r3Yaj6vnmtSgS7+EXcQba 9lESl27MX9DAEsclOUdtxyHYl08lJUPjk/Bz2jEXG5JvHDW+smQMwQQXUktR4NO4sMEx hfRnKQxpzxCTZujuO19VLoTyJ9OKs0TjmzLQ9bHQgxBXYaua4yZoA34ukEX0/xD5uu1s hhFAejXsg+W4BOk35KJo1eHoXJ6hCSwPxLnSKJOk4wB3LuzM5aQhH5EOqnu1rIUgX+9i n6uC0ilhCek+fFa2dfSJS8wQ49yn4b/oa76L6DUnNf/2cLyQvUM5sgsE2wH8gd2kS0rO 6GWg== 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=53UMWgolKBuFDXUaz1hM8Qw2cK9Qh0znb8YHikiUNN8=; b=rRS7j2hbHlo6HQD7hh2XRs4kwilOzyvgDwC73ednaNTe9leLwA8P/wDpvy1N2j5g/P 98JsUHqfRoqQiuzetqt76zRtro5SR61PiYcSs3Rq498CPcn1I7a1++3+iJnBe3WNQvfK Vk/PoXifyEp4/Z+Jp7FwlDWrK+kovaSp97GW1B7mr1XTPmkQhm/xyIKdDh2ThNhvUHP2 UBHXRDGetmNU9LtM0A5ZouJrcRWW7+O1srZrRhusFVF5suM2IVsYR2IuPx3g+EGTqhnW GkayCYuAOmjjn00AiUpge5SvT3gQIMwbXt5pkDFEYkPl0R7yFLdlOBtFPfpApS8AZrvI n9sA== X-Gm-Message-State: AOAM530nYxZIm58+bK3DopTDTw6XhKqOuZTjopibB5Kyte94BAzpJAfv R2lb4uCGXT7d7NzIpbv4pus= X-Google-Smtp-Source: ABdhPJxxCaWxlGuA7eUxTyClsb5eeu4xZcaJPUySEHxnZ3M1i6uA1HHivMaEMp5dCQjhTECSaB70GQ== X-Received: by 2002:a7b:c193:: with SMTP id y19mr5374985wmi.158.1589893784457; Tue, 19 May 2020 06:09:44 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id u10sm3902974wmc.31.2020.05.19.06.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 06:09:41 -0700 (PDT) From: luca.boccassi@gmail.com To: Lijun Ou Cc: Wei Hu , dpdk stable Date: Tue, 19 May 2020 14:03:30 +0100 Message-Id: <20200519130549.112823-75-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200519130549.112823-1-luca.boccassi@gmail.com> References: <20200519125804.104349-1-luca.boccassi@gmail.com> <20200519130549.112823-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/hns3: add RSS hash offload to capabilities' has been queued to stable release 19.11.3 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.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 05/21/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 c4e9d7e10cac163abf637f5748c38de019ded642 Mon Sep 17 00:00:00 2001 From: Lijun Ou Date: Fri, 10 Apr 2020 19:09:27 +0800 Subject: [PATCH] net/hns3: add RSS hash offload to capabilities [ upstream commit 2823b082f93c94c5c97fa572b5b84b637e088668 ] Currently, when upper application calls rte_eth_dev_info_get API function to query the Rx offload capability based on hns3 network engine, RSS hash offload capacity is missing. This patch fixes it by adding the related capacity in the '.dev_infos_get' ops implementation function named hns3_dev_infos_get and hns3vf_dev_infos_get for hns3 PF/VF PMD driver. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_ethdev.c | 3 ++- drivers/net/hns3/hns3_ethdev_vf.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c index 42ef33f4b9..0ce5459389 100644 --- a/drivers/net/hns3/hns3_ethdev.c +++ b/drivers/net/hns3/hns3_ethdev.c @@ -2209,7 +2209,8 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) DEV_RX_OFFLOAD_QINQ_STRIP | DEV_RX_OFFLOAD_VLAN_FILTER | DEV_RX_OFFLOAD_VLAN_EXTEND | - DEV_RX_OFFLOAD_JUMBO_FRAME); + DEV_RX_OFFLOAD_JUMBO_FRAME | + DEV_RX_OFFLOAD_RSS_HASH); info->tx_queue_offload_capa = DEV_TX_OFFLOAD_MBUF_FAST_FREE; info->tx_offload_capa = (DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM | DEV_TX_OFFLOAD_IPV4_CKSUM | diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c index 6f8e909f62..08f5c78015 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c @@ -561,7 +561,8 @@ hns3vf_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_QINQ_STRIP | DEV_RX_OFFLOAD_VLAN_FILTER | - DEV_RX_OFFLOAD_JUMBO_FRAME); + DEV_RX_OFFLOAD_JUMBO_FRAME | + DEV_RX_OFFLOAD_RSS_HASH); info->tx_queue_offload_capa = DEV_TX_OFFLOAD_MBUF_FAST_FREE; info->tx_offload_capa = (DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM | DEV_TX_OFFLOAD_IPV4_CKSUM | -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-05-19 14:04:47.519947016 +0100 +++ 0075-net-hns3-add-RSS-hash-offload-to-capabilities.patch 2020-05-19 14:04:44.240648808 +0100 @@ -1,8 +1,10 @@ -From 2823b082f93c94c5c97fa572b5b84b637e088668 Mon Sep 17 00:00:00 2001 +From c4e9d7e10cac163abf637f5748c38de019ded642 Mon Sep 17 00:00:00 2001 From: Lijun Ou Date: Fri, 10 Apr 2020 19:09:27 +0800 Subject: [PATCH] net/hns3: add RSS hash offload to capabilities +[ upstream commit 2823b082f93c94c5c97fa572b5b84b637e088668 ] + Currently, when upper application calls rte_eth_dev_info_get API function to query the Rx offload capability based on hns3 network engine, RSS hash offload capacity is missing. @@ -12,7 +14,6 @@ and hns3vf_dev_infos_get for hns3 PF/VF PMD driver. Fixes: c37ca66f2b27 ("net/hns3: support RSS") -Cc: stable@dpdk.org Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) @@ -22,10 +23,10 @@ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c -index 0add73d2f3..0b8fa0e7fc 100644 +index 42ef33f4b9..0ce5459389 100644 --- a/drivers/net/hns3/hns3_ethdev.c +++ b/drivers/net/hns3/hns3_ethdev.c -@@ -2407,7 +2407,8 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) +@@ -2209,7 +2209,8 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) DEV_RX_OFFLOAD_QINQ_STRIP | DEV_RX_OFFLOAD_VLAN_FILTER | DEV_RX_OFFLOAD_VLAN_EXTEND | @@ -36,10 +37,10 @@ info->tx_offload_capa = (DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM | DEV_TX_OFFLOAD_IPV4_CKSUM | diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c -index 2964991775..391079b8e1 100644 +index 6f8e909f62..08f5c78015 100644 --- a/drivers/net/hns3/hns3_ethdev_vf.c +++ b/drivers/net/hns3/hns3_ethdev_vf.c -@@ -908,7 +908,8 @@ hns3vf_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) +@@ -561,7 +561,8 @@ hns3vf_dev_infos_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *info) DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_QINQ_STRIP | DEV_RX_OFFLOAD_VLAN_FILTER |