Skip to contentSkip to conversation

net/ice: fix sideband queue initialization

PATCH Applied [email protected] 2 participants 2 messages Oct 19, 2021 – Oct 20, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix sideband queue initialization

From: Dapeng Yu <[email protected]>

Sideband queue need to be initialized when device is initialized. Otherwise the calling to function "ice_init_ctrlq" may fail.

This patch fixes it.

Fixes 97f4f78bbd9f ("net/ice/base: add functions for device clock control")
---
 drivers/net/ice/ice_ethdev.c | 7 +++++++
 drivers/net/ice/ice_ethdev.h | 1 +
 2 files changed, 8 insertions(+)
drivers/net/ice/ice_ethdev.c +7 -0
index 65e43a18f9..bca6bf6253 100644
@@ -350,6 +350,13 @@ ice_init_controlq_parameter(struct ice_hw *hw)
 	hw->mailboxq.num_sq_entries = ICE_MAILBOXQ_LEN;
 	hw->mailboxq.rq_buf_size = ICE_MAILBOXQ_BUF_SZ;
 	hw->mailboxq.sq_buf_size = ICE_MAILBOXQ_BUF_SZ;
+
+	/* fields for sideband queue */
+	hw->sbq.num_rq_entries = ICE_SBQ_LEN;
+	hw->sbq.num_sq_entries = ICE_SBQ_LEN;
+	hw->sbq.rq_buf_size = ICE_SBQ_MAX_BUF_LEN;
+	hw->sbq.sq_buf_size = ICE_SBQ_MAX_BUF_LEN;
+
 }
 
 static int
drivers/net/ice/ice_ethdev.h +1 -0
index 5845f44c86..1cd3753ccc 100644
@@ -19,6 +19,7 @@
 #define ICE_ADMINQ_LEN               32
 #define ICE_SBIOQ_LEN                32
 #define ICE_MAILBOXQ_LEN             32
+#define ICE_SBQ_LEN                  64
 #define ICE_ADMINQ_BUF_SZ            4096
 #define ICE_SBIOQ_BUF_SZ             4096
 #define ICE_MAILBOXQ_BUF_SZ          4096
Signature · 1 line
2.27.0
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 15 lines

-----Original Message-----
From: Yu, DapengX <[email protected]>
Sent: Tuesday, October 19, 2021 5:45 PM
To: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]; Yu, DapengX <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix sideband queue initialization

From: Dapeng Yu <[email protected]>

Sideband queue need to be initialized when device is initialized. Otherwise the calling to function "ice_init_ctrlq" may fail.

Quoted 6 lines

This patch fixes it.

Fixes 97f4f78bbd9f ("net/ice/base: add functions for device clock control")

Applied to dpdk-next-net-intel.

Thanks
Qi