On 11/24/26 12:54 AM, [email protected] wrote:
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] In ibmveth_open() (drivers/net/ethernet/ibm/ibmveth.c, lines
1194-1199), the commit "ibmveth: Refactor TX resource allocation in…
--
ibmveth: Refactor TX resource allocation in open/close paths
This moves TX LTB allocation and freeing out of ibmveth_open() and
ibmveth_close() into new ibmveth_alloc_tx_resources() and
ibmveth_free_tx_resources() helpers. The TX LTBs are still mapped before
RX buffers are handed to PHYP. TX queues are now started under
netif_tx_lock_bh().
diff --git a/drivers/net/ethernet/ibm/ibmveth.c
b/drivers/net/ethernet/ibm/ibmveth.c
index ea0e5158040cb..06741a6756b88 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
[ ... ]
@@ -1147,7 +1191,12 @@ static int ibmveth_open(struct net_device *netdev)
netdev_dbg(netdev, "initial replenish cycle\n");
ibmveth_schedule_rx_queue(adapter, 0);
+ /* netif_tx_lock() takes each txq lock, so a sender that then sees
+ * DRV_XOFF clear under its txq lock also sees the LTBs set up above.
+ */
+ netif_tx_lock_bh(netdev);
netif_tx_start_all_queues(netdev);
+ netif_tx_unlock_bh(netdev);
[Severity: Low]
The commit message does describe this change. It is a behaviour change
justified as an ordering fix, though, and it sits in a patch titled as a
refactor with no Fixes: tag. Would it be better sent as a separate patch
with its own Fixes: tag?
Ah the issue is real. The set_channels side is a
standalone net fix posted the same day ("ibmveth: drop TX on a queue
whose long term buffer was freed"):
https://lore.kernel.org/netdev/[email protected]/
That patch was not in the net-next tree this review used, so the peer path
did not show up here. This patch stays a refactor only.
Thanks,
Mingming