From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id A6776376F for ; Fri, 7 Apr 2017 10:15:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491552925; x=1523088925; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=IJfj1yx0cL1Wczh42BF6wCqaehyLv+LCmaCrRFAApSg=; b=UID82BzT7t/lt8xo9QxGmtF5t6xabTA9Oxk0qakcStUEAV0CygGHTJA7 VFj1nyKGrY30cls3rdqbiv9+hW9PJA==; Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Apr 2017 01:15:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,164,1488873600"; d="scan'208";a="953273585" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by orsmga003.jf.intel.com with ESMTP; 07 Apr 2017 01:15:23 -0700 From: Yuanhan Liu To: Ilya Maximets Cc: Yuanhan Liu , Maxime Coquelin , dpdk stable Date: Fri, 7 Apr 2017 16:11:53 +0800 Message-Id: <1491552724-3034-36-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1491552724-3034-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1491552724-3034-1-git-send-email-yuanhan.liu@linux.intel.com> Subject: [dpdk-stable] patch 'vhost: change log levels in client mode' has been queued to LTS release 16.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 08:15:26 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 1981a96515b0a14ecd0d91f138a7fdf420d79247 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Thu, 2 Mar 2017 12:39:34 +0300 Subject: [PATCH] vhost: change log levels in client mode [ upstream commit 29b851e8de6d27150651723e74d8d2339825808c ] Inability to connect to socket is a normal situation in client mode because, in common case, server isn't started yet. RTE_LOG_WARNING should be suitable for the case of some unusual errors. Message about reconnection is not an error at all. Fixes: e623e0c6d8a5 ("vhost: add reconnect ability") Signed-off-by: Ilya Maximets Reviewed-by: Maxime Coquelin Acked-by: Yuanhan Liu --- lib/librte_vhost/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c index aaa9c27..6a30a31 100644 --- a/lib/librte_vhost/socket.c +++ b/lib/librte_vhost/socket.c @@ -448,7 +448,7 @@ vhost_user_create_client(struct vhost_user_socket *vsocket) return 0; } - RTE_LOG(ERR, VHOST_CONFIG, + RTE_LOG(WARNING, VHOST_CONFIG, "failed to connect to %s: %s\n", path, strerror(errno)); @@ -457,7 +457,7 @@ vhost_user_create_client(struct vhost_user_socket *vsocket) return -1; } - RTE_LOG(ERR, VHOST_CONFIG, "%s: reconnecting...\n", path); + RTE_LOG(INFO, VHOST_CONFIG, "%s: reconnecting...\n", path); reconn = malloc(sizeof(*reconn)); if (reconn == NULL) { RTE_LOG(ERR, VHOST_CONFIG, -- 1.9.0