From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A11F9A04DD for ; Wed, 18 Nov 2020 15:10:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F5B3C8F4; Wed, 18 Nov 2020 15:10:21 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 68BA1C8DA for ; Wed, 18 Nov 2020 15:10:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605708616; 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=S8VoNLJw8sjxbs9jNdzNaVLTNmN0iwKXTXA8b4zYeLo=; b=O0HvFqmUtO+SDEix6l85phspPuoj9jCENxtlqxxaPgBciRUfw8V3LZ2zurvl8g3O33ETHM yzcZu7jvWnLUxnMv+xJ13fFedDFDdB2RGLR5rkjf/BCkIcvONvrZk70TSAj1tinDcaoBGk niiS+Qi9XqC8Rkd1la7tjH0yxfepjvU= Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-4-YVsFwZiZOLGAcDjITKqlvg-1; Wed, 18 Nov 2020 09:10:13 -0500 X-MC-Unique: YVsFwZiZOLGAcDjITKqlvg-1 Received: by mail-vs1-f69.google.com with SMTP id x16so259488vsq.15 for ; Wed, 18 Nov 2020 06:10:13 -0800 (PST) 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=S8VoNLJw8sjxbs9jNdzNaVLTNmN0iwKXTXA8b4zYeLo=; b=ePyISHIHhKh71aDypA4Ie8mJdzWgBk0SDVZcoxjp0yPkLIg14Wx1zi96Lcj4zjruWB ox+INA6EhJBmc6bVlhA8c5dCN+1seHSv+b+8ScyICQxpUC8TTOBPiyIlVwgHv0mI5r+n vCbCiEBUFzYzM+R3J8n3HnVUws++1WAwPNn0VPdTrgPI4GwnIneHaEw602Y/vdP5+hSY eItfeCvI6s0ZKn8RQOI7ZIg0aS3m1KUaMW7UPKnFwsfAXYeGK3WGTtU7T/q5SyA+JATZ /zc00J9wqPPrtLTLcGCU7Lge1y6UvBHnMlZDzEXrfWiGG1a9XgRIeEIYXN3aqxC6uSlQ tseg== X-Gm-Message-State: AOAM5300Qsv2yQE4mEv8ZcatzkfVepx4v4NNbshky+obkWOGBl6KxIm6 /R/THKwsEVhzepB/To1N28quS9OZjAM8S+34J1mwKoefnr3bG7XSMLVlvr/KAXYEaq36OGXODuY 0oHeay1q9uOumibqpFltHUHI= X-Received: by 2002:a1f:9004:: with SMTP id s4mr3215145vkd.22.1605708612654; Wed, 18 Nov 2020 06:10:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDpjswEsilA5O4P8HscD+3AazaPG70vmnrPFajEJk2FlOe73cJoene8uecwAXfbYD+tIcfqIhniX5QgMQeK8w= X-Received: by 2002:a1f:9004:: with SMTP id s4mr3215119vkd.22.1605708612481; Wed, 18 Nov 2020 06:10:12 -0800 (PST) MIME-Version: 1.0 References: <20201117171435.2303641-1-ferruh.yigit@intel.com> <20201118114525.99053-1-ferruh.yigit@intel.com> <20201118114525.99053-2-ferruh.yigit@intel.com> In-Reply-To: <20201118114525.99053-2-ferruh.yigit@intel.com> From: David Marchand Date: Wed, 18 Nov 2020 15:10:01 +0100 Message-ID: To: Ferruh Yigit , Maryam Tahhan Cc: Reshma Pattan , Roman Korynkevych , Harry van Haaren , dev , dpdk stable 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] [dpdk-dev] [PATCH v2 1/7] app/procinfo: fix redundant condition X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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, Nov 18, 2020 at 12:46 PM Ferruh Yigit wrote: > > '_filters' is compared twice, second one will be always false, removing > it using the message more relevant to the '_filters'. > > Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id") > Cc: stable@dpdk.org > > Signed-off-by: Ferruh Yigit > --- > app/proc-info/main.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/app/proc-info/main.c b/app/proc-info/main.c > index d743209f0d..35e5b596eb 100644 > --- a/app/proc-info/main.c > +++ b/app/proc-info/main.c > @@ -420,11 +420,9 @@ static void collectd_resolve_cnt_type(char *cnt_type, size_t cnt_type_len, > } else if ((type_end != NULL) && > (strncmp(cnt_name, "flow_", strlen("flow_"))) == 0) { > if (strncmp(type_end, "_filters", strlen("_filters")) == 0) > - strlcpy(cnt_type, "operations", cnt_type_len); > + strlcpy(cnt_type, "filter_result", cnt_type_len); Do you know what impact this change of type could have? -- David Marchand