[dpdk-stable] patch 'net/bnxt: use true/false for bool types' has been queued to stable release 19.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue May 19 15:04:08 CEST 2020


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 6cc939165f7e4397f740b00898889c1fd1fc63e0 Mon Sep 17 00:00:00 2001
From: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
Date: Tue, 21 Apr 2020 14:33:47 -0700
Subject: [PATCH] net/bnxt: use true/false for bool types

[ upstream commit ec16ad80c692e8d285fd4660703615725181419e ]

Fixes: 0b533591238f ("net/bnxt: inform firmware about IF state changes")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur at broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson at broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
---
 drivers/net/bnxt/bnxt_ethdev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index b85ec14005..ed88b594df 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -847,7 +847,7 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
 	}
 
 	do {
-		rc = bnxt_hwrm_if_change(bp, 1);
+		rc = bnxt_hwrm_if_change(bp, true);
 		if (rc == 0 || rc != -EAGAIN)
 			break;
 
@@ -891,7 +891,7 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
 	return 0;
 
 error:
-	bnxt_hwrm_if_change(bp, 0);
+	bnxt_hwrm_if_change(bp, false);
 	bnxt_shutdown_nic(bp);
 	bnxt_free_tx_mbufs(bp);
 	bnxt_free_rx_mbufs(bp);
@@ -965,7 +965,7 @@ static void bnxt_dev_stop_op(struct rte_eth_dev *eth_dev)
 	/* Process any remaining notifications in default completion queue */
 	bnxt_int_handler(eth_dev);
 	bnxt_shutdown_nic(bp);
-	bnxt_hwrm_if_change(bp, 0);
+	bnxt_hwrm_if_change(bp, false);
 	bp->rx_cosq_cnt = 0;
 }
 
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-05-19 14:04:49.090845796 +0100
+++ 0113-net-bnxt-use-true-false-for-bool-types.patch	2020-05-19 14:04:44.380651345 +0100
@@ -1,10 +1,11 @@
-From ec16ad80c692e8d285fd4660703615725181419e Mon Sep 17 00:00:00 2001
+From 6cc939165f7e4397f740b00898889c1fd1fc63e0 Mon Sep 17 00:00:00 2001
 From: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
 Date: Tue, 21 Apr 2020 14:33:47 -0700
 Subject: [PATCH] net/bnxt: use true/false for bool types
 
+[ upstream commit ec16ad80c692e8d285fd4660703615725181419e ]
+
 Fixes: 0b533591238f ("net/bnxt: inform firmware about IF state changes")
-Cc: stable at dpdk.org
 
 Signed-off-by: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
 Reviewed-by: Somnath Kotur <somnath.kotur at broadcom.com>
@@ -15,10 +16,10 @@
  1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
-index b6c7132564..780d9c46e9 100644
+index b85ec14005..ed88b594df 100644
 --- a/drivers/net/bnxt/bnxt_ethdev.c
 +++ b/drivers/net/bnxt/bnxt_ethdev.c
-@@ -1065,7 +1065,7 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
+@@ -847,7 +847,7 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
  	}
  
  	do {
@@ -27,7 +28,7 @@
  		if (rc == 0 || rc != -EAGAIN)
  			break;
  
-@@ -1113,7 +1113,7 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
+@@ -891,7 +891,7 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)
  	return 0;
  
  error:
@@ -36,15 +37,15 @@
  	bnxt_shutdown_nic(bp);
  	bnxt_free_tx_mbufs(bp);
  	bnxt_free_rx_mbufs(bp);
-@@ -1190,7 +1190,7 @@ static void bnxt_dev_stop_op(struct rte_eth_dev *eth_dev)
+@@ -965,7 +965,7 @@ static void bnxt_dev_stop_op(struct rte_eth_dev *eth_dev)
  	/* Process any remaining notifications in default completion queue */
  	bnxt_int_handler(eth_dev);
  	bnxt_shutdown_nic(bp);
 -	bnxt_hwrm_if_change(bp, 0);
 +	bnxt_hwrm_if_change(bp, false);
+ 	bp->rx_cosq_cnt = 0;
+ }
  
- 	rte_free(bp->mark_table);
- 	bp->mark_table = NULL;
 -- 
 2.20.1
 


More information about the stable mailing list