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 B006DA0A0A for ; Tue, 23 Mar 2021 19:26:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6DCF140D3A; Tue, 23 Mar 2021 19:26:09 +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 454C94069E 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-66-xdUEWaYVP5iXwX3y8z6gTQ-1; Tue, 23 Mar 2021 14:26:04 -0400 X-MC-Unique: xdUEWaYVP5iXwX3y8z6gTQ-1 Received: by mail-ua1-f70.google.com with SMTP id b19so543258uav.8 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=ce2ko+bA9N8+2Cln0CX/ha8LnStwgQDdY9h09TKYxi+uNIobGIGJUhlhPIJwMQamTz CakUOLm/xNRhCR9lUWTMW0aiwKozSxD5hFLrZPD4rNOy716jAC051lGFu1BEpJa5mjdD VT0honQ6omjX77IzKzUpeKmV5Lw7UcfXTam9//kFRaIjyc7uqo7ZC1OYHDCytmop2oyk 1jQjNws/wHFjbjy2TZFM3qPFrsTLpvOfbhoBdZERpncgoBiXibjsn5gHAqriK7xgIXTj uBxy8D4UVwIATZJvzd8NbNETsljjvACVT33VlHUtOvdZjIakufs0/KkwyzgxlQgfwyly lfyQ== X-Gm-Message-State: AOAM533EymkWFpkcjRr6WDQDUB3+gX4EbtkMo7eXmjnRlJt+rx6F6bfH 5MXwMQ7i4SQbF9Iz7stE5VC6lzYxF8/UEyxU2Yajp3Bvkd3Bbq6Wj6vo7zq0ahucXhObKZrBpSO KLea2+Z4kCJhv7DVPtb3kZ2s= X-Received: by 2002:ab0:30d4:: with SMTP id c20mr4655393uam.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-stable] [PATCH 2/3] drivers: fix log level after loading X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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