From 727ee376a72da61d888c79d3e2425e072d1a08ab Mon Sep 17 00:00:00 2001 From: Shi Jin Date: Wed, 25 Sep 2024 22:19:41 +0000 Subject: [PATCH] prov/efa: Adjust log level for setopt/getopt 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 --- prov/efa/src/rdm/efa_rdm_ep_fiops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prov/efa/src/rdm/efa_rdm_ep_fiops.c b/prov/efa/src/rdm/efa_rdm_ep_fiops.c index 956c2804f82..6aa0cf96d63 100644 --- a/prov/efa/src/rdm/efa_rdm_ep_fiops.c +++ b/prov/efa/src/rdm/efa_rdm_ep_fiops.c @@ -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; } @@ -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; }