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 056DB41C33; Tue, 7 Feb 2023 21:42:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FFB1410D1; Tue, 7 Feb 2023 21:41:57 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id AD88C40151 for ; Tue, 7 Feb 2023 21:41:55 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id mi9so16227185pjb.4 for ; Tue, 07 Feb 2023 12:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yqxpGzyhnbg0vLuxvbJa55A/oxbok2U1f3+mHeGfhNc=; b=xp0tLnpWehhjeCMdMJn1/26zjzkh6lKY95ebCtkm1G8VGsZABNArZ4ds8A9WzW0lMg 5Jsv5c91Gj7hZx3mPB3j0Dbw4cZRvOt2MhAhKg2g0yIIJj+LJcZV7lzBRjkcNjnoF5H9 43wmLDC5+wedLzGoXwhl/qZMssxlHcVfpiKdVX624abEBH6umRdGSbbc18GJr7XnPvKK D+CeeNQ5oHi56a36BFWCnzOEwMqMNLtXDqIl8TGeSPDLMgbTwt0e6F63z1fAhWQy1Ylk uCPh1PdEf7+YIyGre1gwEue6bllaQC5BVF0TqLcrq4AwAchqPB7WCZhElQQ3LRy+9qNs mnVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yqxpGzyhnbg0vLuxvbJa55A/oxbok2U1f3+mHeGfhNc=; b=BmGQUYQR31lIc3mWONf/h4WXHbi9pOqpMCOb1IM/6mWRmbKMqU+wwO1G3enEA8tvAU 4HqBKom5D4BgVigKJRknaO7DaOReA3sZfVKW6pYci0beK0xmd7tiykW583XaSjRilBDN 00cqGpVDIY5uSpPvuGNDfMQSOor0MjK0rhuWolLktx7DGk3aknes5z+JxfzERT1ulQ7y FSRKKe7XhUDtM0uyMx1ZAtfpJxVoYh96A0tRHgmqfbynZqCBUl9eaKnil/EIYMbyImgE WUqICeX3pb+JuUwILAPQNEIBjYkXtpLNDGvBbTIYHtVOGeuJQ4SEiziXNhRa5b08d1P3 HYIA== X-Gm-Message-State: AO0yUKU+lPiyp1+mauuHm5h38djm8LiaOv4mUi5f1JsAnhtac/NJEsMC /yszgAuX2FYRy7W8Sl5g32PyP4apJ/B7zi5euhg= X-Google-Smtp-Source: AK7set9WNMc9x8HdMmleM6IycVL1O1cgT55xpNbJ6JaP1PZgqObTqnsNkUvUBAlJVmZPcOjLOHmo9A== X-Received: by 2002:a17:902:e5cb:b0:199:2353:1ef6 with SMTP id u11-20020a170902e5cb00b0019923531ef6mr5243238plf.28.1675802514635; Tue, 07 Feb 2023 12:41:54 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id jk24-20020a170903331800b00194ab9a4febsm4725562plb.74.2023.02.07.12.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 12:41:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [RFC 01/13] doc: document intention to deprecate RTE_LOGTYPE_USER* Date: Tue, 7 Feb 2023 12:41:39 -0800 Message-Id: <20230207204151.1503491-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230207204151.1503491-1-stephen@networkplumber.org> References: <20230207204151.1503491-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 These static log types should be deprecated in next stable release. Also, remove use of USER1 from example of doing mlockall. Signed-off-by: Stephen Hemminger --- doc/guides/prog_guide/writing_efficient_code.rst | 3 +-- doc/guides/rel_notes/deprecation.rst | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/guides/prog_guide/writing_efficient_code.rst b/doc/guides/prog_guide/writing_efficient_code.rst index e6c26efdd3a3..250e06bd734f 100644 --- a/doc/guides/prog_guide/writing_efficient_code.rst +++ b/doc/guides/prog_guide/writing_efficient_code.rst @@ -89,8 +89,7 @@ To avoid these you could pre-load, and lock them into memory with the ``mlockall .. code-block:: c if (mlockall(MCL_CURRENT | MCL_FUTURE)) { - RTE_LOG(NOTICE, USER1, "mlockall() failed with error \"%s\"\n", - strerror(errno)); + perror("mlockall"); } Communication Between lcores diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index ac9aa7630b61..935e68134d0e 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -136,3 +136,7 @@ Deprecation Notices Its removal has been postponed to let potential users report interest in maintaining it. In the absence of such interest, this library will be removed in DPDK 23.11. + +* rte_log: The pre-defined RTE_LOGTYPE_USER* macros are planned to be + deprecated starting with the 23.07 release. Applications should use the + dynamic log types available with RTE_LOG_REGISTER instead. -- 2.39.1