Skip to content

Commit d616ab5

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 f2df9a5 commit d616ab5

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
@@ -5596,6 +5596,8 @@ static int peer_endpoint_poll(sd_event_source *s, uint64_t usec, void *userdata)
55965596
MCTP_CTRL_CMD_GET_ENDPOINT_ID);
55975597

55985598
mctp_ctrl_cmd_init_from_req_type(&cmd, req);
5599+
/* don't retry here, we're just probing */
5600+
cmd.disable_retry = true;
55995601

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

0 commit comments

Comments
 (0)