* [PATCH] [net] net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths()
@ 2025-06-25 2:04 zhangjianrong
2025-06-25 5:11 ` Mika Westerberg
2025-06-26 9:01 ` Paolo Abeni
0 siblings, 2 replies; 3+ messages in thread
From: zhangjianrong @ 2025-06-25 2:04 UTC (permalink / raw)
To: michael.jamet, mika.westerberg, YehezkelShB, andrew+netdev, davem,
edumazet, kuba, pabeni, netdev, linux-kernel
Cc: guhengsheng, caiyadong, xuetao09, lixinghang1
According to the description of tb_xdomain_enable_paths(), the third
parameter represents the transmit ring and the fifth parameter represents
the receive ring. tb_xdomain_disable_paths() is the same case.
Signed-off-by: zhangjianrong <zhangjianrong5@huawei.com>
---
drivers/net/thunderbolt/main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/thunderbolt/main.c b/drivers/net/thunderbolt/main.c
index 0a53ec293d04..f4c782759566 100644
--- a/drivers/net/thunderbolt/main.c
+++ b/drivers/net/thunderbolt/main.c
@@ -396,9 +396,9 @@ static void tbnet_tear_down(struct tbnet *net, bool send_logout)
ret = tb_xdomain_disable_paths(net->xd,
net->local_transmit_path,
- net->rx_ring.ring->hop,
+ net->tx_ring.ring->hop,
net->remote_transmit_path,
- net->tx_ring.ring->hop);
+ net->rx_ring.ring->hop);
if (ret)
netdev_warn(net->dev, "failed to disable DMA paths\n");
@@ -662,9 +662,9 @@ static void tbnet_connected_work(struct work_struct *work)
goto err_free_rx_buffers;
ret = tb_xdomain_enable_paths(net->xd, net->local_transmit_path,
- net->rx_ring.ring->hop,
+ net->tx_ring.ring->hop,
net->remote_transmit_path,
- net->tx_ring.ring->hop);
+ net->rx_ring.ring->hop);
if (ret) {
netdev_err(net->dev, "failed to enable DMA paths\n");
goto err_free_tx_buffers;
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] [net] net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths()
2025-06-25 2:04 [PATCH] [net] net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths() zhangjianrong
@ 2025-06-25 5:11 ` Mika Westerberg
2025-06-26 9:01 ` Paolo Abeni
1 sibling, 0 replies; 3+ messages in thread
From: Mika Westerberg @ 2025-06-25 5:11 UTC (permalink / raw)
To: zhangjianrong
Cc: michael.jamet, YehezkelShB, andrew+netdev, davem, edumazet, kuba,
pabeni, netdev, linux-kernel, guhengsheng, caiyadong, xuetao09,
lixinghang1
On Wed, Jun 25, 2025 at 10:04:48AM +0800, zhangjianrong wrote:
> According to the description of tb_xdomain_enable_paths(), the third
> parameter represents the transmit ring and the fifth parameter represents
> the receive ring. tb_xdomain_disable_paths() is the same case.
Good catch this too! It works now because both rings ->hop is the same but
better to be fixed.
> Signed-off-by: zhangjianrong <zhangjianrong5@huawei.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] [net] net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths()
2025-06-25 2:04 [PATCH] [net] net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths() zhangjianrong
2025-06-25 5:11 ` Mika Westerberg
@ 2025-06-26 9:01 ` Paolo Abeni
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Abeni @ 2025-06-26 9:01 UTC (permalink / raw)
To: zhangjianrong, michael.jamet, mika.westerberg, YehezkelShB,
andrew+netdev, davem, edumazet, kuba, netdev, linux-kernel
Cc: guhengsheng, caiyadong, xuetao09, lixinghang1
On 6/25/25 4:04 AM, zhangjianrong wrote:
> According to the description of tb_xdomain_enable_paths(), the third
> parameter represents the transmit ring and the fifth parameter represents
> the receive ring. tb_xdomain_disable_paths() is the same case.
>
> Signed-off-by: zhangjianrong <zhangjianrong5@huawei.com>
Please add a suitable fixes tag and repost. You can retain Mika's ack.
Thanks,
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-26 9:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 2:04 [PATCH] [net] net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths() zhangjianrong
2025-06-25 5:11 ` Mika Westerberg
2025-06-26 9:01 ` Paolo Abeni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).