Thread (8 messages) 8 messages, 2 authors, 12d ago

Re: [PATCH net-next v08 1/5] hinic3: Add ethtool queue ops

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-06-10 02:24:42
Also in: linux-doc, lkml

On Mon, 8 Jun 2026 20:36:30 +0800 Fan Gong wrote:
+	netdev_info(netdev, "Change Tx/Rx ring depth from %u/%u to %u/%u\n",
+		    nic_dev->q_params.sq_depth, nic_dev->q_params.rq_depth,
+		    new_sq_depth, new_rq_depth);
Please don't print messages like this, ethtool generates netlink
notifications when config changes. If someone cares they can subscribe.
+	if (!netif_running(netdev)) {
+		hinic3_update_qp_depth(netdev, new_sq_depth, new_rq_depth);
+	} else {
+		q_params = nic_dev->q_params;
+		q_params.sq_depth = new_sq_depth;
+		q_params.rq_depth = new_rq_depth;
+
+		err = hinic3_change_channel_settings(netdev, &q_params);
+		if (err) {
+			NL_SET_ERR_MSG_MOD(extack,
+					   "Failed to change channel settings");
This message is useless, if you don't have a specific error to report
don't report one. also see:
https://lore.kernel.org/r/20260609190919.1139517-1-kuba@kernel.org/ (local)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help