Thread (2 messages) 2 messages, 2 authors, 2023-07-26

Re: [PATCH V5 net-next] net: mana: Configure hwc timeout from hardware

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-07-26 02:57:04
Also in: linux-hyperv, linux-rdma, lkml

On Sun, 23 Jul 2023 22:38:40 -0700 Souradeep Chakrabarti wrote:
quoted hunk ↗ jump to hunk
@@ -825,7 +847,8 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len,
 		goto out;
 	}
 
-	if (!wait_for_completion_timeout(&ctx->comp_event, 30 * HZ)) {
+	if (!wait_for_completion_timeout(&ctx->comp_event,
+					 (hwc->hwc_timeout / 1000) * HZ)) {
 		dev_err(hwc->dev, "HWC: Request timed out!\n");
 		err = -ETIMEDOUT;
 		goto out;
msecs_to_jiffies()
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help