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 9F473A0544; Tue, 5 Jul 2022 22:20:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3417B40223; Tue, 5 Jul 2022 22:20:37 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id AF1E4400D7; Tue, 5 Jul 2022 22:20:35 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 43A7F3200949; Tue, 5 Jul 2022 16:20:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 05 Jul 2022 16:20:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1657052433; x= 1657138833; bh=LyqSnLy0lGMPs5fDA/CCvmL5W8nDKUsRzD6OTZDa060=; b=Q yCwMIVbXgxFavM8f1p4n+qSSDDSX0eKioKw+uPYLl73FJh4J1E4QPk9Gj4pmz64t y2QmnsCFZoFyP1k2vro+H0oVzltQMVIvRqkx9owZFgyi9O05sF+jbYUIbTizX7PJ bnUI4HO61bcueCnj5g+23IXK+yzYqs7fRorW4H2ocEix9ZJKvz1QaFZ1aYDpkhRu FP56eu4EJi0g7hI++jQsefBsh0zZe2OnOW+PW4U3r/tTEoltY0QhVmllkKNltjNS 19I9KoItS0XXrlpke3SqidA1f/jWq9l6Cx+lZszJbn2GFbZ0Kxi0UGnAmG2QqyYk 9s509oCbigf+VCvJV+yoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1657052433; x= 1657138833; bh=LyqSnLy0lGMPs5fDA/CCvmL5W8nDKUsRzD6OTZDa060=; b=f p/p1/73505ujUNXJINwmIcN+hPYgSwMV77lqVa793Fea9mglPjgxmaR0PObitwLS G+Ea2XymJ4InbDRKO7D3dKpqIv1cOHNil9MaL93DqEsI6JqID3fpe4TanmelBxjN 5uvBsmjVmDi6epsRruR+fJmLXNdfRnNJwOAUh7NekExg80vdwfdZXB9kUFHzdgIo RjpmeQ/wlPtb78++h+c1nJb2UC2WtCC7ip2aKeJk22QdLqFVulNKIb3dyPLuoYmQ YfouGeIRYp4ZVh1yp4F54Ur9B60xx2jvFT7ctduKMFvVl4yEnP4izBzSfRdr0Eox EneB7aG0h45Zv7rp9TfGA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeiuddgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhho mhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqne cuggftrfgrthhtvghrnheptdejieeifeehtdffgfdvleetueeffeehueejgfeuteeftddt ieekgfekudehtdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Jul 2022 16:20:32 -0400 (EDT) From: Thomas Monjalon To: Raslan Darawsheh Cc: dev@dpdk.org, ggribbon@nvidia.com, stable@dpdk.org, Ori Kam Subject: Re: [PATCH] app/regex: fix mbuf size for multi segemnt buffers Date: Tue, 05 Jul 2022 22:20:30 +0200 Message-ID: <7289277.60r6i4UCyb@thomas> In-Reply-To: <20220705080917.13784-1-rasland@nvidia.com> References: <20220705080917.13784-1-rasland@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 05/07/2022 10:09, Raslan Darawsheh: > When allocating multi segmented buffers, and in case there is > a remainder in total buf len, the actual job len might be more > than expected job_len. > > This adds additional space in the mbuf in the multi seg case, > to allow the remaining memory to be stored in one segment. > > Fixes: c1d1b94eec58 ("app/regex: fix number of matches") > Cc: ggribbon@nvidia.com > Cc: stable@dpdk.org > > Signed-off-by: Raslan Darawsheh > Acked-by: Ori Kam Applied (with fixed typo in title), thanks.