Skip to content

Commit

Permalink
prov/efa: Adjust log level for setopt/getopt
Browse files Browse the repository at this point in the history
For unimplemented options, we shouldn't need a warning.
Application can tell from the FI_ENOPROTOOPT rc and do
the fall back accordingly.

Signed-off-by: Shi Jin <sjina@amazon.com>
  • Loading branch information
shijin-aws committed Sep 26, 2024
1 parent 16a4445 commit ebdb7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prov/efa/src/rdm/efa_rdm_ep_fiops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ static int efa_rdm_ep_setopt(fid_t fid, int level, int optname,
efa_rdm_ep->write_in_order_aligned_128_bytes = *(bool *)optval;
break;
default:
EFA_WARN(FI_LOG_EP_CTRL, "Unknown endpoint option\n");
EFA_INFO(FI_LOG_EP_CTRL, "Unknown endpoint option\n");
return -FI_ENOPROTOOPT;
}

Expand Down Expand Up @@ -1913,7 +1913,7 @@ static int efa_rdm_ep_getopt(fid_t fid, int level, int optname, void *optval,
*optlen = sizeof(bool);
break;
default:
EFA_WARN(FI_LOG_EP_CTRL, "Unknown endpoint option\n");
EFA_INFO(FI_LOG_EP_CTRL, "Unknown endpoint option\n");
return -FI_ENOPROTOOPT;
}

Expand Down

0 comments on commit ebdb7c7

Please sign in to comment.