Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit message says "A queue count change is logged with the old and new counts", but the code only logs when the RX count changes. -- ibmveth: Allow changing the RX queue count This commit lets ethtool -L change the RX queue count on multi-queue firmware (1 to 16 queues). A running device is closed and reopened to apply the new counts, with a fallback to the old counts and the reset work if the reopen fails. Queue count changes are also logged.
> diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c > index 20cb9202b7d3f..87ce6bcda4721 100644 > --- a/drivers/net/ethernet/ibm/ibmveth.c > +++ b/drivers/net/ethernet/ibm/ibmveth.c
[ ... ]
> @@ -2144,11 +2147,90 @@ static void ibmveth_get_ethtool_stats(struct net_device *dev, > static void ibmveth_get_channels(struct net_device *netdev, > struct ethtool_channels *channels) > { > + struct ibmveth_adapter *adapter = netdev_priv(netdev); > + > channels->max_tx = ibmveth_real_max_tx_queues(); > channels->tx_count = netdev->real_num_tx_queues; > > - channels->max_rx = netdev->real_num_rx_queues; > channels->rx_count = netdev->real_num_rx_queues; > + channels->max_rx = adapter->multi_queue ? > + IBMVETH_MAX_RX_QUEUES : channels->rx_count; > +} > + > +/* Called with the device closed: open() sizes the RX queues and the TX > + * LTBs from these counts. > + */ > +static int ibmveth_set_queue_counts(struct net_device *netdev, > + unsigned int rx, unsigned int tx) > +{ > + struct ibmveth_adapter *adapter = netdev_priv(netdev); > + unsigned int old_rx = adapter->num_rx_queues; > + unsigned int old_tx = netdev->real_num_tx_queues; > + int rc; > + > + rc = netif_set_real_num_queues(netdev, tx, rx); > + if (!rc) { > + adapter->num_rx_queues = rx; > + if (old_rx != rx || old_tx != tx) { > + if (adapter->multi_queue) > + netdev_info(netdev, > + "queues %08x: RX %u -> %u, TX %u -> %u\n", > + adapter->vdev->unit_address, > + old_rx, rx, old_tx, tx); > + else if (old_tx != tx) > + netdev_info(netdev, > + "queues %08x: TX %u -> %u (RX 1)\n", > + adapter->vdev->unit_address, > + old_tx, tx);
[Severity: Low] Can this non-MQ branch ever run? Without MQ, ibmveth_get_channels() above sets max_rx to the current rx_count, which is 1. The ethtool core rejects an rx_count above max_rx. It also rejects an rx_count of 0 when combined_count is 0. So on a non-MQ adapter, rx always equals adapter->num_rx_queues, and ibmveth_set_channels() never reaches ibmveth_set_queue_counts(): if (rx != adapter->num_rx_queues) { if (adapter->opened) return ibmveth_reopen_with_counts(netdev, rx, goal); return ibmveth_set_queue_counts(netdev, rx, goal); } There is a related point in the commit message, which says: A queue count change is logged with the old and new counts. A TX-only change such as "ethtool -L <dev> tx N" resubmits the current rx_count, so it skips the block above. It takes the existing live TX path in ibmveth_set_channels(), which calls netif_set_real_num_tx_queues() and logs nothing. Should the commit message or the logging be adjusted so they match, and can the unreachable non-MQ branch be dropped?
> + } > + } > + return rc; > +}
[ ... ]
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40linux.ibm.com