[PATCH] vdpa: snet: clear dpu_ready flag on reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The flag should be cleared on reset, otherwise, the DPU won't start
again after reset.

Signed-off-by: Alvaro Karsz <alvaro.karsz@xxxxxxxxxxxxx>
---
 drivers/vdpa/solidrun/snet_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/vdpa/solidrun/snet_main.c b/drivers/vdpa/solidrun/snet_main.c
index 0c13ccde4520..68de727398ed 100644
--- a/drivers/vdpa/solidrun/snet_main.c
+++ b/drivers/vdpa/solidrun/snet_main.c
@@ -255,6 +255,7 @@ static int snet_reset_dev(struct snet *snet)
 	snet_free_irqs(snet);
 	/* Reset status */
 	snet->status = 0;
+	snet->dpu_ready = false;
 
 	if (ret)
 		SNET_WARN(pdev, "Incomplete reset to SNET[%u] device\n", snet->sid);
-- 
2.34.1

_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/virtualization



[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux