From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 620BAA0A02; Fri, 26 Mar 2021 11:48:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93D0C140D57; Fri, 26 Mar 2021 11:48:10 +0100 (CET) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id C74734067B for ; Fri, 26 Mar 2021 11:48:08 +0100 (CET) Received: by mail-lf1-f42.google.com with SMTP id n138so7014938lfa.3 for ; Fri, 26 Mar 2021 03:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ev2r3Esh06gLEqeScWXOeuDMAAjLS+eoWZjxBVJ00kA=; b=MxBdY37L3o8S4+5ITGJ0HOfsbzymEPvqQDuWENfMOJwz0s8H4Rtj18poCFunmVC4+4 rV0E7yUOPkBeAymlyFzl5q0BnYDNxOVSyrjHTBjHPr8noT5Jm5mdoqfgg+okFWOg4EEG iQLJA/JIi+kI0byRtWsVs2QLmEcoIfRNFvMnHY6LrbyyYNeqRYG3B/81Zp97bwdZlyfZ RwT7274+LoStlO5QxLSARH4n4OUBDv2mTmwapya0M4tE2un/c5YDiKPLufiY+X/hrTlN Gf7AagPx9lB00KC98divgCX0avlheZDYqAQqq/A5wzb88vkIcbt7fl0kLN9Lci28ZGl2 tbiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ev2r3Esh06gLEqeScWXOeuDMAAjLS+eoWZjxBVJ00kA=; b=idtoTA4Z9nv/tbdFtjZhV6Ry1G97dKlnG1znaAURG5KCfKZJvZzOlwBl10ULUSlDmA nDIjJj4bZNL9DIpxpbogSRNi7zNL9qTIq/xiu0oZfRLMIZ01uELTkKFZ2U4RP3iDCq1y XS1wnNiP5VDkKMi3bUTGno13i6xuFQYyYDD7jaOJZb10F6/gdwYoG05hNXbSvkP7is4P NNGbw279NjrsDoHwn6cgXMPANvBWl/TufTnLxzLRuyHq921kxQBNPdw18lDT/lpTWc+m 3QFoCXa1WniuyKLkGTCeFkEnFD7HR79xVWX+PfjOe1E9SodoGkgKS9AdWAJES2HNJ5v+ +E0w== X-Gm-Message-State: AOAM530xIuKfugXL355A7CUhKSsp/Pi2TNs1WAe7YGA0W8d5/kUthfm+ HqiWJfSoWVrPIOmI27QJoKXl2h2dv6wK7w== X-Google-Smtp-Source: ABdhPJxE8QfoC9m3qc0w5l4Uiuie/GiKms6lI+4RLz0Ha8vkwPRxDB6FQI7L9+QV9XZhuIk9UWdNHA== X-Received: by 2002:a19:4116:: with SMTP id o22mr7927891lfa.272.1616755688227; Fri, 26 Mar 2021 03:48:08 -0700 (PDT) Received: from mkPC.int.semihalf.com (host-193.106.246.138.static.3s.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id e15sm829956lfs.83.2021.03.26.03.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 03:48:07 -0700 (PDT) From: Michal Krawczyk To: dev@dpdk.org, Robert Sanford , Erik Gabriel Carrillo Cc: Stanislaw Kardach , Michal Krawczyk Date: Fri, 26 Mar 2021 11:47:58 +0100 Message-Id: <20210326104759.280175-2-mk@semihalf.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210326104759.280175-1-mk@semihalf.com> References: <20210326104759.280175-1-mk@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/2] timer: clarify subsystem_init return value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Stanislaw Kardach rte_timer_subsystem_init() may return -EALREADY if it has been already initialized. Therefore put explicitly into doxygen that this is not a failure for the application. Signed-off-by: Stanislaw Kardach Reviewed-by: Michal Krawczyk --- lib/librte_timer/rte_timer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_timer/rte_timer.h b/lib/librte_timer/rte_timer.h index 22a27aa08d..0f820555c0 100644 --- a/lib/librte_timer/rte_timer.h +++ b/lib/librte_timer/rte_timer.h @@ -171,6 +171,7 @@ int rte_timer_data_dealloc(uint32_t id); * - 0: Success * - -ENOMEM: Unable to allocate memory needed to initialize timer * subsystem + * - -EALREADY: timer subsystem was already initialized. Not an error. */ int rte_timer_subsystem_init(void); -- 2.25.1