From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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: , X-List-Received-Date: Fri, 19 Apr 2019 11:50:28 -0000 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? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 16C97A00E6 for ; Fri, 19 Apr 2019 13:50:31 +0200 (CEST) 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="UTF-8" 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" Message-ID: <20190419115023.UA7IOEyi-YO6hUuTd6T3Hy7bpYDu9uS_IqkOV_8hSF4@z> 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?