Skip to content

Commit 805f7ef

Browse files
committed
mctpd: don't retry when doing a bridge poll
Avoid multiple timeouts while polling downstream bridge endpoints. We'll continue to poll on a command timeout anyway. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
1 parent da41ffc commit 805f7ef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/mctpd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5925,6 +5925,8 @@ static int peer_endpoint_poll(sd_event_source *s, uint64_t usec, void *userdata)
59255925
MCTP_CTRL_CMD_GET_ENDPOINT_ID);
59265926

59275927
mctp_ctrl_cmd_init_from_req_type(&cmd, req);
5928+
/* don't retry here, we're just probing */
5929+
cmd.disable_retry = true;
59285930

59295931
rc = endpoint_query_addr(bridge->ctx, &req_addr, false, &cmd);
59305932
if (rc < 0) {

0 commit comments

Comments
 (0)