Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp385629ybe; Mon, 2 Sep 2019 03:15:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxs18xYHf+Xk9uZbN9zPEL1M19ftwL+BFUhk6JPGIMevq6LOL3vRmh9ElRWcvhFYistGExj X-Received: by 2002:a62:7d0d:: with SMTP id y13mr32256791pfc.150.1567419357680; Mon, 02 Sep 2019 03:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567419357; cv=none; d=google.com; s=arc-20160816; b=N213pukRT3HRwpRY6yaNkEE+q6l4v2nxdfEfT79TnoNWHZ5ebnYVLMaSQ/VXp5z1pb kG42ReYxTUfHN9Fs09l3RiGg//ttD1R12pDyhCRU5vnP/j3BcGaDV0AEOfT54GAFe8lC Jq+E3pFMJM0lik7eD24dxR461TYv3oMhX6M4XPJHqMjWIN9GCUTXCJ7HddGeotywpI1J f4Jzd0MlOpUW8Aq51RUUP+hZjDv2yy/9CwB70Q4P0ynoINGGL7XNaxNasfXBniUpr4eX LxFzakjaia/+6K9elvRqmC5GvYGsyO/kFMN/gkbfUI1TlbnFimSyRQ16Tjtc1Lxq/19e 7QNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Olp/XAFW3Wk5sD8sqqIIsftyW2V5UWRfgmFkbylxasQ=; b=OZfeP0vPRowqvu9R4K5O5XhUDNMqwOWxzN+/Blu8A08XYZ+pZ7RHca82xNITmRRrHX IsjvPsKJGgBRGLuGhp6+/7DvUgwywqwBZbQxTGvWsFkn1RzzU2dWJJEbgQt/aBMuI2KA 7COLphQ2wyDy5iki7cP70l5dAnXTDKpg5ZQeP5IbSAidMSbCBDCFHUIRe6Q8HF2f3YjV KF998GaaOW5sIeL8WYpbC9OcHosDuYHxFcnpO9HBmkW7kVn/hF5+N36wqa0cVd9VNXJN /fjpaT0BzCy/IYPpzKeC9SIw2EpYTZ2GCIbSITpockRAQEDUpwfw5IqglApIO0QnfEzE bJhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b="a4Yn2/VX"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si11213135pgq.392.2019.09.02.03.15.42; Mon, 02 Sep 2019 03:15:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b="a4Yn2/VX"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730042AbfIBJ1s (ORCPT + 99 others); Mon, 2 Sep 2019 05:27:48 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:56316 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729489AbfIBJ1r (ORCPT ); Mon, 2 Sep 2019 05:27:47 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x829NWI9113181; Mon, 2 Sep 2019 09:27:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=Olp/XAFW3Wk5sD8sqqIIsftyW2V5UWRfgmFkbylxasQ=; b=a4Yn2/VXW85tcUzoEvOA7MdTAjUjceTP77QWHTtZbyNEa9TmsUP40/572bb/ZlelPHEF 2nsppATjLClW9LvHpEJnPf0MVMziEYQ1Vgz93Rvwrueseh59YVA2RAy4MwazHSvdSd20 Yysc/cf5n/RPhskNO+kLGM2KNS3OZuCY1Q3GdmNYknG9VEaDCD0HsjfwIfvqimg+ld/o rlEeca6qI8i58+3XFYQkifc/Iw95VomBZ77EgcmYUszxoJt/TdOtFDVUeqmyXBNwtP6s 6iW6hmonwjZ4l/LGvGazGEoA2rB1uiuAWpZhAtAc7WWKctELkLw35JW5sNYg4a1U6T28 pw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2us0bwg13e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Sep 2019 09:27:37 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x829NDXV073544; Mon, 2 Sep 2019 09:27:36 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2uqgqk98n1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Sep 2019 09:27:36 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x829Rapp003769; Mon, 2 Sep 2019 09:27:36 GMT Received: from lab02.no.oracle.com (/10.172.144.56) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 02 Sep 2019 02:27:35 -0700 From: =?UTF-8?q?H=C3=A5kon=20Bugge?= To: Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?H=C3=A5kon=20Bugge?= Subject: [PATCH] RDMA/cma: fix false error message Date: Mon, 2 Sep 2019 11:27:31 +0200 Message-Id: <20190902092731.1055757-1-haakon.bugge@oracle.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9367 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909020107 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9367 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909020107 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In addr_handler(), assuming status == 0 and the device already has been acquired (id_priv->cma_dev != NULL), we get the following incorrect "error" message: RDMA CM: ADDR_ERROR: failed to resolve IP. status 0 Signed-off-by: HÃ¥kon Bugge --- drivers/infiniband/core/cma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 19f1730a4f24..c7985c24f914 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -3046,7 +3046,7 @@ static void addr_handler(int status, struct sockaddr *src_addr, if (status) pr_debug_ratelimited("RDMA CM: ADDR_ERROR: failed to acquire device. status %d\n", status); - } else { + } else if (status) { pr_debug_ratelimited("RDMA CM: ADDR_ERROR: failed to resolve IP. status %d\n", status); } -- 2.20.1