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 8332AA0A0A; Tue, 23 Mar 2021 19:26:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C22E4069E; Tue, 23 Mar 2021 19:26:08 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 4224B40143 for ; Tue, 23 Mar 2021 19:26:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616523965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ioZzfEzhTmCVYEqHwphn1mpXV/Tj6ovuZ0CP5An9Akg=; b=RVjg8Z+DuUlQxYplJUrUKfLvK3Dcb55cUVRi3M6auf0B34eC+fnGOUiymLKBA32Gfsv2Hy +GtFVXKZowk3XfGKClejcQjh2HhMF2uRovmHzN6qpzV0E4Am4Aga3NK3m+l13gpxvg4HXq fkBzN0mN24/vMHUXyju6W4zZUYCt1wk= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-252-NtEWlsuePHCF2TjC3FQlPQ-1; Tue, 23 Mar 2021 14:26:04 -0400 X-MC-Unique: NtEWlsuePHCF2TjC3FQlPQ-1 Received: by mail-ua1-f70.google.com with SMTP id i9so539012uaj.21 for ; Tue, 23 Mar 2021 11:26:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ioZzfEzhTmCVYEqHwphn1mpXV/Tj6ovuZ0CP5An9Akg=; b=YqSiL5z9zXFG4x3cJXMeBf25HKNQISWOqz3dkbAWK+IrAvqyEm+zMYcMt/ZCyODlqr Xb/biYKfAK9Dl+TIwdoUeBCHD4pz9cPPqJZQYmIzazr361iFGQBpRSgWk6sZrLKVTBjr C7WKT0uyLg7mWZD+TIAICNJFFXrpsTQ3Md0lU/8xf3I2ZTX0AiYiYIIRqkhbcEvSUPSW tmCyiCoULfp4D4/jNAj1kuYSR9gApm+48m0dvEaOMhKmRouVa7ASQdIzEdZR3fMvEpQ5 CM3cF2OKVCX2qPAypPtYwCRqa0VCV45/ESyvOU1fS4HMGM9K2M5GE/3BclkKM1WJ/N0r 7vLg== X-Gm-Message-State: AOAM530DofBHutEI/Lxb6YNGkvKTbXRl58JvZy21niY/AzQ5HT8HgA2v pcgTmGQ9+c1RpNNF4a6hHq0XGrtwCyZl68UH2z91n1uurpFE+SdOTTnvzMf9zKR/YFBJidCJkTI YPb5NUphqRbIBGm8K/zU= X-Received: by 2002:ab0:30d4:: with SMTP id c20mr4655394uam.86.1616523963663; Tue, 23 Mar 2021 11:26:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTw9qoHoBXLmRiGyR8BcSoVSOropVjW9pMj54Hske8K8PK8jV4UeIYfczD+9d6u+Mgzj5w5LvlEJ8FaJZ2ZFU= X-Received: by 2002:ab0:30d4:: with SMTP id c20mr4655374uam.86.1616523963498; Tue, 23 Mar 2021 11:26:03 -0700 (PDT) MIME-Version: 1.0 References: <20210310140107.2730088-1-thomas@monjalon.net> <20210310140107.2730088-3-thomas@monjalon.net> In-Reply-To: <20210310140107.2730088-3-thomas@monjalon.net> From: David Marchand Date: Tue, 23 Mar 2021 19:25:50 +0100 Message-ID: To: Thomas Monjalon Cc: dev , dpdk stable , Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko , Ajit Khaparde , Raveendra Padasalagi , Vikas Gupta , Jeff Guo , Haiyue Wang , Adam Dybkowski , Jerin Jacob , Akhil Goyal , Sachin Saxena Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH 2/3] drivers: fix log level after loading 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" On Wed, Mar 10, 2021 at 3:01 PM Thomas Monjalon wrote: > > When compiled as a shared object, and loaded at runtime as a plugin, > the drivers should get the log level set earlier at EAL init > by the user through --log-level option. > > The function for applying the log level setting is > rte_log_register_type_and_pick_level(). > It is called by most drivers via RTE_LOG_REGISTER(). > > The drivers common/mlx5, bcmfs and e1000 were missing, > so the user-specified log level was not applied when > those drivers were loaded as plugins. > The macro RTE_LOG_REGISTER() is used for those drivers. > > The unnecessary protection for double registration > is removed from e1000. > > Fixes: 9c99878aa1b1 ("log: introduce logtype register macro") > Fixes: c8e79da7c676 ("crypto/bcmfs: introduce BCMFS driver") > Cc: stable@dpdk.org > > Signed-off-by: Thomas Monjalon Reviewed-by: David Marchand -- David Marchand