From patchwork Mon Jul 24 22:26:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 9860761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A6C3860349 for ; Mon, 24 Jul 2017 22:27:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A2B528554 for ; Mon, 24 Jul 2017 22:27:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F08F28587; Mon, 24 Jul 2017 22:27:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28A3828554 for ; Mon, 24 Jul 2017 22:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756939AbdGXW1S (ORCPT ); Mon, 24 Jul 2017 18:27:18 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:52664 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756791AbdGXW0z (ORCPT ); Mon, 24 Jul 2017 18:26:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=obsidianresearch.com; s=rsa1; h=References:In-Reply-To:Message-Id:Date:Subject:To:From; bh=T+l/tJRrnzCVpxc9erSDyIkIrNnUYip7ZbsTaacSKjI=; b=Nvg+ZUE8QkLsNGKy/rqhbLpIaiBVFlk6Y//SmX7SIfNjFJsscVPx6VQGuiEkDYA6N18ZtpXA658VOwZo/Oh95DvjpWfK5Xy9m628hnahUntDzZYfNpLEwwAxTuaMgWl9e9PN06l/Do+j9sHu2MOiR43ocaD6IDUIswWHRKW0v1A=; Received: from [10.0.0.156] (helo=jggl.edm.orcorp.ca) by quartz.orcorp.ca with esmtps (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dZloR-00049s-Rc; Mon, 24 Jul 2017 16:26:51 -0600 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org, Leon Romanovsky , Doug Ledford Subject: [PATCH 3/3] iwpmd: Suppress expected kernel message Date: Mon, 24 Jul 2017 16:26:44 -0600 Message-Id: <1500935204-6505-4-git-send-email-jgunthorpe@obsidianresearch.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500935204-6505-1-git-send-email-jgunthorpe@obsidianresearch.com> References: <1500935204-6505-1-git-send-email-jgunthorpe@obsidianresearch.com> X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.156 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP RMDA_NL_RSVD was obsoleted a long time ago, but user space still uses it to support old kernels. Avoid logging: ib_core:ibnl_rcv_msg: Index 3 wasn't found in client list Signed-off-by: Jason Gunthorpe --- drivers/infiniband/core/iwcm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c index 51585a8e467a56..16d0c9f9ca4701 100644 --- a/drivers/infiniband/core/iwcm.c +++ b/drivers/infiniband/core/iwcm.c @@ -1181,6 +1181,12 @@ static int __init iw_cm_init(void) if (ret) pr_err("iw_cm: couldn't register netlink callbacks\n"); + + /* Old iwpmds still use this legacy ID, provide a kernel side for it + * that always returns EINVAL + */ + ibnl_add_client(RDMA_NL_RSVD, 0, NULL); + iwcm_wq = alloc_ordered_workqueue("iw_cm_wq", WQ_MEM_RECLAIM); if (!iwcm_wq) return -ENOMEM; @@ -1200,6 +1206,7 @@ static void __exit iw_cm_cleanup(void) { unregister_net_sysctl_table(iwcm_ctl_table_hdr); destroy_workqueue(iwcm_wq); + ibnl_remove_client(RDMA_NL_RSVD); ibnl_remove_client(RDMA_NL_IWCM); iwpm_exit(RDMA_NL_IWCM); }