From: mingming cao <mmc@linux.ibm.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, maddy@linux.ibm.com, mpe@ellerman.id.au,
npiggin@gmail.com, chleroy@kernel.org, ritesh.list@gmail.com,
sshegde@linux.ibm.com, nnac123@linux.ibm.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com,
linuxppc-dev@lists.ozlabs.org, horms@kernel.org,
davemarq@linux.ibm.com, haren@linux.ibm.com,
ricklind@linux.ibm.com, bjking1@linux.ibm.com,
shaik.abdulla1@ibm.com
Subject: Re: [PATCH net-next v2 5/8] ibmveth: Refactor TX resource allocation in open/close paths
Date: Tue, 24 Nov 2026 11:15:43 -0800 [thread overview]
Message-ID: <29de5f03-09e3-48a2-abbb-c5c6eb5539e7@linux.ibm.com> (raw)
In-Reply-To: <179551045457.3135.17656003339909508108@kernel.org>
On 11/24/26 12:54 AM, netdev-bot+sashiko@kernel.org 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/20261123075102.2962-2-mmc@linux.ibm.com/
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
next prev parent reply other threads:[~2026-11-24 19:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 7:51 [PATCH net-next v2 0/8] ibmveth: prepare the RX path for multi-queue Mingming Cao
2026-11-23 7:51 ` [PATCH net-next v2 1/8] ibmveth: Prepare MQ RX adapter data structures Mingming Cao
2026-11-23 7:51 ` [PATCH net-next v2 2/8] ibmveth: Refactor RX resource allocation for MQ RX bring-up Mingming Cao
2026-11-23 7:51 ` [PATCH net-next v2 3/8] ibmveth: Refactor buffer pool management for per-queue MQ RX Mingming Cao
2026-11-24 8:54 ` netdev-bot+sashiko
2026-11-24 19:10 ` mingming cao
2026-11-23 7:51 ` [PATCH net-next v2 4/8] ibmveth: Refactor RX interrupt control for MQ RX queues Mingming Cao
2026-11-23 7:51 ` [PATCH net-next v2 5/8] ibmveth: Refactor TX resource allocation in open/close paths Mingming Cao
2026-11-24 8:54 ` netdev-bot+sashiko
2026-11-24 19:15 ` mingming cao [this message]
2026-11-23 7:51 ` [PATCH net-next v2 6/8] ibmveth: Add RX queue register helpers for MQ Mingming Cao
2026-11-23 7:51 ` [PATCH net-next v2 7/8] ibmveth: Pass the RX queue index through replenish and poll Mingming Cao
2026-11-23 7:51 ` [PATCH net-next v2 8/8] ibmveth: Split RX poll into per-slot helpers for MQ Mingming Cao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29de5f03-09e3-48a2-abbb-c5c6eb5539e7@linux.ibm.com \
--to=mmc@linux.ibm.com \
--cc=andrew+netdev@lunn.ch \
--cc=bjking1@linux.ibm.com \
--cc=chleroy@kernel.org \
--cc=davem@davemloft.net \
--cc=davemarq@linux.ibm.com \
--cc=edumazet@kernel.org \
--cc=haren@linux.ibm.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nnac123@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=pabeni@redhat.com \
--cc=ricklind@linux.ibm.com \
--cc=ritesh.list@gmail.com \
--cc=shaik.abdulla1@ibm.com \
--cc=sshegde@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox