From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id C1BE12BCD for ; Fri, 10 Aug 2018 09:24:10 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180810072410euoutp020ab1d2b91e19af6a4eb13647f7785755~JdQ2-x8Mb1383213832euoutp02d; Fri, 10 Aug 2018 07:24:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180810072410euoutp020ab1d2b91e19af6a4eb13647f7785755~JdQ2-x8Mb1383213832euoutp02d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1533885850; bh=a/JMcdLb48MXZSRIPRdeteLC4LGAVfvHsZcwQF3ZjEU=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=HEj59P9+/eS5LKAifNnZOjVUQC2F3iKj6hucuuSrJgP2+Jbn7ahMrjRzRK3lHzVI/ fXpUfplb4NkqRHmERl2Fxcu/SLcoIvY+CU++2jvzTs6iGLJE1TcFrrq2OaJq8DkxPA IffTOnzbVMV85AKFiD7IIVuHgvhj1izB3q+vZkHM= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180810072409eucas1p10db8452301e63c5862bc4c40a364aadb~JdQ2kgf9l1090410904eucas1p1N; Fri, 10 Aug 2018 07:24:09 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 70.66.04294.99D3D6B5; Fri, 10 Aug 2018 08:24:09 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180810072408eucas1p2ab45e26b6540bdf5634efad9080391d5~JdQ1t-FzV1344313443eucas1p28; Fri, 10 Aug 2018 07:24:08 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-95-5b6d3d99492f Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 08.6D.04128.89D3D6B5; Fri, 10 Aug 2018 08:24:08 +0100 (BST) Received: from imaximets.rnd.samsung.ru ([106.109.129.180]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PD800BMKHW34Z70@eusync1.samsung.com>; Fri, 10 Aug 2018 08:24:08 +0100 (BST) From: Ilya Maximets To: dev@dpdk.org Cc: Maxime Coquelin , Tiwei Bie , Zhihong Wang , Ilya Maximets Date: Fri, 10 Aug 2018 10:24:54 +0300 Message-id: <1533885894-6511-1-git-send-email-i.maximets@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1533830978-23518-1-git-send-email-i.maximets@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsWy7djPc7ozbXOjDS6+4bF492k7k8WV9p/s Fsc697BYbG34z2Sx+eIkJgdWj18LlrJ6LN7zksnj/b6rbB59W1YxBrBEcdmkpOZklqUW6dsl cGXsWXGBsWAWe8W3zsAGxlesXYwcHBICJhJz3pp2MXJxCAmsYJTY23ODqYuRE8j5zCgxud0Q xAap+bT6DAtE0TJGicPblrFBOM1MEg+3f2EGqWIT0JE4tfoII4gtIiAg8blzMVgRs8ASRokD T8+CJYQFnCQuLt7ACmKzCKhKLL86kw3E5hVwlZhzYSkLxDo5iZvnOsGGcgq4S+z5MY0VZJCE wFtWiQOTfjBC3O0icaGpEqJeWOLV8S3sELaMxOXJ3VBz6iXut7xkhOjtYJSYfugfE0TCXmLL 63NgDcwCfBKTtk1nhpjJK9HRJgRR4iGx/uN/dogvZzFK7Pp+gG0Co+QCRoZVjOKppcW56anF Rnmp5XrFibnFpXnpesn5uZsYgRF2+t/xLzsYd/1JOsQowMGoxMMrUJwTLcSaWFZcmXuIUYKD WUmEN9M0N1qINyWxsiq1KD++qDQntfgQozQHi5I4L59WWrSQQHpiSWp2ampBahFMlomDU6qB UcXl4wllzy8h4rwuPc0Jgg8DKhzOReQIif6cGRIef+rOzDSJE1o7Cng3HP134Fxpj3pQ9uzE tydLRbuvTJ+m0z1d+wtz39FD2+OXW8jZXlc5dObJZxa79FSxNUt+xy1UnPtHR776z6y+1h/8 bpk+XCXnft2SFV0YY7L/mKTY0fT4S5eWdXaXK7EUZyQaajEXFScCAFGCtrKsAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJJMWRmVeSWpSXmKPExsVy+t/xy7ozbHOjDVZvU7J492k7k8WV9p/s Fsc697BYbG34z2Sx+eIkJgdWj18LlrJ6LN7zksnj/b6rbB59W1YxBrBEcdmkpOZklqUW6dsl cGXsWXGBsWAWe8W3zsAGxlesXYycHBICJhKfVp9h6WLk4hASWMIoce7cfEYIp5VJ4sid2WBV bAI6EqdWH2EEsUUEBCQ+dy5mAyliBumY8mEyO0hCWMBJ4uLiDWANLAKqEsuvzmQDsXkFXCXm XFjKArFOTuLmuU5mEJtTwF1iz49pYPVCAm4Sj2ctYprAyLOAkWEVo0hqaXFuem6xkV5xYm5x aV66XnJ+7iZGYIBsO/Zzyw7GrnfBhxgFOBiVeHgZUnOihVgTy4orcw8xSnAwK4nwZprmRgvx piRWVqUW5ccXleakFh9ilOZgURLnPW9QGSUkkJ5YkpqdmlqQWgSTZeLglGpgVEnmjr+squpk usyQ/V/X7uOztU/MWHvVgO30Pu9b+wqnp/E212pahmlV/mSffnzS0qBjDmo6XZXPt55cfmXL DZY7X//+9Np2+K+lrbPFxzvtHsUH7GrOrGzoO1IUP8F7T87iwE9rni3hPJbuvzP796PlZ+Zu yqnUi+J+5pra+U+C64n9k9t1FkosxRmJhlrMRcWJAFuk4c8MAgAA X-CMS-MailID: 20180810072408eucas1p2ab45e26b6540bdf5634efad9080391d5 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180810072408eucas1p2ab45e26b6540bdf5634efad9080391d5 References: <1533830978-23518-1-git-send-email-i.maximets@samsung.com> Subject: [dpdk-dev] [PATCH v2] vhost: suppress error if NUMA is not available 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, 10 Aug 2018 07:24:10 -0000 It's a common case that 'get_mempolicy' fails on systems without NUMA support. No need to flag an error in log for this situation. Signed-off-by: Ilya Maximets Reviewed-by: Tiwei Bie --- Version 2: * Fixed 'check-git-log.sh' warning. lib/librte_vhost/vhost.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost.c b/lib/librte_vhost/vhost.c index 3c9be10..91026b3 100644 --- a/lib/librte_vhost/vhost.c +++ b/lib/librte_vhost/vhost.c @@ -8,6 +8,7 @@ #include #include #ifdef RTE_LIBRTE_VHOST_NUMA +#include #include #endif @@ -480,7 +481,7 @@ rte_vhost_get_numa_node(int vid) int numa_node; int ret; - if (dev == NULL) + if (dev == NULL || numa_available() != 0) return -1; ret = get_mempolicy(&numa_node, NULL, 0, dev, -- 2.7.4