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 CDC7F2BB0 for ; Thu, 9 Aug 2018 18:08:59 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180809160858euoutp024fc9a845440c7b8ca41d697cdcadaf68~JQxyknDXA2251522515euoutp02x; Thu, 9 Aug 2018 16:08:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180809160858euoutp024fc9a845440c7b8ca41d697cdcadaf68~JQxyknDXA2251522515euoutp02x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1533830938; bh=JC8gR2LHoOGyny/o4H+79qzLmqixVc7UJSSvnjMrCJ8=; h=From:To:Cc:Subject:Date:References:From; b=mPU85IP7QP8ESKqgj3mhQTPZr50bpiVrQUvZ32tCLSz3kC7Q55WUnRV50/OU/4qxo Pjlrb7Uu2IdmE6vfXvoJVxIvJoKmJvMrylWnugD2tLkXNX2ny2JQGU939au/ophPNb NtMwJW1ZglFjF+8ROJv/TaGg+Cfxexwp23ChKon8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180809160857eucas1p197deac147c378740aad0d917046ab901~JQxx55A142404524045eucas1p1N; Thu, 9 Aug 2018 16:08:57 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id B2.59.04441.9176C6B5; Thu, 9 Aug 2018 17:08:57 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180809160856eucas1p2e22900aa2de83e9b17f5843151557d7b~JQxxCldJk2709327093eucas1p2s; Thu, 9 Aug 2018 16:08:56 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-e0-5b6c67198834 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CE.79.04128.8176C6B5; Thu, 9 Aug 2018 17:08:56 +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 <0PD700LW8BIRD790@eusync1.samsung.com>; Thu, 09 Aug 2018 17:08:56 +0100 (BST) From: Ilya Maximets To: dev@dpdk.org Cc: Maxime Coquelin , Tiwei Bie , Zhihong Wang , Ilya Maximets Date: Thu, 09 Aug 2018 19:09:38 +0300 Message-id: <1533830978-23518-1-git-send-email-i.maximets@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42LZduzneV3J9JxogzcXhC3efdrOZHGl/Se7 xbHOPSwWWxv+M1lsvjiJyYHV49eCpawei/e8ZPJ4v+8qm0ffllWMASxRXDYpqTmZZalF+nYJ XBlTz05iLdjGVvFpzw22BsYZrF2MnBwSAiYSSxZ2s3UxcnEICaxglJj09Bk7hPOZUeLQ2dUs MFVXtx5gArGFBJYxShy9xglR1Mwk0ThjIzNIgk1AR+LU6iOMILaIgIDE587FYGOZBZYwShx4 ehYsISxgL/Hj2UM2EJtFQFXi8YMZQBs4OHgF3CT+beeAWCYncfNcJzNIr4TATVaJ3zfuQ93q InF28TsoW1ji1fEt7BC2jMTlyd1Ql9ZL3G95yQjR3MEoMf3QPyaIhL3EltfnwBqYBfgkJm2b zgyyWEKAV6KjTQiixENi6vbrLBBfxkr8fT+PZQKjxAJGhlWM4qmlxbnpqcWGeanlesWJucWl eel6yfm5mxiBsXT63/FPOxi/Xko6xCjAwajEw8uQmhMtxJpYVlyZe4hRgoNZSYTX1gcoxJuS WFmVWpQfX1Sak1p8iFGag0VJnJdPKy1aSCA9sSQ1OzW1ILUIJsvEwSnVwCigu5hXgjt71rFJ 5yZmTnr+W+rckRi2n+YTXxWdeTxJ4LqH/M6FKuEaU87ePmS/zkNCb623Qi1jUbHZsSP6i9jr i9a73rmxePujiLPG15fYss3XmuSj9WL+bgdLT+HFsf1Tvh4+mq5r+N/gsseDjMK9rnsjS/Vs JFZNvzjRT4X/7r5fSY7zo14qsRRnJBpqMRcVJwIA4ZObR6ECAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t/xy7oS6TnRBtfeSlm8+7SdyeJK+092 i2Ode1gstjb8Z7LYfHESkwOrx68FS1k9Fu95yeTxft9VNo++LasYA1iiuGxSUnMyy1KL9O0S uDKmnp3EWrCNreLTnhtsDYwzWLsYOTkkBEwkrm49wNTFyMUhJLCEUeLaujmMEE4rk0RD8wMW kCo2AR2JU6uPMILYIgICEp87F7OBFDGDdEz5MJkdJCEsYC/x49lDNhCbRUBV4vGDGUDNHBy8 Am4S/7ZzQGyTk7h5rpN5AiPXAkaGVYwiqaXFuem5xUZ6xYm5xaV56XrJ+bmbGIEe33bs55Yd jF3vgg8xCnAwKvHwXuDLjhZiTSwrrsw9xCjBwawkwmvrkxMtxJuSWFmVWpQfX1Sak1p8iFGa g0VJnPe8QWWUkEB6YklqdmpqQWoRTJaJg1OqgZFpnnVn3jub93Fr3hluiXKd4V319fYVuaPS aydM/hlcaTdVSm6+0ZIoHucdgatvRrZLmi+8orBfX6jRZxrzVdmzLdtXPzS8dUGKu0axd0Li tc5rWyezHWGr/Vc4aVLYHO/7K7/f4nCOquBbdjD/89EtGYIr0rd22thFTDv29FvJl2+fL1cc 0edUYinOSDTUYi4qTgQAqRClWvQBAAA= X-CMS-MailID: 20180809160856eucas1p2e22900aa2de83e9b17f5843151557d7b X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180809160856eucas1p2e22900aa2de83e9b17f5843151557d7b References: Subject: [dpdk-dev] [PATCH] 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: Thu, 09 Aug 2018 16:09:00 -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 --- 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