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

From: Jakub Kicinski

Date: Tue Jun 09 2026 - 22:26:02 EST


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@xxxxxxxxxx/