test suite reviews and discussions
 help / color / mirror / Atom feed
* [PATCH] nics/net_device: add longer timeout for binding driver
@ 2023-08-11 13:09 Niklas Söderlund
  0 siblings, 0 replies; only message in thread
From: Niklas Söderlund @ 2023-08-11 13:09 UTC (permalink / raw)
  To: dts; +Cc: oss-drivers, Qin Ke, Niklas Söderlund

From: Qin Ke <qin.ke@corigine.com>

It may take a long time whiling binding NIC port to specified
driver, add longer timeout to ensure this operation can execute
successfully and stably for all NIC.

It is required for NFP as it can take a long time to bind

Signed-off-by: Qin Ke <qin.ke@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
---
 nics/net_device.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nics/net_device.py b/nics/net_device.py
index 0f9c1af46a77..ec75d017df50 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -832,7 +832,9 @@ class NetDevice(object):
             "# ",
         )
         self.__send_expect(
-            "echo %s > /sys/bus/pci/drivers/%s/bind" % (nic_pci_num, driver), "# "
+            "echo %s > /sys/bus/pci/drivers/%s/bind" % (nic_pci_num, driver),
+            "# ",
+            timeout=80,
         )
         if driver == self.default_driver:
             itf = self.get_interface_name()
-- 
2.41.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-11 13:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-11 13:09 [PATCH] nics/net_device: add longer timeout for binding driver Niklas Söderlund

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).