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 EB6E4A0471 for ; Sun, 16 Jun 2019 11:59:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 98D161BEBE; Sun, 16 Jun 2019 11:59:05 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by dpdk.org (Postfix) with ESMTP id 2582C1BE9D for ; Sun, 16 Jun 2019 11:59:04 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7710066B; Sun, 16 Jun 2019 05:59:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 16 Jun 2019 05:59:03 -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=zMJxzWR5YXWE6V+C/8J9IX++MmUe3jnw5Lrl2Mg6+Tg=; b=d6bCUS/r2zOn VbM8bHXlUSF/sYr8iCCEwvkpQ6wZdGLy0wgiou5bKLbxggFOdrcXd+hS5SOZepwo ZWouznwGizfvQ72/q3rSRStSwFf13nz3FiiWYq67MlNy1/dLOIH84/KT6kyyfgw0 JX+hzavLdGn/BgC+gi3FACAkIKAm3lc= 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=fm3; bh=zMJxzWR5YXWE6V+C/8J9IX++MmUe3jnw5Lrl2Mg6+ Tg=; b=SL66xcHnhoFHjsLJw76LwpvEY0ZG1VVUNmFgLtlanUN4H5eVq00vnWo4q hmCkMt0wr5yDjid3AgAibVoAGx6Fe3Yqmr6CJCnwb+BN3LzdhZ63NXvRG21TmBd5 o/zINMzIu7AQchI5TMsZiHWEDDMuP+OI+W5Qv74LSW7/BqQiH4pALtBMSslP9On9 AqDhqWd4+akntXweirP0VhX+77wbbr74KM+hGdDbU9rB3o7PudcW7q4V5ZnBEYfN u+XNB1OUH3GFQsyOck4H7keEpLYEYnGhPHdBZQJmvA2DuK9avvJb8ctiB+Pj3NZa oQi3oSrCn0yVUD3EnBxKLsYSZbFMg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudeihedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeefjedrudejfedrheefrddugeehnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (unknown [37.173.53.145]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A068380073; Sun, 16 Jun 2019 05:58:59 -0400 (EDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org, Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , Sunil Kumar Kori , YufengX Mo Date: Sun, 16 Jun 2019 12:58:55 +0300 Message-ID: <6558949.dsWE0Pma7t@xps> In-Reply-To: <20190614171939.94095-1-ferruh.yigit@intel.com> References: <20190614171939.94095-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] app/testpmd: fix crash 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" 14/06/2019 20:19, Ferruh Yigit: > Testpmd tries to calculate mbuf size based on "max Rx packet size" and > "max MTU segment number". > When driver set a "nb_mtu_seg_max" to zero, it causes division by zero > segmentation fault in testpmd. > > If the PMD set "nb_mtu_seg_max" to zero, testpmd shouldn't try to > calculate the mbuf size. > > Fixes: 33f9630fc23d ("app/testpmd: create mbuf based on max supported segments") > > Signed-off-by: Ferruh Yigit Applied, thanks