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 8DBFCA04E6; Sat, 31 Oct 2020 15:37:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1E5FCCA97; Sat, 31 Oct 2020 15:37:25 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 028B6CA90; Sat, 31 Oct 2020 15:37:21 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8F6655C004A; Sat, 31 Oct 2020 10:37:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 31 Oct 2020 10:37:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=mbT8FHOLXlw0CYRN1yH5gOEdN1 mVw/xysq5eBcUrzDg=; b=mEjiklhAhGmZEvn7HnMb+Q3c48WtYB0F1Z0dgioXSa /priesjQTkJ2xS+twzd3biCJsiHI4+LH+0gu+ip7JC0cDAUE5uc+mrCh0lQdyUh6 PviHBEffKw+i6WJEQPAnsF9vy+5P+1wWd96iYBHL6kJz0zHzkz96gkDNOc3Hwg2D nrHX/logYXeKu34nSnhDgojhjT4mhD1Hz/zG2lNXFwz21dkSnkwiNLfbi75wfH55 8KKc5Er0FGC5r0zl8EUWEtsu6T9PdG4BdnzkohJg1bc3YbLT4FrNP8itTjZhE+k5 5JIP6L/Fn1L7LJs0ZozR0T2fvIPA1nwB0mTk4F3sk9fQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mbT8FHOLXlw0CYRN1 yH5gOEdN1mVw/xysq5eBcUrzDg=; b=j53Jea9BP/m6Rj9H7U3HE1DOCwN1Xch4R y/tJgl7+Tjlh/iakswc7aZKL8sJ4BSXEo+2iT7h/M01nXYmYglZXnd5JUyKiwPnU lzdjUiUzBti3BeHh05lDBi2jYFO/UIhnydOxG+ILzqjkkj9jXWGPl15z7OfmF/d4 OrA0vvd4IAh8e9JZ5elmoRGrT7LYQoc+ubBhaJCT2V8O6NmoPVY9DMVmOlsOSawb AuVaMxtt6MAUnw1259RNoMd9U7fRHufBwjVRUOy5YI/4oeqMA1Wm/uH7bZQNZGG8 4Md6oKMvXy9+abGtDOEBYmZ57iUj2hLoRAUxSmmAmPT+XPBEo7vKQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleejgdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghsucfo ohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtffrrg htthgvrhhnpedvledvudehvdduudevuedvveehgeduleegiefgjeehudehtddtgeduffej iefhgfenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdr nhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 20081306467E; Sat, 31 Oct 2020 10:37:17 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, olivier.matz@6wind.com, andrew.rybchenko@oktetlabs.ru, stable@dpdk.org, Konstantin Ananyev Date: Sat, 31 Oct 2020 15:36:58 +0100 Message-Id: <20201031143658.1182715-1-thomas@monjalon.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] test/mbuf: skip field registration at busy offset 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" There is a test for dynamic field registration at a specific offset. Depending on which driver is probed, some dynamic fields may be already registered at this offset. This failure is skipped with a warning. Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: stable@dpdk.org Reported-by: David Marchand Signed-off-by: Thomas Monjalon --- app/test/test_mbuf.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index 80d1850da9..3a13cf4e1f 100644 --- a/app/test/test_mbuf.c +++ b/app/test/test_mbuf.c @@ -2608,9 +2608,13 @@ test_mbuf_dyn(struct rte_mempool *pktmbuf_pool) offset3 = rte_mbuf_dynfield_register_offset(&dynfield3, offsetof(struct rte_mbuf, dynfield1[1])); - if (offset3 != offsetof(struct rte_mbuf, dynfield1[1])) - GOTO_FAIL("failed to register dynamic field 3, offset=%d: %s", - offset3, strerror(errno)); + if (offset3 != offsetof(struct rte_mbuf, dynfield1[1])) { + if (rte_errno == EBUSY) + printf("mbuf test error skipped: dynfield is busy\n"); + else + GOTO_FAIL("failed to register dynamic field 3, offset=" + "%d: %s", offset3, strerror(errno)); + } printf("dynfield: offset=%d, offset2=%d, offset3=%d\n", offset, offset2, offset3); -- 2.28.0