From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78D94C282DA for ; Fri, 19 Apr 2019 11:50:31 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id F3E0621908 for ; Fri, 19 Apr 2019 11:50:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="ZjRIUJlR"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="6lTL5uaL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3E0621908 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A95301BB9D; Fri, 19 Apr 2019 13:50:29 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id B51D51BB40 for ; Fri, 19 Apr 2019 13:50:27 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3487626D0D; Fri, 19 Apr 2019 07:50:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 19 Apr 2019 07:50:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=216SRpt1gJPij3m5oWh6z2DQ2ECFNv6oGLzZeOc+EIU=; b=ZjRIUJlRVMJ7 1mRUPjc9JyDjcDRuIseK2w+MgFildt/K+vc6gxsZlK18gkOVips745FyCMyiOjrt ISXUyJm26Z7bJa0yP8/FzbVuybeMi4v0oq5v9O2ml9RXlTXNVqGS08S4WEuu+KzX 0B8dXDIySGkmGURVlXXxLXsZANRpSvI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=216SRpt1gJPij3m5oWh6z2DQ2ECFNv6oGLzZeOc+E IU=; b=6lTL5uaLxLoT8ZPkAIZk5ygECazYRYE4tD2XKEF5tHfXBizrWW4nK1Lng lTZ5dHutnVKxBiAGsPW8J8ef7JSiFR4J6i+UTRjG/AlXgLwBgIYupuBoFp5b2o+b OL3xGz1dIUohpIzTknbSqQmA1PTBCVA/3ag3ltMV5fLLpa2XAlvdiudBpXUcUWgf 6r8rAl3qIw33e5qOnQmXhmBV4thVDInzmDPwqgxNew0yUZBfT9VYBeOhQAYQepM2 dMyheoDSDzw61cmMwSubAJom6lSif+iihhW0WanXv2M96SmLI7l0jBr0o9OwtKox 4cSJCRYuRlheCU6ISSNZI65b/NRYg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrfeejgdegfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 3BC9D103C9; Fri, 19 Apr 2019 07:50:25 -0400 (EDT) From: Thomas Monjalon To: "Jozwiak, TomaszX" Cc: "dev@dpdk.org" , "Richardson, Bruce" , "david.marchand@redhat.com" , "Trahe, Fiona" , "yskoh@mellanox.com" , "Cel, TomaszX" Date: Fri, 19 Apr 2019 13:50:23 +0200 Message-ID: <1749599.B640tvC1p7@xps> In-Reply-To: References: <1555667827-3715-1-git-send-email-tomaszx.jozwiak@intel.com> <3955282.IgHOaonqCx@xps> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] test/compress: fix max mbuf size test case X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Please stop top-posting, and read again below: 19/04/2019 13:36, Jozwiak, TomaszX: > test_deflate_comp_decomp function is common for all test cases. > The options for this function are inside struct interim_data_params, > which is passed to test_deflate_comp_decomp function as a pointer. > > The field buf_idx should be initialized because is used inside test_deflate_comp_decomp > That's the reason of: > int_data.buf_idx = &i; > > I'm not an author of this solution - sorry. > > We can review this and try to add new solution. I am not talking about int_data but the use of "i". Please look again your patch, you are using "j" instead of "i" and "i" is kept alone. Moreover I don't know how the pointer of a local variable can be used. > From: Thomas Monjalon [mailto:thomas@monjalon.net] > > 19/04/2019 12:57, Jozwiak, TomaszX: > > > > What is supposed to be "i"? > > > > It is initialized at 0 and never touched. > > > > > > > It's touched inside test_deflate_comp_decomp function. > > > > What do you mean? > > It's a local variable and its address is referenced: > > int_data.buf_idx = &i; > > It looks really wrong. > > > > Another error is seen in FreeBSD. > > > > Should I totally revert this patch?