[dpdk-stable] patch 'net/bnxt: fix writing MTU to FW' has been queued to LTS release 18.11.6

Kevin Traynor ktraynor at redhat.com
Tue Dec 10 15:59:10 CET 2019


Hi,

FYI, your patch has been queued to LTS release 18.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 12/16/19. 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/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/c55fdd85c7f22b90fce0b37ec35db6936efcc546

Thanks.

Kevin.

---
>From c55fdd85c7f22b90fce0b37ec35db6936efcc546 Mon Sep 17 00:00:00 2001
From: Ajit Khaparde <ajit.khaparde at broadcom.com>
Date: Thu, 24 Oct 2019 13:14:19 +0530
Subject: [PATCH] net/bnxt: fix writing MTU to FW

[ upstream commit 8d7bdc8c13fb34c1ca5c2ea08943a5c89ebe1a99 ]

We are currently writing the MAX supported MTU size even though
the MTU passed by the application is a different value.
Configure the application specified MTU instead.

Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for PF/VF")

Signed-off-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur at broadcom.com>
---
 drivers/net/bnxt/bnxt_hwrm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index 1f8996b7c..614cd47c5 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -2530,5 +2530,6 @@ static int bnxt_hwrm_pf_func_cfg(struct bnxt *bp, int tx_rings)
 			HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
 	req.flags = rte_cpu_to_le_32(bp->pf.func_cfg_flags);
-	req.mtu = rte_cpu_to_le_16(BNXT_MAX_MTU);
+	req.mtu = rte_cpu_to_le_16(RTE_MIN(bp->eth_dev->data->mtu,
+					   BNXT_MAX_MTU)); //FW adds hdr sizes
 	req.mru = rte_cpu_to_le_16(BNXT_VNIC_MRU(bp->eth_dev->data->mtu));
 	req.num_rsscos_ctxs = rte_cpu_to_le_16(bp->max_rsscos_ctx);
-- 
2.21.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-12-10 14:49:41.532490984 +0000
+++ 0036-net-bnxt-fix-writing-MTU-to-FW.patch	2019-12-10 14:49:39.066457506 +0000
@@ -1 +1 @@
-From 8d7bdc8c13fb34c1ca5c2ea08943a5c89ebe1a99 Mon Sep 17 00:00:00 2001
+From c55fdd85c7f22b90fce0b37ec35db6936efcc546 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8d7bdc8c13fb34c1ca5c2ea08943a5c89ebe1a99 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 3eedd08ee..c777c73bd 100644
+index 1f8996b7c..614cd47c5 100644
@@ -23,2 +24,2 @@
-@@ -2957,5 +2957,6 @@ static int bnxt_hwrm_pf_func_cfg(struct bnxt *bp, int tx_rings)
- 
+@@ -2530,5 +2530,6 @@ static int bnxt_hwrm_pf_func_cfg(struct bnxt *bp, int tx_rings)
+ 			HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);



More information about the stable mailing list